#138 device flags configuration API and UI
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
using Disco.Models.UI.Config.DeviceFlag;
|
||||
|
||||
namespace Disco.Web.Areas.Config.Models.DeviceFlag
|
||||
{
|
||||
public class CreateModel : ConfigDeviceFlagCreateModel
|
||||
{
|
||||
public Disco.Models.Repository.DeviceFlag DeviceFlag { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using Disco.Models.Areas.Config.UI.DeviceFlag;
|
||||
using Disco.Models.Services.Devices.DeviceFlag;
|
||||
using Disco.Models.Services.Exporting;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Disco.Web.Areas.Config.Models.DeviceFlag
|
||||
{
|
||||
public class ExportModel : ConfigDeviceFlagExportModel
|
||||
{
|
||||
public DeviceFlagExportOptions Options { get; set; }
|
||||
|
||||
public string ExportSessionId { get; set; }
|
||||
public ExportResult ExportSessionResult { get; set; }
|
||||
|
||||
public List<Disco.Models.Repository.DeviceFlag> DeviceFlags { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using Disco.Models.UI.Config.DeviceFlag;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Disco.Web.Areas.Config.Models.DeviceFlag
|
||||
{
|
||||
public class IndexModel : ConfigDeviceFlagIndexModel
|
||||
{
|
||||
public Dictionary<Disco.Models.Repository.DeviceFlag, int> DeviceFlags { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using Disco.Models.UI.Config.DeviceFlag;
|
||||
using Disco.Services.Devices.DeviceFlags;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Disco.Web.Areas.Config.Models.DeviceFlag
|
||||
{
|
||||
public class ShowModel : ConfigDeviceFlagShowModel
|
||||
{
|
||||
public Disco.Models.Repository.DeviceFlag DeviceFlag { get; set; }
|
||||
|
||||
public int CurrentAssignmentCount { get; set; }
|
||||
public int TotalAssignmentCount { get; set; }
|
||||
|
||||
public DeviceFlagDevicesManagedGroup DevicesLinkedGroup { get; set; }
|
||||
public DeviceFlagDeviceAssignedUsersManagedGroup AssignedUserLinkedGroup { get; set; }
|
||||
|
||||
public IEnumerable<KeyValuePair<string, string>> Icons { get; set; }
|
||||
public IEnumerable<KeyValuePair<string, string>> ThemeColours { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user