Documentation
¶
Index ¶
- Constants
- type Message
- func (msg *Message) GetType() string
- func (msg *Message) PropertiesToArray(data *object.HashMap, aliases *object.HashMap) (*object.HashMap, error)
- 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 News
- type NewsItem
- type Raw
- type Text
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 Message ¶
type Message struct { contract.MessageInterface *object.Attribute Type string Id int To string From string Properties []string JsonAliases *object.HashMap ToXmlArray func() *object.HashMap }
func NewMessage ¶
func (*Message) PropertiesToArray ¶
func (*Message) TransformForJsonRequest ¶
func (*Message) TransformForJsonRequestWithoutType ¶
type NewsItem ¶
type NewsItem struct {
*Message
}
func NewNewsItems ¶
func (*NewsItem) ToJsonArray ¶
Click to show internal directories.
Click to hide internal directories.