Convert to new namespace stuff and implicit usings
This commit is contained in:
@@ -1,29 +1,27 @@
|
||||
using System;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Prospect.Server.Api.Models.Client.Data
|
||||
namespace Prospect.Server.Api.Models.Client.Data;
|
||||
|
||||
public class FUserDataRecord
|
||||
{
|
||||
public class FUserDataRecord
|
||||
{
|
||||
/// <summary>
|
||||
/// Timestamp for when this data was last updated.
|
||||
/// </summary>
|
||||
[JsonPropertyName("LastUpdated")]
|
||||
public DateTime LastUpdated { get; set; }
|
||||
/// <summary>
|
||||
/// Timestamp for when this data was last updated.
|
||||
/// </summary>
|
||||
[JsonPropertyName("LastUpdated")]
|
||||
public DateTime LastUpdated { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// [optional] Indicates whether this data can be read by all users (public) or only the user (private). This is used for GetUserData
|
||||
/// requests being made by one player about another player.
|
||||
/// </summary>
|
||||
[JsonPropertyName("Permission")]
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
public UserDataPermission Permission { get; set; }
|
||||
/// <summary>
|
||||
/// [optional] Indicates whether this data can be read by all users (public) or only the user (private). This is used for GetUserData
|
||||
/// requests being made by one player about another player.
|
||||
/// </summary>
|
||||
[JsonPropertyName("Permission")]
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
public UserDataPermission Permission { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// [optional] Data stored for the specified user data key.
|
||||
/// </summary>
|
||||
[JsonPropertyName("Value")]
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
|
||||
public string Value { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// [optional] Data stored for the specified user data key.
|
||||
/// </summary>
|
||||
[JsonPropertyName("Value")]
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
|
||||
public string Value { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user