mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-23 13:06:54 +08:00
修复一些warning
This commit is contained in:
parent
a21f1522a6
commit
8b1f026aa7
@ -13,7 +13,8 @@ import java.util.List;
|
||||
*
|
||||
*/
|
||||
public class WxMpCustomMessage implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -9196732086954365246L;
|
||||
|
||||
private String toUser;
|
||||
private String msgType;
|
||||
private String content;
|
||||
@ -23,16 +24,16 @@ public class WxMpCustomMessage implements Serializable {
|
||||
private String description;
|
||||
private String musicUrl;
|
||||
private String hqMusicUrl;
|
||||
private List<WxArticle> articles = new ArrayList<WxArticle>();
|
||||
private List<WxArticle> articles = new ArrayList<>();
|
||||
|
||||
public String getToUser() {
|
||||
return toUser;
|
||||
return this.toUser;
|
||||
}
|
||||
public void setToUser(String toUser) {
|
||||
this.toUser = toUser;
|
||||
}
|
||||
public String getMsgType() {
|
||||
return msgType;
|
||||
return this.msgType;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -51,49 +52,49 @@ public class WxMpCustomMessage implements Serializable {
|
||||
this.msgType = msgType;
|
||||
}
|
||||
public String getContent() {
|
||||
return content;
|
||||
return this.content;
|
||||
}
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
public String getMediaId() {
|
||||
return mediaId;
|
||||
return this.mediaId;
|
||||
}
|
||||
public void setMediaId(String mediaId) {
|
||||
this.mediaId = mediaId;
|
||||
}
|
||||
public String getThumbMediaId() {
|
||||
return thumbMediaId;
|
||||
return this.thumbMediaId;
|
||||
}
|
||||
public void setThumbMediaId(String thumbMediaId) {
|
||||
this.thumbMediaId = thumbMediaId;
|
||||
}
|
||||
public String getTitle() {
|
||||
return title;
|
||||
return this.title;
|
||||
}
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
public String getDescription() {
|
||||
return description;
|
||||
return this.description;
|
||||
}
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
public String getMusicUrl() {
|
||||
return musicUrl;
|
||||
return this.musicUrl;
|
||||
}
|
||||
public void setMusicUrl(String musicUrl) {
|
||||
this.musicUrl = musicUrl;
|
||||
}
|
||||
public String getHqMusicUrl() {
|
||||
return hqMusicUrl;
|
||||
return this.hqMusicUrl;
|
||||
}
|
||||
public void setHqMusicUrl(String hqMusicUrl) {
|
||||
this.hqMusicUrl = hqMusicUrl;
|
||||
}
|
||||
public List<WxArticle> getArticles() {
|
||||
return articles;
|
||||
return this.articles;
|
||||
}
|
||||
public void setArticles(List<WxArticle> articles) {
|
||||
this.articles = articles;
|
||||
@ -111,25 +112,25 @@ public class WxMpCustomMessage implements Serializable {
|
||||
private String picUrl;
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
return this.title;
|
||||
}
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
public String getDescription() {
|
||||
return description;
|
||||
return this.description;
|
||||
}
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
public String getUrl() {
|
||||
return url;
|
||||
return this.url;
|
||||
}
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
public String getPicUrl() {
|
||||
return picUrl;
|
||||
return this.picUrl;
|
||||
}
|
||||
public void setPicUrl(String picUrl) {
|
||||
this.picUrl = picUrl;
|
||||
|
@ -13,6 +13,8 @@ import java.io.Serializable;
|
||||
@XStreamAlias("xml")
|
||||
public abstract class WxMpXmlOutMessage implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -381382011286216263L;
|
||||
|
||||
@XStreamAlias("ToUserName")
|
||||
@XStreamConverter(value=XStreamCDataConverter.class)
|
||||
protected String toUserName;
|
||||
@ -29,7 +31,7 @@ public abstract class WxMpXmlOutMessage implements Serializable {
|
||||
protected String msgType;
|
||||
|
||||
public String getToUserName() {
|
||||
return toUserName;
|
||||
return this.toUserName;
|
||||
}
|
||||
|
||||
public void setToUserName(String toUserName) {
|
||||
@ -37,7 +39,7 @@ public abstract class WxMpXmlOutMessage implements Serializable {
|
||||
}
|
||||
|
||||
public String getFromUserName() {
|
||||
return fromUserName;
|
||||
return this.fromUserName;
|
||||
}
|
||||
|
||||
public void setFromUserName(String fromUserName) {
|
||||
@ -45,7 +47,7 @@ public abstract class WxMpXmlOutMessage implements Serializable {
|
||||
}
|
||||
|
||||
public Long getCreateTime() {
|
||||
return createTime;
|
||||
return this.createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Long createTime) {
|
||||
@ -53,7 +55,7 @@ public abstract class WxMpXmlOutMessage implements Serializable {
|
||||
}
|
||||
|
||||
public String getMsgType() {
|
||||
return msgType;
|
||||
return this.msgType;
|
||||
}
|
||||
|
||||
public void setMsgType(String msgType) {
|
||||
@ -61,7 +63,7 @@ public abstract class WxMpXmlOutMessage implements Serializable {
|
||||
}
|
||||
|
||||
public String toXml() {
|
||||
return XStreamTransformer.toXml((Class) this.getClass(), this);
|
||||
return XStreamTransformer.toXml((Class<WxMpXmlOutMessage>) this.getClass(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -121,9 +123,9 @@ public abstract class WxMpXmlOutMessage implements Serializable {
|
||||
public static NewsBuilder NEWS() {
|
||||
return new NewsBuilder();
|
||||
}
|
||||
/**
|
||||
|
||||
/**
|
||||
* 获得客服消息builder
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static TransferCustomerServiceBuilder TRANSFER_CUSTOMER_SERVICE() {
|
||||
|
@ -7,6 +7,8 @@ import me.chanjar.weixin.common.util.xml.XStreamCDataConverter;
|
||||
|
||||
@XStreamAlias("xml")
|
||||
public class WxMpXmlOutTransferCustomerServiceMessage extends WxMpXmlOutMessage {
|
||||
private static final long serialVersionUID = 1850903037285841322L;
|
||||
|
||||
@XStreamAlias("TransInfo")
|
||||
protected TransInfo transInfo;
|
||||
|
||||
@ -15,7 +17,7 @@ public class WxMpXmlOutTransferCustomerServiceMessage extends WxMpXmlOutMessage
|
||||
}
|
||||
|
||||
public TransInfo getTransInfo() {
|
||||
return transInfo;
|
||||
return this.transInfo;
|
||||
}
|
||||
|
||||
public void setTransInfo(TransInfo transInfo) {
|
||||
@ -30,7 +32,7 @@ public class WxMpXmlOutTransferCustomerServiceMessage extends WxMpXmlOutMessage
|
||||
private String kfAccount;
|
||||
|
||||
public String getKfAccount() {
|
||||
return kfAccount;
|
||||
return this.kfAccount;
|
||||
}
|
||||
|
||||
public void setKfAccount(String kfAccount) {
|
||||
|
@ -14,18 +14,18 @@ import me.chanjar.weixin.mp.bean.WxMpXmlOutTransferCustomerServiceMessage;
|
||||
public final class TransferCustomerServiceBuilder extends BaseBuilder<TransferCustomerServiceBuilder, WxMpXmlOutTransferCustomerServiceMessage> {
|
||||
private String kfAccount;
|
||||
|
||||
public TransferCustomerServiceBuilder kfAccount(String kfAccount) {
|
||||
this.kfAccount = kfAccount;
|
||||
public TransferCustomerServiceBuilder kfAccount(String kf) {
|
||||
this.kfAccount = kf;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public WxMpXmlOutTransferCustomerServiceMessage build() {
|
||||
WxMpXmlOutTransferCustomerServiceMessage m = new WxMpXmlOutTransferCustomerServiceMessage();
|
||||
setCommon(m);
|
||||
if(StringUtils.isNotBlank(kfAccount)){
|
||||
if(StringUtils.isNotBlank(this.kfAccount)){
|
||||
WxMpXmlOutTransferCustomerServiceMessage.TransInfo transInfo = new WxMpXmlOutTransferCustomerServiceMessage.TransInfo();
|
||||
transInfo.setKfAccount(kfAccount);
|
||||
transInfo.setKfAccount(this.kfAccount);
|
||||
m.setTransInfo(transInfo);
|
||||
}
|
||||
return m;
|
||||
|
Loading…
Reference in New Issue
Block a user