SPMS_API/SPMS.Application/DTOs/Device/DeviceAgreeRequestDto.cs

20 lines
454 B
C#

using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace SPMS.Application.DTOs.Device;
public class DeviceAgreeRequestDto
{
[Required]
[JsonPropertyName("device_id")]
public long DeviceId { get; set; }
[Required]
[JsonPropertyName("push_agreed")]
public bool PushAgreed { get; set; }
[Required]
[JsonPropertyName("marketing_agreed")]
public bool MarketingAgreed { get; set; }
}