public class WxRequestBody extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WxRequestBody.Button
button事件的父类
|
static class |
WxRequestBody.Click
click按钮的点击事件,其实就是event
|
static class |
WxRequestBody.Event
Event事件的父类
|
static class |
WxRequestBody.Image
图片媒体消息
|
static class |
WxRequestBody.Link
链接消息
|
static class |
WxRequestBody.Location
地理位置消息
|
static class |
WxRequestBody.LocationReport
上报地理位置
|
static class |
WxRequestBody.MediaMessage
媒体消息的父类
|
static class |
WxRequestBody.Message
所有消息类型的父类
|
static class |
WxRequestBody.Scan
扫码事件
|
static class |
WxRequestBody.ScanCode
event类型为scancode_push、scancode_waitmsg才有
|
static class |
WxRequestBody.SelectLocation
event为location_select时才有
|
static class |
WxRequestBody.SendPicture
event为pic_sysphoto、pic_photo_or_album、pic_weixin才有
|
static class |
WxRequestBody.Subscribe
关注事件,包括扫描关注
|
static class |
WxRequestBody.Template
模板消息相关事件
|
static class |
WxRequestBody.Text
文本消息
|
static class |
WxRequestBody.Unsubscribe
取关事件
|
static class |
WxRequestBody.Video
视频消息
|
static class |
WxRequestBody.View
View的点击事件
|
static class |
WxRequestBody.Voice
声音媒体消息
|
Modifier and Type | Field and Description |
---|---|
protected Date |
createTime
通用
消息创建时间 (整型)
|
protected String |
fromUserName
通用
发送方帐号(一个OpenID)
|
protected String |
toUserName
通用
开发者微信号
|
Constructor and Description |
---|
WxRequestBody() |
Modifier and Type | Method and Description |
---|---|
Date |
getCreateTime() |
String |
getFromUserName() |
WxMessage.Type |
getMessageType() |
String |
getToUserName() |
static <T extends WxRequestBody> |
of(Class<T> clazz,
WxRequest.Body body)
类型声明写泛型上
|
WxRequestBody |
of(WxRequest.Body body)
消息转换
|
protected String toUserName
protected String fromUserName
protected Date createTime
public static <T extends WxRequestBody> T of(Class<T> clazz, WxRequest.Body body)
T
- clazz
- public WxRequestBody of(WxRequest.Body body)
public String getToUserName()
public String getFromUserName()
public Date getCreateTime()
public WxMessage.Type getMessageType()
Copyright © 2018 Guangshan Technology, Inc.. All rights reserved.