social

package
v0.0.0-...-9bd9899 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

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

func Init

func Init()

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

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

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

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

type NotificationDataReminder

type NotificationDataReminder struct {
	notifications.NotificationBaseData

	PlantID uuid.UUID `json:"plantID"`
}

func (NotificationDataReminder) ToMap

func (n NotificationDataReminder) ToMap() map[string]string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL