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

35 lines
865 B
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<int>? Tags { get; set; }
[JsonPropertyName("last_active_at")]
public DateTime? LastActiveAt { get; set; }
}