mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-04-24 18:04:38 +08:00
支持微信接收硬件设备消息的OpenID字段
参考 http://iot.weixin.qq.com/wiki/new/index.html?page=3-4-1
This commit is contained in:
parent
67e773bb79
commit
13136589db
@ -281,6 +281,12 @@ public class WxMpXmlMessage implements Serializable {
|
||||
@XStreamConverter(value = XStreamCDataConverter.class)
|
||||
private String deviceId;
|
||||
|
||||
/**
|
||||
* 微信用户账号的OpenID
|
||||
*/
|
||||
@XStreamAlias("OpenID")
|
||||
@XStreamConverter(value = XStreamCDataConverter.class)
|
||||
private String openId;
|
||||
|
||||
@XStreamAlias("HardWare")
|
||||
private HardWare hardWare = new HardWare();
|
||||
@ -375,6 +381,14 @@ public class WxMpXmlMessage implements Serializable {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getOpenId() {
|
||||
return openId;
|
||||
}
|
||||
|
||||
public void setOpenId(String openId) {
|
||||
this.openId = openId;
|
||||
}
|
||||
|
||||
public Long getExpiredTime() {
|
||||
return this.expiredTime;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user