2021-01-04 13:52:13 +00:00
|
|
|
package domain
|
|
|
|
|
|
|
|
type NotificationType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
NotificationTypeEmail NotificationType = iota
|
|
|
|
NotificationTypeSms
|
|
|
|
|
|
|
|
notificationCount
|
|
|
|
)
|
|
|
|
|
|
|
|
func (f NotificationType) Valid() bool {
|
|
|
|
return f >= 0 && f < notificationCount
|
|
|
|
}
|
2022-03-07 13:22:37 +00:00
|
|
|
|
|
|
|
type NotificationProviderState int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
NotificationProviderStateUnspecified NotificationProviderState = iota
|
|
|
|
NotificationProviderStateActive
|
|
|
|
NotificationProviderStateRemoved
|
|
|
|
|
|
|
|
notificationProviderCount
|
|
|
|
)
|
|
|
|
|
|
|
|
func (s NotificationProviderState) Exists() bool {
|
|
|
|
return s == NotificationProviderStateActive
|
|
|
|
}
|
|
|
|
|
|
|
|
type NotificationProviderType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
NotificationProviderTypeFile NotificationProviderType = iota
|
|
|
|
NotificationProviderTypeLog
|
|
|
|
|
|
|
|
notificationProviderTypeCount
|
|
|
|
)
|