@@ -2,7 +2,9 @@ package me.chanjar.weixin.common.bean; | |||||
import me.chanjar.weixin.common.util.json.WxGsonBuilder; | import me.chanjar.weixin.common.util.json.WxGsonBuilder; | ||||
public class WxAccessToken { | |||||
import java.io.Serializable; | |||||
public class WxAccessToken implements Serializable { | |||||
private String accessToken; | private String accessToken; | ||||
@@ -1,9 +1,11 @@ | |||||
package me.chanjar.weixin.common.bean; | package me.chanjar.weixin.common.bean; | ||||
import java.io.Serializable; | |||||
/** | /** | ||||
* jspai signature | * jspai signature | ||||
*/ | */ | ||||
public class WxJsapiSignature { | |||||
public class WxJsapiSignature implements Serializable { | |||||
private String noncestr; | private String noncestr; | ||||
@@ -2,6 +2,7 @@ package me.chanjar.weixin.common.bean; | |||||
import java.io.InputStream; | import java.io.InputStream; | ||||
import java.io.InputStreamReader; | import java.io.InputStreamReader; | ||||
import java.io.Serializable; | |||||
import java.util.ArrayList; | import java.util.ArrayList; | ||||
import java.util.List; | import java.util.List; | ||||
@@ -12,7 +13,7 @@ import me.chanjar.weixin.common.util.json.WxGsonBuilder; | |||||
* @author Daniel Qian | * @author Daniel Qian | ||||
* | * | ||||
*/ | */ | ||||
public class WxMenu { | |||||
public class WxMenu implements Serializable { | |||||
private List<WxMenuButton> buttons = new ArrayList<WxMenuButton>(); | private List<WxMenuButton> buttons = new ArrayList<WxMenuButton>(); | ||||
@@ -2,13 +2,15 @@ package me.chanjar.weixin.common.bean.result; | |||||
import me.chanjar.weixin.common.util.json.WxGsonBuilder; | import me.chanjar.weixin.common.util.json.WxGsonBuilder; | ||||
import java.io.Serializable; | |||||
/** | /** | ||||
* 微信错误码说明 | * 微信错误码说明 | ||||
* http://mp.weixin.qq.com/wiki/index.php?title=全局返回码说明 | * http://mp.weixin.qq.com/wiki/index.php?title=全局返回码说明 | ||||
* @author Daniel Qian | * @author Daniel Qian | ||||
* | * | ||||
*/ | */ | ||||
public class WxError { | |||||
public class WxError implements Serializable { | |||||
private int errorCode; | private int errorCode; | ||||
@@ -2,7 +2,9 @@ package me.chanjar.weixin.common.bean.result; | |||||
import me.chanjar.weixin.common.util.json.WxGsonBuilder; | import me.chanjar.weixin.common.util.json.WxGsonBuilder; | ||||
public class WxMediaUploadResult { | |||||
import java.io.Serializable; | |||||
public class WxMediaUploadResult implements Serializable { | |||||
private String type; | private String type; | ||||
private String mediaId; | private String mediaId; | ||||
@@ -2,12 +2,14 @@ package me.chanjar.weixin.cp.bean; | |||||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||||
import java.io.Serializable; | |||||
/** | /** | ||||
* 微信部门 | * 微信部门 | ||||
* | * | ||||
* @author Daniel Qian | * @author Daniel Qian | ||||
*/ | */ | ||||
public class WxCpDepart { | |||||
public class WxCpDepart implements Serializable { | |||||
private Integer id; | private Integer id; | ||||
private String name; | private String name; | ||||
@@ -3,6 +3,7 @@ package me.chanjar.weixin.cp.bean; | |||||
import me.chanjar.weixin.cp.bean.messagebuilder.*; | import me.chanjar.weixin.cp.bean.messagebuilder.*; | ||||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||||
import java.io.Serializable; | |||||
import java.util.ArrayList; | import java.util.ArrayList; | ||||
import java.util.List; | import java.util.List; | ||||
@@ -11,7 +12,7 @@ import java.util.List; | |||||
* @author Daniel Qian | * @author Daniel Qian | ||||
* | * | ||||
*/ | */ | ||||
public class WxCpMessage { | |||||
public class WxCpMessage implements Serializable { | |||||
private String toUser; | private String toUser; | ||||
private String toParty; | private String toParty; | ||||
@@ -2,10 +2,12 @@ package me.chanjar.weixin.cp.bean; | |||||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||||
import java.io.Serializable; | |||||
/** | /** | ||||
* Created by Daniel Qian | * Created by Daniel Qian | ||||
*/ | */ | ||||
public class WxCpTag { | |||||
public class WxCpTag implements Serializable { | |||||
private String id; | private String id; | ||||
@@ -2,6 +2,7 @@ package me.chanjar.weixin.cp.bean; | |||||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||||
import java.io.Serializable; | |||||
import java.util.ArrayList; | import java.util.ArrayList; | ||||
import java.util.List; | import java.util.List; | ||||
@@ -10,7 +11,7 @@ import java.util.List; | |||||
* | * | ||||
* @author Daniel Qian | * @author Daniel Qian | ||||
*/ | */ | ||||
public class WxCpUser { | |||||
public class WxCpUser implements Serializable { | |||||
private String userId; | private String userId; | ||||
private String name; | private String name; | ||||
@@ -10,6 +10,7 @@ import org.apache.commons.io.IOUtils; | |||||
import java.io.IOException; | import java.io.IOException; | ||||
import java.io.InputStream; | import java.io.InputStream; | ||||
import java.io.Serializable; | |||||
import java.util.ArrayList; | import java.util.ArrayList; | ||||
import java.util.List; | import java.util.List; | ||||
@@ -25,7 +26,7 @@ import java.util.List; | |||||
* @author Daniel Qian | * @author Daniel Qian | ||||
*/ | */ | ||||
@XStreamAlias("xml") | @XStreamAlias("xml") | ||||
public class WxCpXmlMessage { | |||||
public class WxCpXmlMessage implements Serializable { | |||||
/////////////////////// | /////////////////////// | ||||
// 以下都是微信推送过来的消息的xml的element所对应的属性 | // 以下都是微信推送过来的消息的xml的element所对应的属性 | ||||
@@ -3,6 +3,7 @@ package me.chanjar.weixin.mp.bean; | |||||
import me.chanjar.weixin.mp.bean.custombuilder.*; | import me.chanjar.weixin.mp.bean.custombuilder.*; | ||||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
import java.io.Serializable; | |||||
import java.util.ArrayList; | import java.util.ArrayList; | ||||
import java.util.List; | import java.util.List; | ||||
@@ -11,7 +12,7 @@ import java.util.List; | |||||
* @author chanjarster | * @author chanjarster | ||||
* | * | ||||
*/ | */ | ||||
public class WxMpCustomMessage { | |||||
public class WxMpCustomMessage implements Serializable { | |||||
private String toUser; | private String toUser; | ||||
private String msgType; | private String msgType; | ||||
@@ -2,12 +2,14 @@ package me.chanjar.weixin.mp.bean; | |||||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
import java.io.Serializable; | |||||
/** | /** | ||||
* 微信用户分组 | * 微信用户分组 | ||||
* @author chanjarster | * @author chanjarster | ||||
* | * | ||||
*/ | */ | ||||
public class WxMpGroup { | |||||
public class WxMpGroup implements Serializable { | |||||
private long id = -1; | private long id = -1; | ||||
private String name; | private String name; | ||||
@@ -2,12 +2,14 @@ package me.chanjar.weixin.mp.bean; | |||||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
import java.io.Serializable; | |||||
/** | /** | ||||
* 分组群发的消息 | * 分组群发的消息 | ||||
* | * | ||||
* @author chanjarster | * @author chanjarster | ||||
*/ | */ | ||||
public class WxMpMassGroupMessage { | |||||
public class WxMpMassGroupMessage implements Serializable { | |||||
private Long groupId; | private Long groupId; | ||||
private String msgtype; | private String msgtype; | ||||
@@ -2,6 +2,7 @@ package me.chanjar.weixin.mp.bean; | |||||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
import java.io.Serializable; | |||||
import java.util.ArrayList; | import java.util.ArrayList; | ||||
import java.util.List; | import java.util.List; | ||||
@@ -10,7 +11,7 @@ import java.util.List; | |||||
* @author chanjarster | * @author chanjarster | ||||
* | * | ||||
*/ | */ | ||||
public class WxMpMassNews { | |||||
public class WxMpMassNews implements Serializable { | |||||
private List<WxMpMassNewsArticle> articles = new ArrayList<WxMpMassNewsArticle>(); | private List<WxMpMassNewsArticle> articles = new ArrayList<WxMpMassNewsArticle>(); | ||||
@@ -2,6 +2,7 @@ package me.chanjar.weixin.mp.bean; | |||||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
import java.io.Serializable; | |||||
import java.util.ArrayList; | import java.util.ArrayList; | ||||
import java.util.List; | import java.util.List; | ||||
@@ -10,7 +11,7 @@ import java.util.List; | |||||
* | * | ||||
* @author chanjarster | * @author chanjarster | ||||
*/ | */ | ||||
public class WxMpMassOpenIdsMessage { | |||||
public class WxMpMassOpenIdsMessage implements Serializable { | |||||
private List<String> toUsers = new ArrayList<String>(); | private List<String> toUsers = new ArrayList<String>(); | ||||
private String msgType; | private String msgType; | ||||
@@ -2,12 +2,14 @@ package me.chanjar.weixin.mp.bean; | |||||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
import java.io.Serializable; | |||||
/** | /** | ||||
* 群发时用到的视频素材 | * 群发时用到的视频素材 | ||||
* | * | ||||
* @author chanjarster | * @author chanjarster | ||||
*/ | */ | ||||
public class WxMpMassVideo { | |||||
public class WxMpMassVideo implements Serializable { | |||||
private String mediaId; | private String mediaId; | ||||
private String title; | private String title; | ||||
@@ -2,6 +2,8 @@ package me.chanjar.weixin.mp.bean; | |||||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
import java.io.Serializable; | |||||
/** | /** | ||||
* 语义理解查询用对象 | * 语义理解查询用对象 | ||||
* | * | ||||
@@ -9,7 +11,7 @@ import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | |||||
* | * | ||||
* @author Daniel Qian | * @author Daniel Qian | ||||
*/ | */ | ||||
public class WxMpSemanticQuery { | |||||
public class WxMpSemanticQuery implements Serializable { | |||||
private String query; | private String query; | ||||
private String category; | private String category; | ||||
@@ -1,9 +1,11 @@ | |||||
package me.chanjar.weixin.mp.bean; | package me.chanjar.weixin.mp.bean; | ||||
import java.io.Serializable; | |||||
/** | /** | ||||
* @author Daniel Qian | * @author Daniel Qian | ||||
*/ | */ | ||||
public class WxMpTemplateData { | |||||
public class WxMpTemplateData implements Serializable { | |||||
private String name; | private String name; | ||||
private String value; | private String value; | ||||
@@ -2,10 +2,11 @@ package me.chanjar.weixin.mp.bean; | |||||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
import java.io.Serializable; | |||||
import java.util.ArrayList; | import java.util.ArrayList; | ||||
import java.util.List; | import java.util.List; | ||||
public class WxMpTemplateMessage { | |||||
public class WxMpTemplateMessage implements Serializable { | |||||
private String toUser; | private String toUser; | ||||
private String templateId; | private String templateId; | ||||
@@ -10,6 +10,7 @@ import org.apache.commons.io.IOUtils; | |||||
import java.io.IOException; | import java.io.IOException; | ||||
import java.io.InputStream; | import java.io.InputStream; | ||||
import java.io.Serializable; | |||||
import java.util.ArrayList; | import java.util.ArrayList; | ||||
import java.util.List; | import java.util.List; | ||||
@@ -25,7 +26,7 @@ import java.util.List; | |||||
* @author chanjarster | * @author chanjarster | ||||
*/ | */ | ||||
@XStreamAlias("xml") | @XStreamAlias("xml") | ||||
public class WxMpXmlMessage { | |||||
public class WxMpXmlMessage implements Serializable { | |||||
/////////////////////// | /////////////////////// | ||||
// 以下都是微信推送过来的消息的xml的element所对应的属性 | // 以下都是微信推送过来的消息的xml的element所对应的属性 | ||||
@@ -8,8 +8,10 @@ import me.chanjar.weixin.mp.bean.outxmlbuilder.*; | |||||
import me.chanjar.weixin.mp.util.crypto.WxMpCryptUtil; | import me.chanjar.weixin.mp.util.crypto.WxMpCryptUtil; | ||||
import me.chanjar.weixin.mp.util.xml.XStreamTransformer; | import me.chanjar.weixin.mp.util.xml.XStreamTransformer; | ||||
import java.io.Serializable; | |||||
@XStreamAlias("xml") | @XStreamAlias("xml") | ||||
public abstract class WxMpXmlOutMessage { | |||||
public abstract class WxMpXmlOutMessage implements Serializable { | |||||
@XStreamAlias("ToUserName") | @XStreamAlias("ToUserName") | ||||
@XStreamConverter(value=XStreamCDataConverter.class) | @XStreamConverter(value=XStreamCDataConverter.class) | ||||
@@ -2,6 +2,8 @@ package me.chanjar.weixin.mp.bean.result; | |||||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
import java.io.Serializable; | |||||
/** | /** | ||||
* <pre> | * <pre> | ||||
* 群发消息一发送就返回的结果 | * 群发消息一发送就返回的结果 | ||||
@@ -13,7 +15,7 @@ import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | |||||
* @author chanjarster | * @author chanjarster | ||||
* | * | ||||
*/ | */ | ||||
public class WxMpMassSendResult { | |||||
public class WxMpMassSendResult implements Serializable { | |||||
private String errorCode; | private String errorCode; | ||||
private String errorMsg; | private String errorMsg; | ||||
@@ -2,6 +2,8 @@ package me.chanjar.weixin.mp.bean.result; | |||||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
import java.io.Serializable; | |||||
/** | /** | ||||
* <pre> | * <pre> | ||||
* 上传群发用的素材的结果 | * 上传群发用的素材的结果 | ||||
@@ -10,7 +12,7 @@ import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | |||||
* @author chanjarster | * @author chanjarster | ||||
* | * | ||||
*/ | */ | ||||
public class WxMpMassUploadResult { | |||||
public class WxMpMassUploadResult implements Serializable { | |||||
private String type; | private String type; | ||||
private String mediaId; | private String mediaId; | ||||
@@ -2,7 +2,9 @@ package me.chanjar.weixin.mp.bean.result; | |||||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
public class WxMpOAuth2AccessToken { | |||||
import java.io.Serializable; | |||||
public class WxMpOAuth2AccessToken implements Serializable { | |||||
private String accessToken; | private String accessToken; | ||||
@@ -2,12 +2,14 @@ package me.chanjar.weixin.mp.bean.result; | |||||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
import java.io.Serializable; | |||||
/** | /** | ||||
* 换取二维码的Ticket | * 换取二维码的Ticket | ||||
* | * | ||||
* @author chanjarster | * @author chanjarster | ||||
*/ | */ | ||||
public class WxMpQrCodeTicket { | |||||
public class WxMpQrCodeTicket implements Serializable { | |||||
protected String ticket; | protected String ticket; | ||||
protected int expire_seconds = -1; | protected int expire_seconds = -1; | ||||
@@ -2,6 +2,8 @@ package me.chanjar.weixin.mp.bean.result; | |||||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
import java.io.Serializable; | |||||
/** | /** | ||||
* 语义理解查询结果对象 | * 语义理解查询结果对象 | ||||
* | * | ||||
@@ -9,7 +11,7 @@ import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | |||||
* | * | ||||
* @author Daniel Qian | * @author Daniel Qian | ||||
*/ | */ | ||||
public class WxMpSemanticQueryResult { | |||||
public class WxMpSemanticQueryResult implements Serializable { | |||||
private String query; | private String query; | ||||
private String type; | private String type; | ||||
@@ -2,12 +2,14 @@ package me.chanjar.weixin.mp.bean.result; | |||||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
import java.io.Serializable; | |||||
/** | /** | ||||
* 微信用户信息 | * 微信用户信息 | ||||
* @author chanjarster | * @author chanjarster | ||||
* | * | ||||
*/ | */ | ||||
public class WxMpUser { | |||||
public class WxMpUser implements Serializable { | |||||
protected Boolean subscribe; | protected Boolean subscribe; | ||||
protected String openId; | protected String openId; | ||||