Creado apartir del commit b888de6c92056de294456f581a56e25e734d4ab7 de develop
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class AppointmentDto
|
||||
{
|
||||
public string PatientNumber { get; set; } = string.Empty;
|
||||
|
||||
public PatientLocation? Location { get; set; }
|
||||
|
||||
public List<PatientAppointment>? Appointments { get; set; }
|
||||
|
||||
|
||||
public DateTime MessageTime { get; set; }
|
||||
|
||||
public bool WaitResult { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class AssetDto
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Extension { get; set; }
|
||||
public string? Path { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class ConfigObservationDto
|
||||
{
|
||||
public string Id { get; set; } = string.Empty;
|
||||
public long ItemCount { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using adas_core.Domain.Models.MongoModels;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class CreateUserWithAuthDto
|
||||
{
|
||||
public User User { get; set; } = new();
|
||||
public List<Authorization> Authorizations { get; set; } = [];
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using adas_core.Domain.Models.MongoModels;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class DeviceDto
|
||||
{
|
||||
public DeviceEvent? Event { get; set; }
|
||||
public DeviceType DeviceType { get; set; }
|
||||
public string? MacAddr { get; set; }
|
||||
public string? SerialNumber { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public int? Battery { get; set; }
|
||||
public string? Color { get; set; }
|
||||
public bool Connected { get; set; }
|
||||
public bool Ready { get; set; }
|
||||
public string? Uuid { get; set; }
|
||||
public string? Key { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
public List<ObjectId>? PointOfCareIds { get; set; } = new();
|
||||
public DeviceSettings? Settings { get; set; }
|
||||
}
|
||||
public class DeviceEvent
|
||||
{
|
||||
public ClickType? ClickType { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class DiagnosisDto
|
||||
{
|
||||
public string PatientNumber { get; set; } = string.Empty;
|
||||
|
||||
public PatientLocation? Location { get; set; }
|
||||
|
||||
public ObservationData? ObservationData { get; set; }
|
||||
|
||||
public List<PatientObservation>? Observations { get; set; }
|
||||
|
||||
public List<PatientDiagnosis>? Diagnosis { get; set; }
|
||||
|
||||
public DateTime MessageTime { get; set; }
|
||||
|
||||
public bool WaitResult { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
namespace adas_core.Domain.Models.DTO.Display;
|
||||
|
||||
public class ColorConfigDto
|
||||
{
|
||||
public LevelColors? Level { get; set; }
|
||||
public TextColors? Text { get; set; }
|
||||
public ArrowColors? Arrow { get; set; }
|
||||
public IndicatorColors? Indicator { get; set; }
|
||||
public GraphColors? Graph { get; set; }
|
||||
public StatusBoxNumberColors? BoxNumber { get; set; }
|
||||
public TherapyColors? Therapy { get; set; }
|
||||
public TestColors? Test { get; set; }
|
||||
public ProcedureColors? Procedure { get; set; }
|
||||
|
||||
public class AppearanceSettings
|
||||
{
|
||||
public string? TextColor { get; set; }
|
||||
|
||||
public string? BackgroundColor { get; set; }
|
||||
|
||||
public string? Icon { get; set; }
|
||||
|
||||
public string? IconDefault { get; set; }
|
||||
public double? IconInvertColor { get; set; }
|
||||
}
|
||||
|
||||
public class StatusBoxNumberColors
|
||||
{
|
||||
public AppearanceSettings? Reserved { get; set; }
|
||||
public AppearanceSettings? InUse { get; set; }
|
||||
public AppearanceSettings? Available { get; set; }
|
||||
public AppearanceSettings? Locked { get; set; }
|
||||
public AppearanceSettings? Transferable { get; set; }
|
||||
public AppearanceSettings? Exitus { get; set; }
|
||||
public AppearanceSettings? Altable { get; set; }
|
||||
}
|
||||
|
||||
public class TherapyColors
|
||||
{
|
||||
public AppearanceSettings? Default { get; set; }
|
||||
public AppearanceSettings? Initialized { get; set; }
|
||||
public AppearanceSettings? Finished { get; set; }
|
||||
public AppearanceSettings? InProgress { get; set; }
|
||||
}
|
||||
|
||||
public class TestColors
|
||||
{
|
||||
public AppearanceSettings? Default { get; set; }
|
||||
public AppearanceSettings? Initialized { get; set; }
|
||||
public AppearanceSettings? Finished { get; set; }
|
||||
public AppearanceSettings? Expired { get; set; }
|
||||
}
|
||||
|
||||
public class ProcedureColors
|
||||
{
|
||||
public AppearanceSettings? Default { get; set; }
|
||||
public AppearanceSettings? Initialized { get; set; }
|
||||
public AppearanceSettings? Finished { get; set; }
|
||||
public AppearanceSettings? Expired { get; set; }
|
||||
}
|
||||
|
||||
public class LevelColors
|
||||
{
|
||||
public string? Level1 { get; set; }
|
||||
public string? Level2 { get; set; }
|
||||
public string? Level3 { get; set; }
|
||||
public string? Level4 { get; set; }
|
||||
public string? Level5 { get; set; }
|
||||
}
|
||||
|
||||
public class TextColors
|
||||
{
|
||||
public string? Normal { get; set; }
|
||||
public string? Warning { get; set; }
|
||||
public string? Alert { get; set; }
|
||||
public string? Improve { get; set; }
|
||||
public string? Expired { get; set; }
|
||||
}
|
||||
|
||||
public class ArrowColors
|
||||
{
|
||||
public string? Normal { get; set; }
|
||||
public string? Warning { get; set; }
|
||||
public string? Alert { get; set; }
|
||||
public string? Improve { get; set; }
|
||||
}
|
||||
|
||||
public class IndicatorColors
|
||||
{
|
||||
public string? Empty { get; set; }
|
||||
public string? Warning { get; set; }
|
||||
public string? Normal { get; set; }
|
||||
public string? Alert { get; set; }
|
||||
public string? Background { get; set; }
|
||||
public string? EmptyBackground { get; set; }
|
||||
}
|
||||
|
||||
public class GraphColors
|
||||
{
|
||||
public string? Normal { get; set; }
|
||||
public string? Warning { get; set; }
|
||||
public string? Alert { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using adas_core.Domain.Models.MongoModels;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO.Display;
|
||||
|
||||
public class CreateDisplayConfigDto
|
||||
{
|
||||
public DisplayConfigEnums.DisplayType Type { get; set; } =
|
||||
DisplayConfigEnums.DisplayType
|
||||
.Unknown; // Lista de unidades a las que se puede subscriber el cliente par recibir las actualizaciones de la seccion
|
||||
|
||||
public string? Hospital { get; set; }
|
||||
public string? DisplayConfigIdTemplate { get; set; }
|
||||
}
|
||||
|
||||
public class CreateDisplayConfigCardDto
|
||||
{
|
||||
public CardConfig? CardConfig { get; set; }
|
||||
public CardDetailsConfig? DetailConfig { get; set; }
|
||||
public ChartConfig? ChartConfig { get; set; }
|
||||
public ObjectId? DisplayConfigId { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using adas_core.Domain.Models.GroupedObservations;
|
||||
using adas_core.Domain.Models.MongoModels;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO.Display;
|
||||
|
||||
public class DisplayConfigDto
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
public DisplayConfigEnums.DisplayType Type { get; set; } = DisplayConfigEnums.DisplayType.Unknown;
|
||||
public CardConfig? CardConfig { get; set; }
|
||||
public ObjectId? CardConfigId { get; set; }
|
||||
public ObjectId? DetailConfigId { get; set; }
|
||||
public HomeConfig? HomeConfig { get; set; }
|
||||
public HeaderConfig? HeaderConfig { get; set; }
|
||||
public CardDetailsConfig? DetailConfig { get; set; }
|
||||
public List<ObjectId>? DisplaySectionIdList { get; set; }
|
||||
public string? Hospital { get; set; }
|
||||
public List<Field>? FieldList { get; set; }
|
||||
public List<GroupedField>? GroupedFieldList { get; set; }
|
||||
|
||||
|
||||
#region NotMapped
|
||||
|
||||
public List<MinimalDisplaySection>? DisplaySectionList { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace adas_core.Domain.Models.DTO.Display;
|
||||
|
||||
public class DisplayConfigLocationDto
|
||||
{
|
||||
public string? DisplayName { get; set; }
|
||||
public string? UnitName { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO.Display;
|
||||
|
||||
public class DisplayConfigSummary
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public DisplayConfigEnums.DisplayType Type { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO.Display;
|
||||
|
||||
public class DisplayMinimalDto(MongoModels.Display display)
|
||||
{
|
||||
public ObjectId Id { get; set; } = display.Id;
|
||||
public string Name { get; set; } = display.Name;
|
||||
|
||||
public DisplayConfigEnums.DisplayType Type { get; set; } = display.Type;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using adas_core.Domain.Models.MongoModels;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO.Display;
|
||||
|
||||
public class DisplayNurseDto : DisplayConfigDto
|
||||
{
|
||||
public List<BannerItem>? HomeBanner { get; set; }
|
||||
public ColorConfig? ColorConfig { get; set; }
|
||||
public FormConfig? FormConfig { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using adas_core.Domain.Models.AppSettings;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO.Display;
|
||||
|
||||
public class DisplayWithPermissionsDto
|
||||
{
|
||||
public DisplayPermissionTypes? Permissions { get; set; }
|
||||
public MongoModels.Display? Display { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using adas_core.Domain.Models.MongoModels;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO.Display;
|
||||
|
||||
public class MinimalDisplayListDto
|
||||
{
|
||||
public List<MinimalDisplaySection> DisplayNurse { get; set; } = [];
|
||||
public List<MinimalDisplaySection> SmartDisplay { get; set; } = [];
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using adas_core.Domain.Models.GroupedObservations;
|
||||
using adas_core.Domain.Models.MongoModels;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO.Display;
|
||||
|
||||
public class SmartDisplayDto : DisplayConfigDto
|
||||
{
|
||||
public bool? HasCameras { get; set; }
|
||||
public bool? HasSound { get; set; }
|
||||
public bool? IsRotationEnabled { get; set; }
|
||||
public bool? CanChangeCameraMode { get; set; }
|
||||
public bool? CamerasAreActive { get; set; }
|
||||
public string? CameraStreamType { get; set; }
|
||||
public List<Sensor>? SensorList { get; set; }
|
||||
public string? ObservationForIndicator { get; set; }
|
||||
public List<Field>? AlarmFieldList { get; set; }
|
||||
public List<GroupedField>? RequestGroupedFieldList { get; set; }
|
||||
public bool? Pumps { get; set; }
|
||||
public List<ChartConfig>? ChartConfig { get; set; }
|
||||
public GraphLayout? GraphLayout { get; set; }
|
||||
public List<CardRotatingLayout>? CardRotatingLayout { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace adas_core.Domain.Models.DTO.Display;
|
||||
|
||||
public class UpdateDisplayConfigNameDto
|
||||
{
|
||||
public string DisplayName { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class MasterListDto
|
||||
{
|
||||
public ObjectId Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public MasterListType ListType { get; set; }
|
||||
public int Options { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using adas_core.Domain.Models.Masters;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class MasterListWithPaginatedOptionsDto(MasterList masterList, int pageSize, List<UnitInfoDto> units)
|
||||
{
|
||||
public ObjectId Id { get; set; } = masterList.Id;
|
||||
public string Name { get; set; } = masterList.Name;
|
||||
public string Description { get; set; } = masterList.Description;
|
||||
|
||||
public MasterListType ListType { get; set; } = masterList.ListType;
|
||||
public bool CanAddElement { get; set; } = masterList.CanAddElement;
|
||||
public OptionListDetails? OptionListDetails { get; set; } = masterList.OptionListDetails;
|
||||
|
||||
public int TotalOptionsCount { get; set; } = masterList.Options.Count();
|
||||
public List<OptionList> Options { get; set; } = masterList.Options.Take(pageSize).ToList();
|
||||
public List<UnitInfoDto> Units { get; set; } = units;
|
||||
public LocaleEnum? DefaultLocale { get; set; } = masterList.DefaultLocale;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class ObservationAlarmDto
|
||||
{
|
||||
public string? PatientNumber { get; set; }
|
||||
public PatientLocation? Location { get; set; }
|
||||
|
||||
public List<PatientObservationAlarm>? Alarms { get; set; }
|
||||
|
||||
public DateTime MessageTime { get; set; }
|
||||
|
||||
public bool WaitResult { get; set; }
|
||||
|
||||
public ObservationData? ObservationData { get; set; }
|
||||
|
||||
public ObservationData? ObsertationData
|
||||
{
|
||||
get => ObservationData;
|
||||
set => ObservationData = value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class ObservationDto
|
||||
{
|
||||
public string PatientNumber { get; set; } = string.Empty;
|
||||
|
||||
public PatientLocation? Location { get; set; }
|
||||
|
||||
public ObservationData? ObservationData { get; set; }
|
||||
|
||||
public List<PatientObservation>? Observations { get; set; }
|
||||
|
||||
public List<PatientDiagnosis>? Diagnosis { get; set; }
|
||||
|
||||
public DateTime MessageTime { get; set; }
|
||||
|
||||
public bool WaitResult { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using adas_core.Domain.Models.Filter;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class PaginationPairDto
|
||||
{
|
||||
public PaginationFilter ListFilter { get; set; } = new();
|
||||
public PaginationFilter OptionFilter { get; set; } = new();
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class PatientDto
|
||||
{
|
||||
public string PatientNumber { get; set; } = string.Empty;
|
||||
|
||||
public PatientLocation? Location { get; set; }
|
||||
|
||||
public Person? Patient { get; set; }
|
||||
|
||||
|
||||
public DateTime MessageTime { get; set; }
|
||||
|
||||
public bool WaitResult { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class PocAndUnitDto
|
||||
{
|
||||
public List<MinimalPocAndUnitDto> PocList { get; set; } = [];
|
||||
}
|
||||
|
||||
public class MinimalPocAndUnitDto
|
||||
{
|
||||
public string? PocName { get; set; }
|
||||
public ObjectId PocId { get; set; }
|
||||
public string? UnitName { get; set; }
|
||||
public ObjectId UnitId { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using adas_core.Domain.Models.MongoModels;
|
||||
using MongoDB.Bson;
|
||||
using LightBeacon = adas_core.Domain.Models.MongoModels.LightBeacon;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class PointOfCareDto
|
||||
{
|
||||
|
||||
public ObjectId Id { get; set; }
|
||||
public string Room { get; set; } = string.Empty;
|
||||
public string Bed { get; set; } = string.Empty;
|
||||
public string? Hall { get; set; } = string.Empty;
|
||||
public ObjectId UnitId { get; set; }
|
||||
public PointOfCareConfigurationDto? Configuration { get; set; }
|
||||
public StatusEnum.PointOfCare Status { get; set; }
|
||||
public ObjectId? AdmissionId { get; set; }
|
||||
|
||||
#region Unmap
|
||||
|
||||
public string UnitName { get; set; } = string.Empty;
|
||||
public Unit? Unit { get; set; }
|
||||
public PatientLocation Location => new(UnitName, Bed, Room);
|
||||
public List<PatientObservation> Observations { get; set; } = [];
|
||||
public bool? HasPatient { get; set; }
|
||||
public ObjectId? Patientid { get; set; }
|
||||
public Patient? Patient { get; set; }
|
||||
public bool? IsActive { get; set; }
|
||||
public bool? IsVisible { get; set; }
|
||||
public Admission? Admission { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
public class PointOfCareConfigurationDto
|
||||
{
|
||||
public List<LightBeacon> BeaconList { get; set; } = [];
|
||||
public List<Camera> CameraList { get; set; } = [];
|
||||
public List<Relay>? RelayList { get; set; }
|
||||
public string? Type { get; set; }
|
||||
|
||||
// Esta parte hay que tenerla en cuenta al momento de lanzar las grabaciones automaticas y manuales para la API de OR
|
||||
// OR espera recibir roomId
|
||||
public int? Id { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using adas_core.Domain.Models.Pumps;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class PumpDto
|
||||
{
|
||||
public string PatientNumber { get; set; } = string.Empty;
|
||||
|
||||
public PatientLocation? Location { get; set; }
|
||||
|
||||
public List<PumpObservation>? PumpObservations { get; set; }
|
||||
|
||||
|
||||
public DateTime MessageTime { get; set; }
|
||||
|
||||
public bool WaitResult { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using adas_core.Domain.Models.Recording;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class RecordingAlertDto
|
||||
{
|
||||
public string? PatientNumber { get; set; }
|
||||
public PatientLocation? Location { get; set; }
|
||||
|
||||
public List<PatientRecordingAlert>? RecordingAlerts { get; set; }
|
||||
|
||||
public RecordingData? RecordingData { get; set; }
|
||||
|
||||
public DateTime MessageTime { get; set; }
|
||||
|
||||
public bool WaitResult { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class TreatmentDto
|
||||
{
|
||||
public string PatientNumber { get; set; } = string.Empty;
|
||||
|
||||
public PatientLocation? Location { get; set; }
|
||||
|
||||
public List<PatientTreatment>? Treatments { get; set; }
|
||||
|
||||
public PatientTreatment? Treatment { get; set; }
|
||||
|
||||
public DateTime MessageTime { get; set; }
|
||||
|
||||
public bool WaitResult { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using adas_core.Domain.Models.MongoModels;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class UnitInfoDto
|
||||
{
|
||||
[JsonConstructor]
|
||||
public UnitInfoDto()
|
||||
{
|
||||
}
|
||||
|
||||
public UnitInfoDto(Unit? unit)
|
||||
{
|
||||
Id = unit?.Id;
|
||||
Name = unit?.Name ?? string.Empty;
|
||||
Title = unit?.Name ?? string.Empty;
|
||||
}
|
||||
|
||||
public ObjectId? Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Title { get; set; } = string.Empty;
|
||||
public string? ConfigObservationId { get; set; }
|
||||
public long? Admissions { get; set; }
|
||||
public long? Discharges { get; set; }
|
||||
public long? Displays { get; set; }
|
||||
public long? Patients { get; set; }
|
||||
public long? PointOfCares { get; set; }
|
||||
public long? VirtualPointOfCares { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class UpdateListNameAndDescriptionDto
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using adas_core.Domain.Models.Masters;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class UpdateMasterListDetailsDto
|
||||
{
|
||||
public bool? CanAddElement { get; set; }
|
||||
public OptionListDetails? OptionListDetails { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using adas_core.Domain.Models.MongoModels;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class UpdateObservationDto
|
||||
{
|
||||
public ConfigObservation? OldConfigObservationItem { get; set; }
|
||||
public ConfigObservation? NewConfigObservationItem { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using adas_core.Domain.Models.Masters;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class UpdateOptionMasterListDto
|
||||
{
|
||||
public OptionList? UpdatedOption { get; set; }
|
||||
public OptionList? OldOption { get; set; }
|
||||
public string? OptionId { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class UpdatePasswordDto
|
||||
{
|
||||
public string OldPassword { get; set; } = string.Empty;
|
||||
public string NewPassword { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using MongoDB.Bson;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class UpdateUnitIdListDto
|
||||
{
|
||||
public ObjectId UnitId { get; set; }
|
||||
|
||||
public List<MasterListData> MasterListData { get; set; } = [];
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
List<string> items = [];
|
||||
|
||||
items.AddRange(MasterListData.Select(masterListData => $", MasterListData: {masterListData}"));
|
||||
|
||||
|
||||
return "UpdateUnitIdListDto[" + string.Join(", ", items) + "]";
|
||||
}
|
||||
}
|
||||
|
||||
public class MasterListData
|
||||
{
|
||||
public ObjectId? MasterListId { get; set; }
|
||||
public MasterListType? MasterListType { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
List<string> items =
|
||||
[
|
||||
MasterListId != null ? $"identifier: {MasterListId.ToString()}" : "identifier: Null",
|
||||
MasterListType != null ? $"type: {MasterListType.ToString()}" : "type: null"
|
||||
];
|
||||
|
||||
return "[" + string.Join(", ", items) + "]";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using adas_core.Domain.Models.MongoModels;
|
||||
|
||||
namespace adas_core.Domain.Models.DTO;
|
||||
|
||||
public class UpdateUserWithAuthDto
|
||||
{
|
||||
public User User { get; set; } = new();
|
||||
public List<Authorization> Authorizations { get; set; } = [];
|
||||
public List<Authorization> NewAuthorizations { get; set; } = [];
|
||||
public List<string> AuthsToDelete { get; set; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user