Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NotificationTypePlantComment = "PLANT_COMMENT" NotificationTypePlantCommentReply = "PLANT_COMMENT_REPLY" NotificationTypeReminder = "REMINDER" NotificationTypeAlert = "ALERT" NotificationTypeLikePlantComment = "LIKE_PLANT_COMMENT" NotificationTypeLikePlantFeedEntry = "LIKE_PLANT_FEEDENTRY" )
Functions ¶
Types ¶
type NotificationDataLikePlantComment ¶
type NotificationDataLikePlantComment struct { notifications.NotificationBaseData PlantID uuid.UUID `json:"plantID"` FeedEntryID uuid.UUID `json:"feedEntryID"` CommentID uuid.UUID `json:"commentID"` ReplyTo uuid.NullUUID `json:"replyTo"` }
func NewNotificationDataLikePlantComment ¶
func NewNotificationDataLikePlantComment(title, body, imageUrl string, plantID, feedEntryID uuid.UUID, commentID uuid.UUID, replyTo uuid.NullUUID) (NotificationDataLikePlantComment, messaging.Notification)
func (NotificationDataLikePlantComment) ToMap ¶
func (n NotificationDataLikePlantComment) ToMap() map[string]string
type NotificationDataLikePlantFeedEntry ¶
type NotificationDataLikePlantFeedEntry struct { notifications.NotificationBaseData PlantID uuid.UUID `json:"plantID"` FeedEntryID uuid.UUID `json:"feedEntryID"` }
func NewNotificationDataLikePlantFeedEntry ¶
func NewNotificationDataLikePlantFeedEntry(title, body, imageUrl string, plantID, feedEntryID uuid.UUID) (NotificationDataLikePlantFeedEntry, messaging.Notification)
func (NotificationDataLikePlantFeedEntry) ToMap ¶
func (n NotificationDataLikePlantFeedEntry) ToMap() map[string]string
type NotificationDataPlantComment ¶
type NotificationDataPlantComment struct { notifications.NotificationBaseData PlantID uuid.UUID `json:"plantID"` FeedEntryID uuid.UUID `json:"feedEntryID"` CommentType string `json:"commentType"` }
func NewNotificationDataPlantComment ¶
func NewNotificationDataPlantComment(title, body, imageUrl string, plantID, feedEntryID uuid.UUID, commentType string) (NotificationDataPlantComment, messaging.Notification)
func (NotificationDataPlantComment) ToMap ¶
func (n NotificationDataPlantComment) ToMap() map[string]string
type NotificationDataPlantCommentReply ¶
type NotificationDataPlantCommentReply struct { notifications.NotificationBaseData PlantID uuid.UUID `json:"plantID"` FeedEntryID uuid.UUID `json:"feedEntryID"` CommentID uuid.UUID `json:"commentID"` }
func NewNotificationDataPlantCommentReply ¶
func NewNotificationDataPlantCommentReply(title, body, imageUrl string, plantID, feedEntryID uuid.UUID, commentID uuid.UUID) (NotificationDataPlantCommentReply, messaging.Notification)
func (NotificationDataPlantCommentReply) ToMap ¶
func (n NotificationDataPlantCommentReply) ToMap() map[string]string
type NotificationDataReminder ¶
type NotificationDataReminder struct { notifications.NotificationBaseData PlantID uuid.UUID `json:"plantID"` }
func (NotificationDataReminder) ToMap ¶
func (n NotificationDataReminder) ToMap() map[string]string
Click to show internal directories.
Click to hide internal directories.