Implement proper handling for inactive/active subscriptions

This commit is contained in:
2025-04-18 00:11:01 +02:00
parent a43a3b441f
commit 63bc71c405
10 changed files with 268 additions and 48 deletions

View File

@@ -6,6 +6,7 @@ class Subscription {
final String channelInternalName;
final String timestampCreated;
final bool confirmed;
final bool active;
const Subscription({
required this.subscriptionID,
@@ -15,6 +16,7 @@ class Subscription {
required this.channelInternalName,
required this.timestampCreated,
required this.confirmed,
required this.active,
});
factory Subscription.fromJson(Map<String, dynamic> json) {
@@ -26,6 +28,7 @@ class Subscription {
channelInternalName: json['channel_internal_name'] as String,
timestampCreated: json['timestamp_created'] as String,
confirmed: json['confirmed'] as bool,
active: json['active'] as bool,
);
}