43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace SPMS.Application.DTOs.Device;
|
|
|
|
public class DeviceInfoResponseDto
|
|
{
|
|
[JsonPropertyName("device_id")]
|
|
public string DeviceId { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("device_token")]
|
|
public string DeviceToken { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("platform")]
|
|
public string Platform { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("os_version")]
|
|
public string? OsVersion { get; set; }
|
|
|
|
[JsonPropertyName("app_version")]
|
|
public string? AppVersion { get; set; }
|
|
|
|
[JsonPropertyName("model")]
|
|
public string? Model { get; set; }
|
|
|
|
[JsonPropertyName("push_agreed")]
|
|
public bool PushAgreed { get; set; }
|
|
|
|
[JsonPropertyName("marketing_agreed")]
|
|
public bool MarketingAgreed { get; set; }
|
|
|
|
[JsonPropertyName("tags")]
|
|
public List<string>? Tags { get; set; }
|
|
|
|
[JsonPropertyName("is_active")]
|
|
public bool IsActive { get; set; }
|
|
|
|
[JsonPropertyName("last_active_at")]
|
|
public DateTime? LastActiveAt { get; set; }
|
|
|
|
[JsonPropertyName("created_at")]
|
|
public DateTime CreatedAt { get; set; }
|
|
}
|