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