2023-11-10 22:51:48 +08:00
|
|
|
/// lastVersion : "V2.9.9"
|
|
|
|
/// lastVersionCode : 25
|
|
|
|
/// minVersionCode : 15
|
|
|
|
/// MSE_lastVersion : "V2.9.13"
|
|
|
|
/// MSE_lastVersionCode : 27
|
|
|
|
/// MSE_minVersionCode : 27
|
2023-10-12 21:00:58 +08:00
|
|
|
/// p4kDownloadUrl : "https://p4k.42kit.com/Data.p4k"
|
2023-11-11 01:18:30 +08:00
|
|
|
/// activityColors : {"enable":true,"startTime":1700236800000,"endTime":1701360000000,"background":"#290859","menu":"#310666","mica":"#270452"}
|
2023-10-09 09:32:07 +08:00
|
|
|
|
|
|
|
class AppVersionData {
|
|
|
|
AppVersionData({
|
2024-01-30 01:16:59 +08:00
|
|
|
this.lastVersion,
|
|
|
|
this.lastVersionCode,
|
|
|
|
this.minVersionCode,
|
|
|
|
this.mSELastVersion,
|
|
|
|
this.mSELastVersionCode,
|
|
|
|
this.mSEMinVersionCode,
|
|
|
|
this.p4kDownloadUrl,
|
|
|
|
this.activityColors,
|
|
|
|
});
|
2023-10-09 09:32:07 +08:00
|
|
|
|
|
|
|
AppVersionData.fromJson(dynamic json) {
|
|
|
|
lastVersion = json['lastVersion'];
|
|
|
|
lastVersionCode = json['lastVersionCode'];
|
|
|
|
minVersionCode = json['minVersionCode'];
|
2023-11-10 22:51:48 +08:00
|
|
|
mSELastVersion = json['MSE_lastVersion'];
|
|
|
|
mSELastVersionCode = json['MSE_lastVersionCode'];
|
|
|
|
mSEMinVersionCode = json['MSE_minVersionCode'];
|
2023-10-12 21:00:58 +08:00
|
|
|
p4kDownloadUrl = json['p4kDownloadUrl'];
|
2024-01-30 01:16:59 +08:00
|
|
|
activityColors = json['activityColors'] != null
|
|
|
|
? ActivityColors.fromJson(json['activityColors'])
|
|
|
|
: null;
|
|
|
|
webMirrors = json["web_mirrors"];
|
2023-10-09 09:32:07 +08:00
|
|
|
}
|
2024-01-30 01:16:59 +08:00
|
|
|
|
2023-10-09 09:32:07 +08:00
|
|
|
String? lastVersion;
|
|
|
|
num? lastVersionCode;
|
|
|
|
num? minVersionCode;
|
2023-11-10 22:51:48 +08:00
|
|
|
String? mSELastVersion;
|
|
|
|
num? mSELastVersionCode;
|
|
|
|
num? mSEMinVersionCode;
|
2023-10-12 21:00:58 +08:00
|
|
|
String? p4kDownloadUrl;
|
2023-11-10 22:51:48 +08:00
|
|
|
ActivityColors? activityColors;
|
2024-01-30 01:16:59 +08:00
|
|
|
Map? webMirrors;
|
2023-10-09 09:32:07 +08:00
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
map['lastVersion'] = lastVersion;
|
|
|
|
map['lastVersionCode'] = lastVersionCode;
|
|
|
|
map['minVersionCode'] = minVersionCode;
|
2023-11-10 22:51:48 +08:00
|
|
|
map['MSE_lastVersion'] = mSELastVersion;
|
|
|
|
map['MSE_lastVersionCode'] = mSELastVersionCode;
|
|
|
|
map['MSE_minVersionCode'] = mSEMinVersionCode;
|
2023-10-12 21:00:58 +08:00
|
|
|
map['p4kDownloadUrl'] = p4kDownloadUrl;
|
2023-11-10 22:51:48 +08:00
|
|
|
if (activityColors != null) {
|
|
|
|
map['activityColors'] = activityColors?.toJson();
|
|
|
|
}
|
2024-01-30 01:16:59 +08:00
|
|
|
map["web_mirrors"] = webMirrors;
|
2023-11-10 22:51:48 +08:00
|
|
|
return map;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// enable : true
|
|
|
|
/// startTime : 1700236800000
|
|
|
|
/// endTime : 1701360000000
|
2023-11-11 01:18:30 +08:00
|
|
|
/// background : "#290859"
|
|
|
|
/// menu : "#310666"
|
|
|
|
/// mica : "#270452"
|
2023-11-10 22:51:48 +08:00
|
|
|
|
|
|
|
class ActivityColors {
|
|
|
|
ActivityColors({
|
2024-01-30 01:16:59 +08:00
|
|
|
this.enable,
|
|
|
|
this.startTime,
|
|
|
|
this.endTime,
|
|
|
|
this.background,
|
|
|
|
this.menu,
|
|
|
|
this.mica,
|
|
|
|
});
|
2023-11-10 22:51:48 +08:00
|
|
|
|
|
|
|
ActivityColors.fromJson(dynamic json) {
|
|
|
|
enable = json['enable'];
|
|
|
|
startTime = json['startTime'];
|
|
|
|
endTime = json['endTime'];
|
|
|
|
background = json['background'];
|
|
|
|
menu = json['menu'];
|
|
|
|
mica = json['mica'];
|
|
|
|
}
|
2024-01-30 01:16:59 +08:00
|
|
|
|
2023-11-10 22:51:48 +08:00
|
|
|
bool? enable;
|
2023-11-11 01:18:30 +08:00
|
|
|
int? startTime;
|
|
|
|
int? endTime;
|
2023-11-10 22:51:48 +08:00
|
|
|
String? background;
|
|
|
|
String? menu;
|
|
|
|
String? mica;
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
map['enable'] = enable;
|
|
|
|
map['startTime'] = startTime;
|
|
|
|
map['endTime'] = endTime;
|
|
|
|
map['background'] = background;
|
|
|
|
map['menu'] = menu;
|
|
|
|
map['mica'] = mica;
|
2023-10-09 09:32:07 +08:00
|
|
|
return map;
|
|
|
|
}
|
2024-01-30 01:16:59 +08:00
|
|
|
}
|