NotificationType
Classification of a notification, derived from its action_status. Enumerated so consumers can switch on it without knowing the wire tags. Unknown or missing statuses are treated as FAILED.
enum NotificationType {
SUCCESS = "success",
FAILED = "failed",
SEEN = "seen",
}classifyNotification maps a raw action_status onto these members.
ActionStatus
The wire-level action_status values a notification can carry are modeled by the parallel ActionStatus enum, which shares the same members:
enum ActionStatus {
SUCCESS = "success",
FAILED = "failed",
SEEN = "seen",
}Related
- classifyNotification — turns
action_statusinto aNotificationType. - Notification — carries the classified
type.
Last updated on