43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace SPMS.Application.DTOs.Push;
|
|
|
|
public class PushMessageDto
|
|
{
|
|
[JsonPropertyName("message_id")]
|
|
public string MessageId { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("request_id")]
|
|
public string RequestId { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("service_id")]
|
|
public long ServiceId { get; set; }
|
|
|
|
[JsonPropertyName("send_type")]
|
|
public string SendType { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("title")]
|
|
public string Title { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("body")]
|
|
public string Body { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("image_url")]
|
|
public string? ImageUrl { get; set; }
|
|
|
|
[JsonPropertyName("link_url")]
|
|
public string? LinkUrl { get; set; }
|
|
|
|
[JsonPropertyName("custom_data")]
|
|
public Dictionary<string, object>? CustomData { get; set; }
|
|
|
|
[JsonPropertyName("target")]
|
|
public PushTargetDto Target { get; set; } = new();
|
|
|
|
[JsonPropertyName("created_by")]
|
|
public long CreatedBy { get; set; }
|
|
|
|
[JsonPropertyName("created_at")]
|
|
public string CreatedAt { get; set; } = string.Empty;
|
|
}
|