Search
Preparing search index...
The search index is not available
ts-wxsdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"message"
Module "message"
Index
Type aliases
IEvent
IEvent
Menu
IEvent
Report
Location
IEvent
Scan
IMsg
Base
IMsg
Image
IMsg
Link
IMsg
Location
IMsg
Text
IMsg
Video
IMsg
Voice
IResive
Event
Functions
msg2json
parse
Type aliases
IEvent
IEvent
:
IMsgBase
<
{
Event
:
"subscribe"
|
"unsubscribe"
;
MsgType
:
"event"
}
>
IEvent
Menu
IEvent
Menu
:
IMsgBase
<
{
Event
:
"VIEW"
|
"CLICK"
;
EventKey
:
string
;
MsgType
:
"event"
}
>
IEvent
Report
Location
IEvent
Report
Location
:
IMsgBase
<
{
Event
:
"LOCATION"
;
Latitude
:
string
;
Longitude
:
string
;
MsgType
:
"event"
;
Precision
:
string
}
>
IEvent
Scan
IEvent
Scan
:
IMsgBase
<
{
Event
:
"subscribe"
|
"SCAN"
;
EventKey
:
string
;
MsgType
:
"event"
;
Ticket
:
string
}
>
IMsg
Base
IMsg
Base<T>
:
{
CreateTime
:
number
;
FromUserName
:
string
;
MsgId
:
string
;
ToUserName
:
string
}
&
T
Type parameters
T
IMsg
Image
IMsg
Image
:
IMsgBase
<
{
MediaId
:
string
;
MsgType
:
"image"
;
PicUrl
:
string
}
>
IMsg
Link
IMsg
Link
:
IMsgBase
<
{
Description
:
string
;
MsgType
:
"link"
;
Title
:
string
;
Url
:
string
}
>
IMsg
Location
IMsg
Location
:
IMsgBase
<
{
Label
:
string
;
Location_X
:
string
;
Location_Y
:
string
;
MsgType
:
"location"
;
Scale
:
string
}
>
IMsg
Text
IMsg
Text
:
IMsgBase
<
{
Content
:
string
;
MsgType
:
"text"
}
>
IMsg
Video
IMsg
Video
:
IMsgBase
<
{
MediaId
:
string
;
MsgType
:
"video"
|
"shortvideo"
;
ThumbMediaId
:
string
}
>
IMsg
Voice
IMsg
Voice
:
IMsgBase
<
{
Format
:
string
;
MediaId
:
string
;
MsgType
:
"voice"
;
Recognition
:
string
}
>
IResive
Event
IResive
Event
:
IMsgText
|
IMsgImage
|
IMsgVideo
|
IMsgVoice
|
IMsgLocation
|
IEvent
|
IEventScan
|
IMsgLink
|
IEventReportLocation
|
IEventMenu
Functions
Const
msg2json
msg2json<T>
(
xml
:
string
)
:
T
Type parameters
T
Parameters
xml:
string
Returns
T
Const
parse
parse
(
xml
:
string
)
:
IResiveEvent
|
null
Parameters
xml:
string
Returns
IResiveEvent
|
null
Globals
"blacklist"
"index"
"message"
"message.response"
"qrcode"
"tags"
"template"
"token"
"user"
IEvent
IEvent
Menu
IEvent
Report
Location
IEvent
Scan
IMsg
Base
IMsg
Image
IMsg
Link
IMsg
Location
IMsg
Text
IMsg
Video
IMsg
Voice
IResive
Event
msg2json
parse
Generated using
TypeDoc