25 lines
625 B
C#
25 lines
625 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace SPMS.Application.DTOs.Device;
|
|
|
|
public class DeviceRegisterRequestDto
|
|
{
|
|
[Required]
|
|
[JsonPropertyName("device_token")]
|
|
public string DeviceToken { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[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; }
|
|
}
|