builder

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	RegistrationID        []string          `json:"registration_id"`
	Alias                 []string          `json:"alias"`
	UserAccount           []string          `json:"user_account"`
	Topic                 string            `json:"topic"`
	Topics                []string          `json:"topics"`
	TopicOp               string            `json:"topic_op"`
	Payload               string            `json:"payload,omitempty"`
	RestrictedPackageName string            `json:"restricted_package_name,omitempty"`
	Title                 string            `json:"title"`
	Description           string            `json:"description"`
	PassThrough           int32             `json:"pass_through"`          // 0 通知栏消息, 1 透传消息
	NotifyType            int32             `json:"notify_type,omitempty"` // -1: DEFAULT_ALL 1: 使用默认提示音提示, 2: 使用默认震动提示, 4: 使用默认led灯光提示
	TimeToLive            int64             `json:"time_to_live,omitempty"`
	TimeToSend            int64             `json:"time_to_send,omitempty"`
	NotifyID              int64             `json:"notify_id,omitempty"`
	Extra                 map[string]string `json:"extra,omitempty"`
	SoundURI              string            `json:"sound_uri"`
	Ticker                string            `json:"ticker"`
	NotifyForeground      string            `json:"notify_foreground"`
	NotifyEffect          string            `json:"notify_effect"`
	IntentURI             string            `json:"intent_uri"`
	FlowControl           string            `json:"flow_control"`
	AppVersionNotIn       string            `json:"app_version_not_in"`
	Badge                 string            `json:"badge"`    // ios使用
	Category              string            `json:"category"` // ios使用
}

Builder .

type Channel

type Channel struct {
	ChannelID          string `json:"channelId"`
	ChannelName        string `json:"channelName"`
	NotifyType         int32  `json:"notifyType"`
	ChannelDescription string `json:"channelDescription,omitempty"`
	SoundURI           string `json:"soundUri,omitempty"`
}

Channel .

type Topic

type Topic struct {
	RegistrationID        string `json:"registrationId,omitempty"`
	Aliases               string `json:"aliases,omitempty"`
	UserAccount           string `json:"userAccount,omitempty"`
	Topic                 string `json:"topic"`
	Topics                string `json:"topics"`
	Category              string `json:"category"` // ios使用
	RestrictedPackageName string `json:"restrictedPackageName,omitempty"`
}

Topic .

Jump to

Keyboard shortcuts

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