implement some missing method content
This commit is contained in:
@@ -4,7 +4,8 @@ namespace OwnChar.Data.Providers.JsonFile.Model
|
||||
{
|
||||
public class JsonCharacter : Character
|
||||
{
|
||||
public List<JsonProp> Properties { get; } = [];
|
||||
public List<JsonPropCat> PropertyCategories { get; } = [];
|
||||
public virtual JsonUserProfile? Owner { get; set; }
|
||||
public virtual List<JsonProp> Properties { get; } = [];
|
||||
public virtual List<JsonPropCat> PropertyCategories { get; } = [];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@ namespace OwnChar.Data.Providers.JsonFile.Model
|
||||
{
|
||||
public class JsonGroup : Group
|
||||
{
|
||||
public List<JsonUserProfile> Owner { get; } = [];
|
||||
public List<JsonUserProfile> Members { get; } = [];
|
||||
public List<JsonCharacter> Characters { get; } = [];
|
||||
public virtual JsonUserProfile? Owner { get; set; }
|
||||
public virtual List<JsonUserProfile> Members { get; } = [];
|
||||
public virtual List<JsonCharacter> Characters { get; } = [];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ namespace OwnChar.Data.Providers.JsonFile.Model
|
||||
{
|
||||
public class JsonProp : Property
|
||||
{
|
||||
public JsonPropCat? Category { get; set; } = null;
|
||||
public virtual JsonPropCat? Category { get; set; } = null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
using OwnChar.Model;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using OwnChar.Model;
|
||||
|
||||
namespace OwnChar.Data.Providers.JsonFile.Model
|
||||
{
|
||||
public class JsonUserAccount : UserAccount
|
||||
{
|
||||
public JsonUserProfile? Profile { get; set; }
|
||||
public virtual JsonUserProfile? Profile { get; set; }
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public override UserType Type { get => base.Type; set => base.Type = value; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user