using adas_core.Domain.Enums; using adas_core.Domain.Models.DTO.Display; using MongoDB.Bson; namespace adas_core.Domain.Models.Responses; /// /// Represents a minimal response containing essential display configuration data. /// /// /// This class is typically used to convey a lightweight subset of display configuration information in API responses or inter-component communication. /// public class DisplayConfigMinimalResponse { /// /// Initializes a new instance of the class, which represents a minimal response payload carrying display configuration data. /// /// public DisplayConfigMinimalResponse() { } /// /// Initializes a new , a minimal response view of a display configuration, from the supplied and optional flag. /// /// The source whose , , and populate the response. /// The nullable boolean indicating whether the display configuration is in use, stored in . /// public DisplayConfigMinimalResponse(DisplayConfigSummary displayConfig, bool? isInUse = false) { Id = displayConfig.Id; Type = displayConfig.Type; Hospital = displayConfig.Name; IsInUse = isInUse; } public ObjectId Id { get; set; } public DisplayConfigEnums.DisplayType Type { get; set; } = DisplayConfigEnums.DisplayType.Unknown; public string? Hospital { get; set; } public bool? IsInUse { get; set; } }