mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🎨 修复部分错误的javadoc标签
This commit is contained in:
@@ -1,48 +1,48 @@
|
||||
package me.chanjar.weixin.mp.builder.outxml;
|
||||
|
||||
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutDeviceMessage;
|
||||
|
||||
/**
|
||||
* 设备消息 Builder
|
||||
* @author biggates
|
||||
* @see https://iot.weixin.qq.com/wiki/new/index.html?page=3-4-2
|
||||
*/
|
||||
public final class DeviceBuilder extends BaseBuilder<DeviceBuilder, WxMpXmlOutDeviceMessage> {
|
||||
|
||||
private String deviceId;
|
||||
private String deviceType;
|
||||
private String content;
|
||||
private String sessionId;
|
||||
|
||||
public DeviceBuilder deviceType(String deviceType) {
|
||||
this.deviceType = deviceType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public DeviceBuilder deviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public DeviceBuilder content(String content) {
|
||||
this.content = content;
|
||||
return this;
|
||||
}
|
||||
|
||||
public DeviceBuilder sessionId(String sessionId) {
|
||||
this.sessionId = sessionId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public WxMpXmlOutDeviceMessage build() {
|
||||
WxMpXmlOutDeviceMessage m = new WxMpXmlOutDeviceMessage();
|
||||
setCommon(m);
|
||||
m.setDeviceId(this.deviceId);
|
||||
m.setDeviceType(this.deviceType);
|
||||
m.setContent(this.content);
|
||||
m.setSessionId(this.sessionId);
|
||||
return m;
|
||||
}
|
||||
|
||||
}
|
||||
package me.chanjar.weixin.mp.builder.outxml;
|
||||
|
||||
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutDeviceMessage;
|
||||
|
||||
/**
|
||||
* 设备消息 Builder
|
||||
* @author biggates
|
||||
* @see <a href="https://iot.weixin.qq.com/wiki/new/index.html?page=3-4-2">文档</a>
|
||||
*/
|
||||
public final class DeviceBuilder extends BaseBuilder<DeviceBuilder, WxMpXmlOutDeviceMessage> {
|
||||
|
||||
private String deviceId;
|
||||
private String deviceType;
|
||||
private String content;
|
||||
private String sessionId;
|
||||
|
||||
public DeviceBuilder deviceType(String deviceType) {
|
||||
this.deviceType = deviceType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public DeviceBuilder deviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public DeviceBuilder content(String content) {
|
||||
this.content = content;
|
||||
return this;
|
||||
}
|
||||
|
||||
public DeviceBuilder sessionId(String sessionId) {
|
||||
this.sessionId = sessionId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public WxMpXmlOutDeviceMessage build() {
|
||||
WxMpXmlOutDeviceMessage m = new WxMpXmlOutDeviceMessage();
|
||||
setCommon(m);
|
||||
m.setDeviceId(this.deviceId);
|
||||
m.setDeviceType(this.deviceType);
|
||||
m.setContent(this.content);
|
||||
m.setSessionId(this.sessionId);
|
||||
return m;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user