Esempio n. 1
0
 public ExternalServerDTO GetDTO()
 {
     return(new()
     {
         Id = Id,
         Status = Status,
         StatusLastChecked = StatusLastChecked,
         ReservationType = ReservationType,
         ReservedFor = ReservedFor?.ToString() ?? "unset",
         PublicAddress = PublicAddress,
         RunningSince = RunningSince,
         ProvisionedFully = ProvisionedFully,
         WantsMaintenance = WantsMaintenance,
         LastMaintenance = LastMaintenance,
         UsedDiskSpace = UsedDiskSpace,
         CleanUpQueued = CleanUpQueued,
         SSHKeyFileName = SSHKeyFileName,
         Priority = Priority,
         CreatedAt = CreatedAt,
         UpdatedAt = UpdatedAt,
     });
 }
Esempio n. 2
0
 public ControlledServerDTO GetDTO()
 {
     return(new()
     {
         Id = Id,
         Status = Status,
         StatusLastChecked = StatusLastChecked,
         ReservationType = ReservationType,
         ReservedFor = ReservedFor?.ToString() ?? "unset",
         PublicAddress = PublicAddress,
         RunningSince = RunningSince,
         TotalRuntime = TotalRuntime,
         ProvisionedFully = ProvisionedFully,
         InstanceId = InstanceId,
         WantsMaintenance = WantsMaintenance,
         LastMaintenance = LastMaintenance,
         UsedDiskSpace = UsedDiskSpace,
         CleanUpQueued = CleanUpQueued,
         CreatedAt = CreatedAt,
         UpdatedAt = UpdatedAt,
     });
 }