|
@@ -154,6 +154,7 @@ class DeviceInfoDTO extends BaseDTO{
|
|
|
String? departmentCode;
|
|
|
String? shortCode;
|
|
|
bool isAutoShared;
|
|
|
+ bool isEncryptedShow;
|
|
|
DateTime? lastLoginTime;
|
|
|
String? systemVersion;
|
|
|
String? cPUModel;
|
|
@@ -176,6 +177,7 @@ class DeviceInfoDTO extends BaseDTO{
|
|
|
this.departmentCode,
|
|
|
this.shortCode,
|
|
|
this.isAutoShared = false,
|
|
|
+ this.isEncryptedShow = false,
|
|
|
this.lastLoginTime,
|
|
|
this.systemVersion,
|
|
|
this.cPUModel,
|
|
@@ -205,6 +207,7 @@ class DeviceInfoDTO extends BaseDTO{
|
|
|
departmentCode: map['DepartmentCode'],
|
|
|
shortCode: map['ShortCode'],
|
|
|
isAutoShared: map['IsAutoShared'],
|
|
|
+ isEncryptedShow: map['IsEncryptedShow'],
|
|
|
lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
|
|
|
systemVersion: map['SystemVersion'],
|
|
|
cPUModel: map['CPUModel'],
|
|
@@ -245,6 +248,7 @@ class DeviceInfoDTO extends BaseDTO{
|
|
|
if(shortCode != null)
|
|
|
map['ShortCode'] = shortCode;
|
|
|
map['IsAutoShared'] = isAutoShared;
|
|
|
+ map['IsEncryptedShow'] = isEncryptedShow;
|
|
|
if(lastLoginTime != null)
|
|
|
map['LastLoginTime'] = JsonRpcUtils.dateFormat(lastLoginTime!);
|
|
|
if(systemVersion != null)
|
|
@@ -282,6 +286,7 @@ class CacheDeviceDTO extends DeviceInfoDTO{
|
|
|
String? departmentCode,
|
|
|
String? shortCode,
|
|
|
bool isAutoShared = false,
|
|
|
+ bool isEncryptedShow = false,
|
|
|
DateTime? lastLoginTime,
|
|
|
String? systemVersion,
|
|
|
String? cPUModel,
|
|
@@ -305,6 +310,7 @@ class CacheDeviceDTO extends DeviceInfoDTO{
|
|
|
departmentCode: departmentCode,
|
|
|
shortCode: shortCode,
|
|
|
isAutoShared: isAutoShared,
|
|
|
+ isEncryptedShow: isEncryptedShow,
|
|
|
lastLoginTime: lastLoginTime,
|
|
|
systemVersion: systemVersion,
|
|
|
cPUModel: cPUModel,
|
|
@@ -333,6 +339,7 @@ class CacheDeviceDTO extends DeviceInfoDTO{
|
|
|
departmentCode: map['DepartmentCode'],
|
|
|
shortCode: map['ShortCode'],
|
|
|
isAutoShared: map['IsAutoShared'],
|
|
|
+ isEncryptedShow: map['IsEncryptedShow'],
|
|
|
lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
|
|
|
systemVersion: map['SystemVersion'],
|
|
|
cPUModel: map['CPUModel'],
|
|
@@ -353,4 +360,28 @@ class CacheDeviceDTO extends DeviceInfoDTO{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+class SetDeviceIsEncryptedShowRequest extends TokenRequest{
|
|
|
+ bool isEncryptedShow;
|
|
|
+
|
|
|
+ SetDeviceIsEncryptedShowRequest({
|
|
|
+ this.isEncryptedShow = false,
|
|
|
+ String? token,
|
|
|
+ }) : super(
|
|
|
+ token: token,
|
|
|
+ );
|
|
|
+
|
|
|
+ factory SetDeviceIsEncryptedShowRequest.fromJson(Map<String, dynamic> map) {
|
|
|
+ return SetDeviceIsEncryptedShowRequest(
|
|
|
+ isEncryptedShow: map['IsEncryptedShow'],
|
|
|
+ token: map['Token'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ map['IsEncryptedShow'] = isEncryptedShow;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
|