SubscriberApi class

Inheritance

Constructors

SubscriberApi.new(String baseUrl, String? apiKey)

Properties

apiKey String?
finalinherited
baseUrl String
finalinherited
client ↔ Dio
latefinalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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, Map<String, String>? headers}) 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)

Operators

operator ==(Object other) bool
The equality operator.
inherited