1
0
mirror of synced 2024-12-18 17:25:54 +01:00
GC-local-server-rewrite/Application/Dto/CardDetailDto.cs

67 lines
1.7 KiB
C#
Raw Normal View History

using System.ComponentModel;
using System.Xml.Serialization;
namespace Application.Dto;
public class CardDetailDto
{
[XmlAttribute(AttributeName = "id")]
public int Id { get; set; } = -1;
public bool ShouldSerializeId()
{
return Id != -1;
}
[XmlElement(ElementName = "card_id")]
public long CardId { get; set; }
[XmlElement(ElementName = "pcol1")]
public int Pcol1 { get; set; }
[XmlElement(ElementName = "pcol2")]
public int Pcol2 { get; set; }
[XmlElement(ElementName = "pcol3")]
public int Pcol3 { get; set; }
[XmlElement(ElementName = "score_i1")]
public long ScoreI1 { get; set; }
[XmlElement(ElementName = "score_ui1")]
public long ScoreUi1 { get; set; }
[XmlElement(ElementName = "score_ui2")]
public long ScoreUi2 { get; set; }
[XmlElement(ElementName = "score_ui3")]
public long ScoreUi3 { get; set; }
[XmlElement(ElementName = "score_ui4")]
public long ScoreUi4 { get; set; }
[XmlElement(ElementName = "score_ui5")]
public long ScoreUi5 { get; set; }
[XmlElement(ElementName = "score_ui6")]
public long ScoreUi6 { get; set; }
[XmlElement(ElementName = "score_bi1")]
public long ScoreBi1 { get; set; }
[XmlElement(ElementName = "last_play_tenpo_id")]
[DefaultValue("GC local server")]
2023-02-13 17:38:19 +01:00
public string LastPlayTenpoId { get; set; } = "GC local server";
[XmlElement("fcol1")]
public int Fcol1 { get; set; }
[XmlElement("fcol2")]
public int Fcol2 { get; set; }
[XmlElement("fcol3")]
public int Fcol3 { get; set; }
[XmlIgnore]
public DateTime LastPlayTime { get; set; } = DateTime.MinValue;
}