qol: simplify accessors
This commit is contained in:
@@ -37,7 +37,7 @@ namespace Disco.Models.Services.Jobs.JobLists
|
||||
public string StatusDescription { get; set; }
|
||||
public string StatusId { get; set; }
|
||||
public string DeviceHeldLocation { get; set; }
|
||||
public Disco.Models.Repository.Job.UserManagementFlags? Flags { get; set; }
|
||||
public Repository.Job.UserManagementFlags? Flags { get; set; }
|
||||
public DateTime LastActivityDate { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
{
|
||||
public interface ConfigAuthorizationRoleCreateModel : BaseUIModel
|
||||
{
|
||||
Models.Repository.AuthorizationRole AuthorizationRole { get; set; }
|
||||
Repository.AuthorizationRole AuthorizationRole { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
{
|
||||
public interface ConfigDeviceBatchCreateModel : BaseUIModel
|
||||
{
|
||||
Models.Repository.DeviceBatch DeviceBatch { get; set; }
|
||||
Repository.DeviceBatch DeviceBatch { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
{
|
||||
public interface ConfigDeviceBatchShowModelMembership : BaseUIModel
|
||||
{
|
||||
Disco.Models.Repository.DeviceModel DeviceModel { get; set; }
|
||||
Repository.DeviceModel DeviceModel { get; set; }
|
||||
int DeviceCount { get; set; }
|
||||
int DeviceDecommissionedCount { get; set; }
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@ namespace Disco.Models.UI.Config.DeviceModel
|
||||
public interface ConfigDeviceModelComponentsModel : BaseUIModel
|
||||
{
|
||||
int? DeviceModelId { get; set; }
|
||||
List<Disco.Models.Repository.DeviceComponent> DeviceComponents { get; set; }
|
||||
List<Repository.DeviceComponent> DeviceComponents { get; set; }
|
||||
|
||||
List<Disco.Models.Repository.JobSubType> JobSubTypes { get; set; }
|
||||
List<Repository.JobSubType> JobSubTypes { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Disco.Models.UI.Config.DeviceModel
|
||||
{
|
||||
public interface ConfigDeviceModelShowModel : BaseUIModel, ConfigSharedDeviceGroupDocumentTemplateBulkGenerate
|
||||
{
|
||||
Disco.Models.Repository.DeviceModel DeviceModel { get; set; }
|
||||
Repository.DeviceModel DeviceModel { get; set; }
|
||||
|
||||
ConfigDeviceModelComponentsModel DeviceComponentsModel { get; set; }
|
||||
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
{
|
||||
public interface ConfigDeviceProfileCreateModel : BaseUIModel
|
||||
{
|
||||
Models.Repository.DeviceProfile DeviceProfile { get; set; }
|
||||
Repository.DeviceProfile DeviceProfile { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@ namespace Disco.Models.UI.Config.DeviceProfile
|
||||
{
|
||||
public interface ConfigDeviceProfileDefaultsModel : BaseUIModel
|
||||
{
|
||||
List<Disco.Models.Repository.DeviceProfile> DeviceProfiles { get; set; }
|
||||
List<Disco.Models.Repository.DeviceProfile> DeviceProfilesAndNone { get; set; }
|
||||
List<Repository.DeviceProfile> DeviceProfiles { get; set; }
|
||||
List<Repository.DeviceProfile> DeviceProfilesAndNone { get; set; }
|
||||
int Default { get; set; }
|
||||
int DefaultAddDeviceOffline { get; set; }
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
int? Address { get; set; }
|
||||
string AddressName { get; set; }
|
||||
string Description { get; set; }
|
||||
Models.Repository.DeviceProfile.DistributionTypes DistributionType { get; set; }
|
||||
Repository.DeviceProfile.DistributionTypes DistributionType { get; set; }
|
||||
|
||||
int DeviceCount { get; set; }
|
||||
int DeviceDecommissionedCount { get; set; }
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@ namespace Disco.Models.UI.Config.DocumentTemplate
|
||||
{
|
||||
public interface ConfigDocumentTemplateUndetectedPagesModel : BaseUIModel
|
||||
{
|
||||
List<Disco.Models.Repository.DocumentTemplate> DocumentTemplates { get; set; }
|
||||
List<Repository.DocumentTemplate> DocumentTemplates { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace Disco.Models.UI.Config.JobQueue
|
||||
IEnumerable<KeyValuePair<string, string>> Icons { get; set; }
|
||||
IEnumerable<KeyValuePair<string, string>> ThemeColours { get; set; }
|
||||
|
||||
List<Disco.Models.Repository.JobType> JobTypes { get; set; }
|
||||
List<Repository.JobType> JobTypes { get; set; }
|
||||
|
||||
bool CanDelete { get; set; }
|
||||
}
|
||||
|
||||
@@ -4,9 +4,9 @@ namespace Disco.Models.UI.Device
|
||||
{
|
||||
public interface DeviceAddOfflineModel : BaseUIModel
|
||||
{
|
||||
Disco.Models.Repository.Device Device { get; set; }
|
||||
List<Disco.Models.Repository.DeviceProfile> DeviceProfiles { get; set; }
|
||||
List<Disco.Models.Repository.DeviceBatch> DeviceBatches { get; set; }
|
||||
Repository.Device Device { get; set; }
|
||||
List<Repository.DeviceProfile> DeviceProfiles { get; set; }
|
||||
List<Repository.DeviceBatch> DeviceBatches { get; set; }
|
||||
int DefaultDeviceProfileId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,18 +10,18 @@ namespace Disco.Models.UI.Device
|
||||
{
|
||||
Repository.Device Device { get; set; }
|
||||
|
||||
List<Repository.DeviceProfile> DeviceProfiles { get; set; }
|
||||
List<DeviceProfile> DeviceProfiles { get; set; }
|
||||
HashSet<int> DecommissionedDeviceProfileIds { get; set; }
|
||||
OrganisationAddress DeviceProfileDefaultOrganisationAddress { get; set; }
|
||||
|
||||
List<Repository.DeviceBatch> DeviceBatches { get; set; }
|
||||
List<DeviceBatch> DeviceBatches { get; set; }
|
||||
HashSet<int> DecommissionedDeviceBatchIds { get; set; }
|
||||
|
||||
JobTableModel Jobs { get; set; }
|
||||
|
||||
List<Repository.DeviceCertificate> Certificates { get; set; }
|
||||
List<DeviceCertificate> Certificates { get; set; }
|
||||
|
||||
List<Repository.DocumentTemplate> DocumentTemplates { get; set; }
|
||||
List<DocumentTemplate> DocumentTemplates { get; set; }
|
||||
List<DocumentTemplatePackage> DocumentTemplatePackages { get; set; }
|
||||
|
||||
List<DeviceFlag> AvailableDeviceFlags { get; set; }
|
||||
|
||||
@@ -21,8 +21,8 @@ namespace Disco.Models.UI.Job
|
||||
int? QuickLogTaskTimeMinutes { get; set; }
|
||||
int? QuickLogTaskTimeMinutesOther { get; set; }
|
||||
|
||||
Disco.Models.Repository.Device Device { get; set; }
|
||||
Disco.Models.Repository.User User { get; set; }
|
||||
List<Disco.Models.Repository.JobType> JobTypes { get; set; }
|
||||
Repository.Device Device { get; set; }
|
||||
Repository.User User { get; set; }
|
||||
List<Repository.JobType> JobTypes { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Disco.Models.UI.User
|
||||
{
|
||||
public interface UserShowModel : BaseUIModel
|
||||
{
|
||||
Disco.Models.Repository.User User { get; set; }
|
||||
Repository.User User { get; set; }
|
||||
JobTableModel Jobs { get; set; }
|
||||
List<DocumentTemplate> DocumentTemplates { get; set; }
|
||||
List<DocumentTemplatePackage> DocumentTemplatePackages { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user