Creado apartir del commit b888de6c92056de294456f581a56e25e734d4ab7 de develop
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
namespace adas_core.Domain.Models.Recording;
|
||||
|
||||
public class AccessGrant
|
||||
{
|
||||
private int _expiresIn;
|
||||
|
||||
public string? AccessToken { get; set; }
|
||||
|
||||
public int ExpiresIn
|
||||
{
|
||||
get => _expiresIn;
|
||||
set
|
||||
{
|
||||
_expiresIn = value;
|
||||
Expires = DateTime.Now.AddSeconds(value);
|
||||
}
|
||||
}
|
||||
|
||||
public string? Scope { get; set; }
|
||||
public string? TokenType { get; set; }
|
||||
public DateTime Expires { get; private set; }
|
||||
|
||||
public bool IsExpired => DateTime.Now.CompareTo(Expires) >= 0;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace adas_core.Domain.Models.Recording;
|
||||
|
||||
public class Patient
|
||||
{
|
||||
/// <summary>
|
||||
/// PatientNumber
|
||||
/// </summary>
|
||||
public string Id { get; set; } = string.Empty;
|
||||
|
||||
public string FirstName { get; set; } = string.Empty;
|
||||
public string LastName { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using adas_core.Domain.Enums;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace adas_core.Domain.Models.Recording;
|
||||
|
||||
public class RecordingData
|
||||
{
|
||||
public Patient? Patient { get; set; }
|
||||
public int RoomId { get; set; }
|
||||
public DateTime? StartRecordingTime { get; set; }
|
||||
public DateTime? StopRecordingTime { get; set; }
|
||||
public DateTime? EventTime { get; set; }
|
||||
public AlarmEnum.Type? AlarmType { get; set; }
|
||||
public AlarmEnum.Severity Severity { get; set; } = AlarmEnum.Severity.None;
|
||||
public string? AlarmDescription { get; set; }
|
||||
public string? AlarmName { get; set; }
|
||||
public string Store { get; set; } = string.Empty;
|
||||
public int Retry { get; set; }
|
||||
public string Status { get; set; } = string.Empty;
|
||||
|
||||
public string GenerateStore()
|
||||
{
|
||||
return Store = $"{RoomId}_{DateTime.Now:yyyyMMdd-HHmmss}";
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
try
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.None);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return base.ToString()!;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
using adas_core.Domain.Enums;
|
||||
|
||||
namespace adas_core.Domain.Models.Recording;
|
||||
|
||||
public record VideoDto
|
||||
{
|
||||
public string Id { get; set; } = null!; //
|
||||
public string? PatientId { get; set; }
|
||||
public int RoomId { get; set; }
|
||||
public int? CameraId { get; set; }
|
||||
public string? DiagnosisId { get; set; }
|
||||
public string? ProcedureId { get; set; }
|
||||
public string? ServiceId { get; set; }
|
||||
public int? DiseaseId { get; set; }
|
||||
public int? ThumbnailId { get; set; }
|
||||
public bool BlockChange { get; set; }
|
||||
public string Sid { get; set; } = null!; //
|
||||
public DateTime Date { get; set; } //
|
||||
public DateTime? EndDate { get; set; } //
|
||||
public string Store { get; set; } = null!; //
|
||||
public string? DiagnosisDescription { get; set; } //
|
||||
public string? ProcedureDescription { get; set; } //
|
||||
public string? Observations { get; set; } //
|
||||
public int Duration { get; set; } //
|
||||
public StatusEnum.Video VideoStatus { get; set; } = StatusEnum.Video.Initialized;
|
||||
public DateTime? UpdateDate { get; set; }
|
||||
public string? DeletedBy { get; set; }
|
||||
public DateTime? StartDate { get; set; }
|
||||
public AlarmEnum.Type? Alarm { get; set; }
|
||||
|
||||
public string? Alert { get; set; }
|
||||
|
||||
public string? PublishedFilename { get; set; }
|
||||
public string? PublishedExportDir { get; set; }
|
||||
public string? PublishedVideoPath { get; set; }
|
||||
|
||||
public string? SecondaryProcId { get; set; }
|
||||
public string? SecondaryDiagnosisId { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user