SPMS_API/SPMS.Application/DTOs/Device/DeviceListResponseDto.cs

59 lines
1.5 KiB
C#

using System.Text.Json.Serialization;
using SPMS.Application.DTOs.Notice;
namespace SPMS.Application.DTOs.Device;
public class DeviceListResponseDto
{
[JsonPropertyName("items")]
public List<DeviceSummaryDto> Items { get; set; } = new();
[JsonPropertyName("pagination")]
public PaginationDto Pagination { get; set; } = new();
}
public class DeviceSummaryDto
{
[JsonPropertyName("device_id")]
public long DeviceId { get; set; }
[JsonPropertyName("platform")]
public string Platform { get; set; } = string.Empty;
[JsonPropertyName("model")]
public string? Model { get; set; }
[JsonPropertyName("push_agreed")]
public bool PushAgreed { get; set; }
[JsonPropertyName("tags")]
public List<string>? Tags { get; set; }
[JsonPropertyName("last_active_at")]
public DateTime? LastActiveAt { get; set; }
[JsonPropertyName("device_token")]
public string DeviceToken { get; set; } = string.Empty;
[JsonPropertyName("service_name")]
public string ServiceName { get; set; } = string.Empty;
[JsonPropertyName("service_code")]
public string ServiceCode { get; set; } = string.Empty;
[JsonPropertyName("os_version")]
public string? OsVersion { get; set; }
[JsonPropertyName("app_version")]
public string? AppVersion { get; set; }
[JsonPropertyName("marketing_agreed")]
public bool MarketingAgreed { get; set; }
[JsonPropertyName("is_active")]
public bool IsActive { get; set; }
[JsonPropertyName("created_at")]
public DateTime CreatedAt { get; set; }
}