#138 device flags configuration API and UI
This commit is contained in:
@@ -54,6 +54,8 @@
|
||||
<Compile Include="Exporting\IExportRecord.cs" />
|
||||
<Compile Include="Repository\Device\Flag\DeviceFlag.cs" />
|
||||
<Compile Include="Repository\Device\Flag\DeviceFlagAssignment.cs" />
|
||||
<Compile Include="Services\Devices\DeviceFlags\DeviceFlagExportOptions.cs" />
|
||||
<Compile Include="Services\Devices\DeviceFlags\DeviceFlagExportRecord.cs" />
|
||||
<Compile Include="Services\Expressions\Extensions\ImageExpressionFormat.cs" />
|
||||
<Compile Include="ClientServices\EnrolmentInformation\BaseBoard.cs" />
|
||||
<Compile Include="ClientServices\EnrolmentInformation\Battery.cs" />
|
||||
@@ -200,6 +202,10 @@
|
||||
<Compile Include="UI\Config\Shared\ConfigSharedDeviceGroupDocumentTemplateBulkGenerate.cs" />
|
||||
<Compile Include="UI\Config\Shared\ConfigSharedTaskStatusModel.cs" />
|
||||
<Compile Include="UI\Config\Organisation\ConfigOrganisationIndexModel.cs" />
|
||||
<Compile Include="UI\Config\DeviceFlag\ConfigDeviceFlagCreateModel.cs" />
|
||||
<Compile Include="UI\Config\DeviceFlag\ConfigDeviceFlagExportModel.cs" />
|
||||
<Compile Include="UI\Config\DeviceFlag\ConfigDeviceFlagIndexModel.cs" />
|
||||
<Compile Include="UI\Config\DeviceFlag\ConfigDeviceFlagShowModel.cs" />
|
||||
<Compile Include="UI\Config\UserFlag\ConfigUserFlagCreateModel.cs" />
|
||||
<Compile Include="UI\Config\UserFlag\ConfigUserFlagIndexModel.cs" />
|
||||
<Compile Include="UI\Config\UserFlag\ConfigUserFlagShowModel.cs" />
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Disco.Models.UI.Config.DeviceFlag
|
||||
{
|
||||
public interface ConfigDeviceFlagCreateModel : BaseUIModel
|
||||
{
|
||||
Repository.DeviceFlag DeviceFlag { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using Disco.Models.Services.Devices.DeviceFlag;
|
||||
using Disco.Models.Services.Exporting;
|
||||
using Disco.Models.UI;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Disco.Models.Areas.Config.UI.DeviceFlag
|
||||
{
|
||||
public interface ConfigDeviceFlagExportModel : BaseUIModel
|
||||
{
|
||||
DeviceFlagExportOptions Options { get; set; }
|
||||
|
||||
string ExportSessionId { get; set; }
|
||||
ExportResult ExportSessionResult { get; set; }
|
||||
|
||||
List<Repository.DeviceFlag> DeviceFlags { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Disco.Models.UI.Config.DeviceFlag
|
||||
{
|
||||
public interface ConfigDeviceFlagIndexModel : BaseUIModel
|
||||
{
|
||||
Dictionary<Repository.DeviceFlag, int> DeviceFlags { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Disco.Models.UI.Config.DeviceFlag
|
||||
{
|
||||
public interface ConfigDeviceFlagShowModel : BaseUIModel
|
||||
{
|
||||
Repository.DeviceFlag DeviceFlag { get; set; }
|
||||
|
||||
int CurrentAssignmentCount { get; set; }
|
||||
int TotalAssignmentCount { get; set; }
|
||||
|
||||
IEnumerable<KeyValuePair<string, string>> Icons { get; set; }
|
||||
IEnumerable<KeyValuePair<string, string>> ThemeColours { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user