public class WxCpXmlMessage extends Object implements Serializable
微信推送过来的消息,也是同步回复给用户的消息,xml格式 相关字段的解释看微信开发者文档: http://mp.weixin.qq.com/wiki/index.php?title=接收普通消息 http://mp.weixin.qq.com/wiki/index.php?title=接收事件推送 http://mp.weixin.qq.com/wiki/index.php?title=接收语音识别结果
限定符和类型 | 类和说明 |
---|---|
static class |
WxCpXmlMessage.ScanCodeInfo |
static class |
WxCpXmlMessage.SendLocationInfo |
static class |
WxCpXmlMessage.SendPicsInfo |
构造器和说明 |
---|
WxCpXmlMessage() |
protected static WxCpXmlMessage fromXml(String xml)
protected static WxCpXmlMessage fromXml(InputStream is)
public static WxCpXmlMessage fromEncryptedXml(String encryptedXml, WxCpConfigStorage wxCpConfigStorage, String timestamp, String nonce, String msgSignature)
encryptedXml
- wxCpConfigStorage
- timestamp
- nonce
- msgSignature
- public static WxCpXmlMessage fromEncryptedXml(InputStream is, WxCpConfigStorage wxCpConfigStorage, String timestamp, String nonce, String msgSignature)
public Integer getAgentId()
public void setAgentId(Integer agentId)
public String getToUserName()
public void setToUserName(String toUserName)
public Long getCreateTime()
public void setCreateTime(Long createTime)
public String getMsgType()
public void setMsgType(String msgType)
当发送消息的时候使用:WxConsts.XML_MSG_TEXT
WxConsts.XML_MSG_IMAGE
WxConsts.XML_MSG_VOICE
WxConsts.XML_MSG_VIDEO
WxConsts.XML_MSG_NEWS
msgType
- public String getContent()
public void setContent(String content)
public Long getMsgId()
public void setMsgId(Long msgId)
public String getPicUrl()
public void setPicUrl(String picUrl)
public String getMediaId()
public void setMediaId(String mediaId)
public String getFormat()
public void setFormat(String format)
public String getThumbMediaId()
public void setThumbMediaId(String thumbMediaId)
public Double getLocationX()
public void setLocationX(Double locationX)
public Double getLocationY()
public void setLocationY(Double locationY)
public Double getScale()
public void setScale(Double scale)
public String getLabel()
public void setLabel(String label)
public String getTitle()
public void setTitle(String title)
public String getDescription()
public void setDescription(String description)
public String getUrl()
public void setUrl(String url)
public String getEvent()
public void setEvent(String event)
public String getEventKey()
public void setEventKey(String eventKey)
public String getTicket()
public void setTicket(String ticket)
public Double getLatitude()
public void setLatitude(Double latitude)
public Double getLongitude()
public void setLongitude(Double longitude)
public Double getPrecision()
public void setPrecision(Double precision)
public String getRecognition()
public void setRecognition(String recognition)
public String getFromUserName()
public void setFromUserName(String fromUserName)
public String getStatus()
public void setStatus(String status)
public Integer getTotalCount()
public void setTotalCount(Integer totalCount)
public Integer getFilterCount()
public void setFilterCount(Integer filterCount)
public Integer getSentCount()
public void setSentCount(Integer sentCount)
public Integer getErrorCount()
public void setErrorCount(Integer errorCount)
public WxCpXmlMessage.ScanCodeInfo getScanCodeInfo()
public void setScanCodeInfo(WxCpXmlMessage.ScanCodeInfo scanCodeInfo)
public WxCpXmlMessage.SendPicsInfo getSendPicsInfo()
public void setSendPicsInfo(WxCpXmlMessage.SendPicsInfo sendPicsInfo)
public WxCpXmlMessage.SendLocationInfo getSendLocationInfo()
public void setSendLocationInfo(WxCpXmlMessage.SendLocationInfo sendLocationInfo)
Copyright © 2016. All rights reserved.