mirror of
https://github.com/morbalint/kemkas-backend.git
synced 2026-07-17 21:23:46 +00:00
initial
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Kemkas.Web.ViewModels;
|
||||
|
||||
public struct Character1eDto
|
||||
{
|
||||
[Required]
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("nem")]
|
||||
public string? Nem { get; set; }
|
||||
|
||||
[JsonPropertyName("kor")]
|
||||
public double? Kor { get; set; }
|
||||
|
||||
[JsonPropertyName("jellem")]
|
||||
public string Jellem { get; set; }
|
||||
|
||||
[JsonPropertyName("isten")]
|
||||
public string? Isten { get; set; }
|
||||
|
||||
[JsonPropertyName("faj")]
|
||||
public string Faj { get; set; }
|
||||
|
||||
[JsonPropertyName("osztaly")]
|
||||
public string Osztaly { get; set; }
|
||||
|
||||
[JsonPropertyName("tulajdonsagok")]
|
||||
public KarakterTulajdonsagokDto Tulajdonsagok { get; set; }
|
||||
|
||||
[JsonPropertyName("kepzettsegek")]
|
||||
public IList<string> Kepzettsegek { get; set; }
|
||||
|
||||
[JsonPropertyName("tolvajkepzettsegek")]
|
||||
public IList<string>? Tolvajkepzettsegek { get; set; }
|
||||
|
||||
[JsonPropertyName("szint")]
|
||||
public byte Szint { get; set; }
|
||||
|
||||
[JsonPropertyName("hpRolls")]
|
||||
public IList<byte> HpRolls { get; set; }
|
||||
|
||||
[JsonPropertyName("tulajdonsagNovelesek")]
|
||||
public IList<string> TulajdonsagNovelesek { get; set; }
|
||||
|
||||
[JsonPropertyName("harcosSpecializaciok")]
|
||||
public IList<string> HarcosSpecializaciok { get; set; }
|
||||
|
||||
[JsonPropertyName("kalozKritikus")]
|
||||
public IList<string> KalozKritikus { get; set; }
|
||||
|
||||
[JsonPropertyName("felszereles")]
|
||||
public KarakterFelszerelesDto Felszereles { get; set; }
|
||||
|
||||
public bool? IsPublic { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Kemkas.Web.ViewModels;
|
||||
|
||||
public struct Character2eDto
|
||||
{
|
||||
[Required]
|
||||
[JsonPropertyName("nev")]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[JsonPropertyName("nem")]
|
||||
public string? Nem { get; set; }
|
||||
|
||||
[JsonPropertyName("kor")]
|
||||
public double? Kor { get; set; }
|
||||
|
||||
[JsonPropertyName("jellem")]
|
||||
public string Jellem { get; set; }
|
||||
|
||||
[JsonPropertyName("isten")]
|
||||
public string? Isten { get; set; }
|
||||
|
||||
[JsonPropertyName("faj")]
|
||||
public string Faj { get; set; }
|
||||
|
||||
[JsonPropertyName("tulajdonsagok")]
|
||||
public KarakterTulajdonsagokDto Tulajdonsagok { get; set; }
|
||||
|
||||
[JsonPropertyName("kepzettsegek")]
|
||||
public IList<string> Kepzettsegek { get; set; }
|
||||
|
||||
[JsonPropertyName("tolvajkepzettsegek")]
|
||||
public IList<string>? Tolvajkepzettsegek { get; set; }
|
||||
|
||||
[JsonPropertyName("szint")]
|
||||
public byte Szint { get; set; }
|
||||
|
||||
[JsonPropertyName("szintlepesek")]
|
||||
public IList<Szintlepes> Szintlepesek { get; set; }
|
||||
|
||||
[JsonPropertyName("felszereles")]
|
||||
public KarakterFelszerelesDto Felszereles { get; set; }
|
||||
|
||||
public bool? IsPublic { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Kemkas.Web.ViewModels;
|
||||
|
||||
public struct CharacterListItemDto()
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public required Guid Id { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public required string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("szint")]
|
||||
public required byte Szint { get; set; }
|
||||
|
||||
[JsonPropertyName("faj")]
|
||||
public required string Faj { get; set; }
|
||||
|
||||
[JsonPropertyName("osztaly")]
|
||||
public required string Osztaly { get; set; }
|
||||
|
||||
[JsonPropertyName("edition")]
|
||||
public required string Edition { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
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
|
||||
{
|
||||
[JsonPropertyName("pancelID")]
|
||||
public string? PancelId { get; set; }
|
||||
|
||||
[JsonPropertyName("pajzsID")]
|
||||
public string? PajzsId { get; set; }
|
||||
|
||||
[JsonPropertyName("fegyverIDk")]
|
||||
public IList<string> FegyverIds { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Kemkas.Web.ViewModels;
|
||||
|
||||
/// <summary>
|
||||
/// currently the same for 1st edition and 2nd edition, be cautious!
|
||||
/// </summary>
|
||||
public struct KarakterTulajdonsagokDto
|
||||
{
|
||||
[JsonPropertyName("t_ero")]
|
||||
public byte Ero { get; set; }
|
||||
[JsonPropertyName("t_ugy")]
|
||||
public byte Ugy { get; set; }
|
||||
[JsonPropertyName("t_egs")]
|
||||
public byte Egs { get; set; }
|
||||
[JsonPropertyName("t_int")]
|
||||
public byte Int { get; set; }
|
||||
[JsonPropertyName("t_bol")]
|
||||
public byte Bol { get; set; }
|
||||
[JsonPropertyName("t_kar")]
|
||||
public byte Kar { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Kemkas.Web.ViewModels;
|
||||
|
||||
public struct Szintlepes
|
||||
{
|
||||
[JsonPropertyName("osztaly")]
|
||||
public string Osztaly { get; set; }
|
||||
|
||||
[JsonPropertyName("HProll")]
|
||||
public byte HProll { get; set; }
|
||||
|
||||
[JsonPropertyName("tolvajExtraKepzettseg")]
|
||||
public string? TolvajExtraKepzettseg { get; set; }
|
||||
|
||||
[JsonPropertyName("harcosFegyver")]
|
||||
public string? HarcosFegyver { get; set; }
|
||||
|
||||
[JsonPropertyName("kalozKritikus")]
|
||||
public string? KalozKritikus { get; set; }
|
||||
|
||||
[JsonPropertyName("tulajdonsagNoveles")]
|
||||
public string? TulajdonsagNoveles { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user