35 lines
883 B
C#
35 lines
883 B
C#
using System.Text.Json.Serialization;
|
|
using SPMS.Application.DTOs.Notice;
|
|
|
|
namespace SPMS.Application.DTOs.Push;
|
|
|
|
public class PushLogResponseDto
|
|
{
|
|
[JsonPropertyName("items")]
|
|
public List<PushLogItemDto> Items { get; set; } = [];
|
|
|
|
[JsonPropertyName("pagination")]
|
|
public PaginationDto Pagination { get; set; } = new();
|
|
}
|
|
|
|
public class PushLogItemDto
|
|
{
|
|
[JsonPropertyName("send_id")]
|
|
public long SendId { get; set; }
|
|
|
|
[JsonPropertyName("message_code")]
|
|
public string MessageCode { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("device_id")]
|
|
public string DeviceId { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("status")]
|
|
public string Status { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("fail_reason")]
|
|
public string? FailReason { get; set; }
|
|
|
|
[JsonPropertyName("sent_at")]
|
|
public DateTime SentAt { get; set; }
|
|
}
|