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