mirror of
https://github.com/morbalint/kemkas-backend.git
synced 2026-07-17 21:23:46 +00:00
[2e][DB] felszereles viselt cipelt aprosagok
This commit is contained in:
@@ -3,7 +3,7 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace Kemkas.Web.ViewModels;
|
||||
|
||||
public struct Character1eDto
|
||||
public class Character1eDto
|
||||
{
|
||||
[Required]
|
||||
[JsonPropertyName("name")]
|
||||
@@ -52,7 +52,7 @@ public struct Character1eDto
|
||||
public IList<string> KalozKritikus { get; set; }
|
||||
|
||||
[JsonPropertyName("felszereles")]
|
||||
public KarakterFelszerelesDto Felszereles { get; set; }
|
||||
public KarakterFelszereles1eDto Felszereles1E { get; set; }
|
||||
|
||||
public bool? IsPublic { get; set; }
|
||||
}
|
||||
@@ -3,7 +3,7 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace Kemkas.Web.ViewModels;
|
||||
|
||||
public struct Character2eDto
|
||||
public class Character2eDto
|
||||
{
|
||||
[Required]
|
||||
[JsonPropertyName("nev")]
|
||||
@@ -40,7 +40,7 @@ public struct Character2eDto
|
||||
public IList<Szintlepes> Szintlepesek { get; set; }
|
||||
|
||||
[JsonPropertyName("felszereles")]
|
||||
public KarakterFelszerelesDto Felszereles { get; set; }
|
||||
public KarakterFelszereles2eDto Felszereles { get; set; }
|
||||
|
||||
public bool? IsPublic { get; set; }
|
||||
}
|
||||
@@ -2,7 +2,7 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace Kemkas.Web.ViewModels;
|
||||
|
||||
public struct CharacterListItemDto()
|
||||
public class CharacterListItemDto()
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public required Guid Id { get; set; }
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Kemkas.Web.ViewModels;
|
||||
|
||||
public class FelszerelesIdAndCount
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
|
||||
[JsonPropertyName("count")]
|
||||
public int Count { get; set; }
|
||||
}
|
||||
+1
-4
@@ -2,10 +2,7 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace Kemkas.Web.ViewModels;
|
||||
|
||||
/// <summary>
|
||||
/// currently the same for 1st edition and 2nd edition, be cautious!
|
||||
/// </summary>
|
||||
public struct KarakterFelszerelesDto
|
||||
public class KarakterFelszereles1eDto
|
||||
{
|
||||
[JsonPropertyName("pancelID")]
|
||||
public string? PancelId { get; set; }
|
||||
@@ -0,0 +1,24 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Kemkas.Web.ViewModels;
|
||||
|
||||
public class KarakterFelszereles2eDto
|
||||
{
|
||||
[JsonPropertyName("pancelID")]
|
||||
public string? PancelId { get; set; }
|
||||
|
||||
[JsonPropertyName("pajzsID")]
|
||||
public string? PajzsId { get; set; }
|
||||
|
||||
[JsonPropertyName("fegyverek")]
|
||||
public IList<FelszerelesIdAndCount> Fegyverek { get; set; }
|
||||
|
||||
[JsonPropertyName("viselt")]
|
||||
public IList<FelszerelesIdAndCount> Viselt { get; set; }
|
||||
|
||||
[JsonPropertyName("cipelt")]
|
||||
public IList<FelszerelesIdAndCount> Cipelt { get; set; }
|
||||
|
||||
[JsonPropertyName("aprosagok")]
|
||||
public IList<FelszerelesIdAndCount> Aprosagok { get; set; }
|
||||
}
|
||||
@@ -5,7 +5,7 @@ namespace Kemkas.Web.ViewModels;
|
||||
/// <summary>
|
||||
/// currently the same for 1st edition and 2nd edition, be cautious!
|
||||
/// </summary>
|
||||
public struct KarakterTulajdonsagokDto
|
||||
public class KarakterTulajdonsagokDto
|
||||
{
|
||||
[JsonPropertyName("t_ero")]
|
||||
public byte Ero { get; set; }
|
||||
|
||||
@@ -2,7 +2,7 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace Kemkas.Web.ViewModels;
|
||||
|
||||
public struct Szintlepes
|
||||
public class Szintlepes
|
||||
{
|
||||
[JsonPropertyName("osztaly")]
|
||||
public string Osztaly { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user