DVStatusSubscribers class

People who asked to hear about incidents, through the same notification channels as everything else.

Constructors

DVStatusSubscribers({DVNotificationsService notifications = const DVNotificationsService(), List<DVNotificationChannel> channels = const <DVNotificationChannel>[DVNotificationChannel.email, DVNotificationChannel.inApp]})

Properties

channels → List<DVNotificationChannel>
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

announce(DVIncident incident) → Future<int>
Sends incident's latest public update to every subscriber, and returns how many it reached. An incident with no public update sends nothing.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subscribe(String recipient) → void
toString() → String
A string representation of this object.
inherited
unsubscribe(String recipient) → void

Operators

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