Utopia-Canteen-System/UtopiaCanteen.Shared/RecentScanDto.cs

32 lines
1.3 KiB
C#

using System.Text.Json.Serialization;
namespace UtopiaCanteen.Shared;
public sealed class RecentScanDto
{
public int Id { get; set; }
public string CardId { get; set; } = string.Empty;
public DateTime ScanTime { get; set; }
public bool IsSynced { get; set; }
public string SiteId { get; set; } = string.Empty;
public string DeviceId { get; set; } = string.Empty;
public string IpAddress { get; set; } = string.Empty;
public int MealSessionCode { get; set; }
public string ParentDocumentId { get; set; } = string.Empty;
public string EmployeeId { get; set; } = string.Empty;
public string UindSerial { get; set; } = string.Empty;
public int FunctionId { get; set; }
public int DepartmentId { get; set; }
public DateTime? TagCreatedAtUtc { get; set; }
public string TagCreatedBy { get; set; } = string.Empty;
public string EmployeeName { get; set; } = string.Empty;
public string Department { get; set; } = string.Empty;
public string DepartmentType { get; set; } = string.Empty;
public string MealLabel { get; set; } = string.Empty;
public string MealItems { get; set; } = string.Empty;
public double TotalPrice { get; set; }
[JsonPropertyName("grade_type")]
public string GradeType { get; set; } = string.Empty;
}