Documentation ¶
Index ¶
- Constants
- type Article
- type Card
- type DeviceEvent
- type DeviceText
- type File
- type Image
- type InteractiveTaskCard
- type Link
- type Location
- type Media
- type Message
- func (msg *Message) GetType() string
- func (msg *Message) SetType(strType string)
- func (msg *Message) TransformForJsonRequest(appends *object.HashMap, withType bool) (*object.HashMap, error)
- func (msg *Message) TransformForJsonRequestWithoutType(appends *object.HashMap) (*object.HashMap, error)
- func (msg *Message) TransformToXml(appends *object.HashMap, returnAsArray bool) (interface{}, error)
- type MiniProgramNotice
- type MiniProgramPage
- type MsgMenu
- type Music
- type News
- type NewsArticle
- type NewsItem
- type Raw
- type ReplyInteractiveTaskCard
- type ShortVideo
- type TaskCard
- type Text
- type TextCard
- type Transfer
- type Video
- type Voice
Constants ¶
View Source
const ALL = TEXT | IMAGE | VOICE | VIDEO | SHORT_VIDEO | LOCATION | LINK | DEVICE_EVENT | DEVICE_TEXT | FILE | TEXT_CARD | TRANSFER | EVENT | MINIPROGRAM_PAGE | MINIPROGRAM_NOTICE
View Source
const DEVICE_EVENT = 256
View Source
const DEVICE_TEXT = 512
View Source
const EVENT = 1048576
View Source
const FILE = 1024
View Source
const IMAGE = 4
View Source
const LINK = 128
View Source
const LOCATION = 64
View Source
const MINIPROGRAM_NOTICE = 4194304
View Source
const MINIPROGRAM_PAGE = 2097152
View Source
const SHORT_VIDEO = 32
View Source
const TEXT = 2
View Source
const TEXT_CARD = 2048
View Source
const TRANSFER = 4096
View Source
const VIDEO = 16
View Source
const VOICE = 8
View Source
const VOID = 0
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceEvent ¶
type DeviceEvent struct {
*Message
}
func NewDeviceEvent ¶
func NewDeviceEvent(items *power.HashMap) *DeviceEvent
type DeviceText ¶
type DeviceText struct {
*Message
}
func NewDeviceText ¶
func NewDeviceText(items *power.HashMap) *DeviceText
func (*DeviceText) OverrideToXmlArray ¶
func (msg *DeviceText) OverrideToXmlArray()
Override ToXmlArray
type InteractiveTaskCard ¶
type InteractiveTaskCard struct {
*Message
}
func NewInteractiveTaskCard ¶
func NewInteractiveTaskCard(items *power.HashMap) *InteractiveTaskCard
type Message ¶
type Message struct { contract.MessageInterface *object.Attribute Type string ID int To string From string Properties []string JsonAliases *object.HashMap PropertiesToArray func(data *object.HashMap, aliases *object.HashMap) (*object.HashMap, error) ToXmlArray func() *object.HashMap }
func NewMessage ¶
func (*Message) TransformForJsonRequest ¶
func (*Message) TransformForJsonRequestWithoutType ¶
type MiniProgramNotice ¶
type MiniProgramNotice struct {
*Message
}
func NewMiniProgramNotice ¶
func NewMiniProgramNotice(items *power.HashMap) *MiniProgramNotice
type MiniProgramPage ¶
type MiniProgramPage struct {
*Message
}
func NewMiniProgramPage ¶
func NewMiniProgramPage(items *power.HashMap) *MiniProgramPage
type MsgMenu ¶ added in v3.0.25
type MsgMenu struct {
*Message
}
func NewMsgMenu ¶ added in v3.0.25
func (*MsgMenu) OverrideToXmlArray ¶ added in v3.0.25
func (msg *MsgMenu) OverrideToXmlArray()
Override ToXmlArray
type News ¶
type News struct {
*Message
}
func (*News) OverridePropertiesToArray ¶ added in v3.0.40
func (msg *News) OverridePropertiesToArray()
type NewsArticle ¶ added in v3.0.25
type NewsArticle struct {
*Message
}
func NewNewsArticle ¶ added in v3.0.25
func NewNewsArticle(items *power.HashMap) *NewsArticle
type NewsItem ¶
type NewsItem struct {
*Message
}
func NewNewsItem ¶ added in v3.0.30
func (*NewsItem) ToJsonArray ¶
type ReplyInteractiveTaskCard ¶
type ReplyInteractiveTaskCard struct {
*Message
}
func NewReplyInteractiveTaskCard ¶
func NewReplyInteractiveTaskCard(replaceName string) *ReplyInteractiveTaskCard
func (*ReplyInteractiveTaskCard) OverrideToXmlArray ¶
func (msg *ReplyInteractiveTaskCard) OverrideToXmlArray()
Override ToXmlArray
type ShortVideo ¶
type ShortVideo struct {
*Video
}
func NewShortVideo ¶
func NewShortVideo(mediaID string, items *power.HashMap) *ShortVideo
Source Files ¶
- Card.go
- TaskCard.go
- article.go
- deviceEvent.go
- deviceText.go
- file.go
- image.go
- interactiveTaskCard.go
- link.go
- location.go
- media.go
- message.go
- miniProgramNotice.go
- miniProgramPage.go
- msgMenu.go
- music.go
- news.go
- newsArticle.go
- newsItems.go
- raw.go
- replyInteractiveTaskCard.go
- shortVideo.go
- text.go
- textCard.go
- transfer.go
- video.go
- voice.go
Click to show internal directories.
Click to hide internal directories.