SubscriberApi class
Methods
-
getInAppNotifications(String subscriberId, {int? page, int? limit, bool? read, bool? seen})
→ Future<PaginatedResponse<Notification>>
-
-
getPreferences(String subscriberId)
→ Future<List<SubscriberPreference>>
-
Get subscriber preferences
-
getPreferencesByLevel(String subscriberId, SubscriberPreferenceLevel level)
→ Future<List<SubscriberPreference>>
-
-
getUnseenInAppNotificationCount(String subscriberId)
→ Future<int>
-
Get the number of unread in-app notifications for a subscriber
-
markInAppNotificationAs(String subscriberId, String messageId, MarkNotificationAs status)
→ Future<Notification?>
-
-
markInAppNotificationsAs(String subscriberId, MarkNotificationAs status, [String? feedIdentifier])
→ Future<int>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
request({required ApiMethod method, required String endpoint, Map<String, dynamic>? query, Map<String, dynamic>? data, })
→ Future<Map<String, dynamic>>
-
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
updatePreference(String subscriberId, String templateId, String channel, bool value)
→ Future<SubscriberPreference>
-
Update subscriber preference
Activates or deactivates a channel for a subscriber on a specific template (workflow)