notifications_dto

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

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