33 lines
772 B
C#
33 lines
772 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Fitness_core_BE.DTOs.Place
|
|
{
|
|
public class CreatePlaceRequest
|
|
{
|
|
[Required]
|
|
public string Name { get; set; } = string.Empty;
|
|
public string? Description { get; set; }
|
|
}
|
|
|
|
public class UpdatePlaceRequest
|
|
{
|
|
[Required]
|
|
public Guid PlaceId { get; set; }
|
|
public string? Name { get; set; }
|
|
public string? Description { get; set; }
|
|
public bool? IsActive { get; set; }
|
|
}
|
|
|
|
public class SetPlaceStatusRequest
|
|
{
|
|
[Required]
|
|
public bool IsActive { get; set; }
|
|
}
|
|
|
|
public class AssignPlaceDeviceRequest
|
|
{
|
|
// Null unassigns the place's current device.
|
|
public Guid? DeviceId { get; set; }
|
|
}
|
|
}
|