mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-10-29 04:23:29 +01:00
Added category add/remove (no recolour/rename for now)
This commit is contained in:
@@ -47,6 +47,7 @@ class App {
|
||||
late Map<String, String> additionalSettings;
|
||||
late DateTime? lastUpdateCheck;
|
||||
bool pinned = false;
|
||||
String? category;
|
||||
App(
|
||||
this.id,
|
||||
this.url,
|
||||
@@ -58,7 +59,8 @@ class App {
|
||||
this.preferredApkIndex,
|
||||
this.additionalSettings,
|
||||
this.lastUpdateCheck,
|
||||
this.pinned);
|
||||
this.pinned,
|
||||
{this.category});
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
@@ -107,7 +109,8 @@ class App {
|
||||
json['lastUpdateCheck'] == null
|
||||
? null
|
||||
: DateTime.fromMicrosecondsSinceEpoch(json['lastUpdateCheck']),
|
||||
json['pinned'] ?? false);
|
||||
json['pinned'] ?? false,
|
||||
category: json['category']);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
@@ -121,7 +124,8 @@ class App {
|
||||
'preferredApkIndex': preferredApkIndex,
|
||||
'additionalSettings': jsonEncode(additionalSettings),
|
||||
'lastUpdateCheck': lastUpdateCheck?.microsecondsSinceEpoch,
|
||||
'pinned': pinned
|
||||
'pinned': pinned,
|
||||
'category': category
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user