implement some missing method content

This commit is contained in:
2024-05-28 18:23:30 +02:00
parent 69b3406c4b
commit 270a01791c
12 changed files with 160 additions and 65 deletions

View File

@@ -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; } = [];
}
}

View File

@@ -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; } = [];
}
}

View File

@@ -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;
}
}

View File

@@ -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; }
}
}