Documentation ¶
Index ¶
Constants ¶
View Source
const ( ChannelEmail string = "email" ChannelText string = "text" ChannelWhatsApp string = "whatsapp" ChannelPush string = "push" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageContent ¶ added in v1.6.8
type MessageContent struct { MessageTitle string `json:"message_title"` MessageSubTitle string `json:"message_sub_title"` MessagePart1 string `json:"message_part_1"` MessagePart2 string `json:"message_part_2"` MessagePart3 string `json:"message_part_3"` BodyImage string `json:"body_image"` BodyImageUrl string `json:"body_image_url"` ActionButtonText string `json:"action_button_text"` ActionButtonURL string `json:"action_button_url"` }
type NotificationRequest ¶
type NotificationRequest struct { Channel string `json:"channel"` UserIds []string `json:"user_ids"` Destinations []string `json:"destinations,omitempty"` Subject string `json:"subject,omitempty"` HtmlMessage string `json:"html_message,omitempty"` HtmlMessageContent MessageContent `json:"html_message_content"` Message string `json:"message,omitempty"` Payload string `json:"payload,omitempty"` DateCreated string `json:"date_created"` }
func (*NotificationRequest) Validate ¶
func (r *NotificationRequest) Validate() *rest_errors.RestErr
Click to show internal directories.
Click to hide internal directories.