20 lines
472 B
C#
20 lines
472 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace SPMS.Application.DTOs.Device;
|
|
|
|
public class DeviceAgreeRequestDto
|
|
{
|
|
[Required]
|
|
[JsonPropertyName("device_id")]
|
|
public string DeviceId { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[JsonPropertyName("push_agreed")]
|
|
public bool PushAgreed { get; set; }
|
|
|
|
[Required]
|
|
[JsonPropertyName("marketing_agreed")]
|
|
public bool MarketingAgreed { get; set; }
|
|
}
|