feature: export device custom details
This commit is contained in:
@@ -88,6 +88,8 @@ namespace Disco.Models.Services.Devices.Exporting
|
||||
public bool AssignedUserPhoneNumber { get; set; }
|
||||
[Display(ShortName = "Assigned User", Name = "Email Address", Description = "The email address of the user assigned to the device")]
|
||||
public bool AssignedUserEmailAddress { get; set; }
|
||||
[Display(ShortName = "Assigned User", Name = "Custom Details", Description = "The custom details provided by plugins for the user assigned to the device")]
|
||||
public bool AssignedUserDetailCustom { get; set; }
|
||||
|
||||
// Jobs
|
||||
[Display(ShortName = "Jobs", Name = "Count", Description = "The total number of jobs associated with the device")]
|
||||
@@ -128,6 +130,8 @@ namespace Disco.Models.Services.Devices.Exporting
|
||||
public bool DetailBattery { get; set; }
|
||||
[Display(ShortName = "Details", Name = "Keyboard", Description = "The Keyboard associated with the device")]
|
||||
public bool DetailKeyboard { get; set; }
|
||||
[Display(ShortName = "Details", Name = "Custom Details", Description = "Custom details provided by plugins")]
|
||||
public bool DetailCustom { get; set; }
|
||||
|
||||
public static DeviceExportOptions DefaultOptions()
|
||||
{
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace Disco.Models.Services.Devices.Exporting
|
||||
public List<string> DeviceDetailLanMacAddresses { get; set; }
|
||||
public List<string> DeviceDetailWlanMacAddresses { get; set; }
|
||||
public List<Battery> DeviceDetailBatteries { get; set; }
|
||||
public Dictionary<string, string> DeviceDetailCustom { get; set; }
|
||||
|
||||
// Model
|
||||
public int? ModelId { get; set; }
|
||||
@@ -48,6 +49,8 @@ namespace Disco.Models.Services.Devices.Exporting
|
||||
// User
|
||||
public DeviceUserAssignment DeviceUserAssignment { get; set; }
|
||||
public User AssignedUser { get; set; }
|
||||
public IList<UserDetail> AssignedUserDetails { get; set; }
|
||||
public Dictionary<string, string> AssignedUserCustomDetails { get; set; }
|
||||
|
||||
// Jobs
|
||||
public int JobsTotalCount { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user