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