46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Core.Models.Eft.Common.Tables;
|
|
|
|
public record HandbookBase
|
|
{
|
|
[JsonPropertyName("Categories")]
|
|
public List<HandbookCategory>? Categories { get; set; }
|
|
|
|
[JsonPropertyName("Items")]
|
|
public List<HandbookItem>? Items { get; set; }
|
|
}
|
|
|
|
public record HandbookCategory
|
|
{
|
|
[JsonPropertyName("Id")]
|
|
public string? Id { get; set; }
|
|
|
|
[JsonPropertyName("ParentId")]
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
|
|
public string? ParentId { get; set; }
|
|
|
|
[JsonPropertyName("Icon")]
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
|
|
public string? Icon { get; set; }
|
|
|
|
[JsonPropertyName("Color")]
|
|
public string? Color { get; set; }
|
|
|
|
[JsonPropertyName("Order")]
|
|
public string? Order { get; set; }
|
|
}
|
|
|
|
public record HandbookItem
|
|
{
|
|
[JsonPropertyName("Id")]
|
|
public string? Id { get; set; }
|
|
|
|
[JsonPropertyName("ParentId")]
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
|
|
public string? ParentId { get; set; }
|
|
|
|
[JsonPropertyName("Price")]
|
|
public decimal? Price { get; set; }
|
|
}
|