| @@ -3,13 +3,16 @@ package me.chanjar.weixin.mp.bean; | |||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| import java.io.Serializable; | |||||
| /** | /** | ||||
| * 微信卡券 | * 微信卡券 | ||||
| * | * | ||||
| * @author YuJian | * @author YuJian | ||||
| * @version 15/11/11 | * @version 15/11/11 | ||||
| */ | */ | ||||
| public class WxMpCard { | |||||
| public class WxMpCard implements Serializable{ | |||||
| private static final long serialVersionUID = 9214301870017772921L; | |||||
| private String cardId; | private String cardId; | ||||
| @@ -13,11 +13,8 @@ import java.util.List; | |||||
| * @author chanjarster | * @author chanjarster | ||||
| */ | */ | ||||
| public class WxMpMassNews implements Serializable { | public class WxMpMassNews implements Serializable { | ||||
| /** | |||||
| * | |||||
| */ | |||||
| private static final long serialVersionUID = 565937155013581016L; | private static final long serialVersionUID = 565937155013581016L; | ||||
| private List<WxMpMassNewsArticle> articles = new ArrayList<>(); | private List<WxMpMassNewsArticle> articles = new ArrayList<>(); | ||||
| public List<WxMpMassNewsArticle> getArticles() { | public List<WxMpMassNewsArticle> getArticles() { | ||||
| @@ -9,6 +9,7 @@ import java.io.Serializable; | |||||
| */ | */ | ||||
| public class WxMpMassPreviewMessage implements Serializable { | public class WxMpMassPreviewMessage implements Serializable { | ||||
| private static final long serialVersionUID = 9095211638358424020L; | private static final long serialVersionUID = 9095211638358424020L; | ||||
| private String toWxUserName; | private String toWxUserName; | ||||
| private String toWxUserOpenid; | private String toWxUserOpenid; | ||||
| private String msgType; | private String msgType; | ||||
| @@ -10,8 +10,8 @@ import java.io.Serializable; | |||||
| * @author chanjarster | * @author chanjarster | ||||
| */ | */ | ||||
| public class WxMpMassTagMessage implements Serializable { | public class WxMpMassTagMessage implements Serializable { | ||||
| private static final long serialVersionUID = -6625914040986749286L; | private static final long serialVersionUID = -6625914040986749286L; | ||||
| private Long tagId; | private Long tagId; | ||||
| private String msgType; | private String msgType; | ||||
| private String content; | private String content; | ||||
| @@ -10,11 +10,8 @@ import java.io.Serializable; | |||||
| * @author chanjarster | * @author chanjarster | ||||
| */ | */ | ||||
| public class WxMpMassVideo implements Serializable { | public class WxMpMassVideo implements Serializable { | ||||
| /** | |||||
| * | |||||
| */ | |||||
| private static final long serialVersionUID = 9153925016061915637L; | private static final long serialVersionUID = 9153925016061915637L; | ||||
| private String mediaId; | private String mediaId; | ||||
| private String title; | private String title; | ||||
| private String description; | private String description; | ||||
| @@ -12,11 +12,8 @@ import java.io.Serializable; | |||||
| * @author Daniel Qian | * @author Daniel Qian | ||||
| */ | */ | ||||
| public class WxMpSemanticQuery implements Serializable { | public class WxMpSemanticQuery implements Serializable { | ||||
| /** | |||||
| * | |||||
| */ | |||||
| private static final long serialVersionUID = 7685873048199870690L; | private static final long serialVersionUID = 7685873048199870690L; | ||||
| private String query; | private String query; | ||||
| private String category; | private String category; | ||||
| private Float latitude; | private Float latitude; | ||||
| @@ -11,6 +11,7 @@ import java.io.Serializable; | |||||
| * @author rememberber | * @author rememberber | ||||
| */ | */ | ||||
| public class WxMpShakeInfoResult implements Serializable { | public class WxMpShakeInfoResult implements Serializable { | ||||
| private static final long serialVersionUID = -1604561297395395468L; | |||||
| private Integer errcode; | private Integer errcode; | ||||
| @@ -2,6 +2,7 @@ package me.chanjar.weixin.mp.bean; | |||||
| import com.google.gson.Gson; | import com.google.gson.Gson; | ||||
| import java.io.Serializable; | |||||
| import java.util.HashMap; | import java.util.HashMap; | ||||
| import java.util.Map; | import java.util.Map; | ||||
| @@ -10,7 +11,8 @@ import java.util.Map; | |||||
| * | * | ||||
| * @author rememberber | * @author rememberber | ||||
| */ | */ | ||||
| public class WxMpShakeQuery { | |||||
| public class WxMpShakeQuery implements Serializable { | |||||
| private static final long serialVersionUID = 4316527352035275412L; | |||||
| private String ticket; | private String ticket; | ||||
| @@ -14,7 +14,9 @@ import java.util.Map; | |||||
| * | * | ||||
| * @author LiuJunGuang | * @author LiuJunGuang | ||||
| */ | */ | ||||
| public class WxMpUserQuery { | |||||
| public class WxMpUserQuery implements Serializable { | |||||
| private static final long serialVersionUID = -1344224837373149313L; | |||||
| private List<WxMpUserQueryParam> queryParamList = new ArrayList<>(); | private List<WxMpUserQueryParam> queryParamList = new ArrayList<>(); | ||||
| public WxMpUserQuery() { | public WxMpUserQuery() { | ||||
| @@ -24,7 +26,7 @@ public class WxMpUserQuery { | |||||
| /** | /** | ||||
| * 语言使用默认(zh_CN) | * 语言使用默认(zh_CN) | ||||
| * | * | ||||
| * @param openids | |||||
| * @param openids openid列表 | |||||
| */ | */ | ||||
| public WxMpUserQuery(List<String> openids) { | public WxMpUserQuery(List<String> openids) { | ||||
| super(); | super(); | ||||
| @@ -34,7 +36,7 @@ public class WxMpUserQuery { | |||||
| /** | /** | ||||
| * 添加OpenId列表,语言使用默认(zh_CN) | * 添加OpenId列表,语言使用默认(zh_CN) | ||||
| * | * | ||||
| * @param openids | |||||
| * @param openids openid列表 | |||||
| * @return {@link WxMpUserQuery} | * @return {@link WxMpUserQuery} | ||||
| */ | */ | ||||
| public WxMpUserQuery add(List<String> openids) { | public WxMpUserQuery add(List<String> openids) { | ||||
| @@ -47,7 +49,7 @@ public class WxMpUserQuery { | |||||
| /** | /** | ||||
| * 添加一个OpenId | * 添加一个OpenId | ||||
| * | * | ||||
| * @param openid | |||||
| * @param openid openid | |||||
| * @param lang 国家地区语言版本,zh_CN 简体,zh_TW 繁体,en 英语 | * @param lang 国家地区语言版本,zh_CN 简体,zh_TW 繁体,en 英语 | ||||
| * @return {@link WxMpUserQuery} | * @return {@link WxMpUserQuery} | ||||
| */ | */ | ||||
| @@ -63,7 +65,7 @@ public class WxMpUserQuery { | |||||
| * 该方法默认lang = zh_CN | * 该方法默认lang = zh_CN | ||||
| * </pre> | * </pre> | ||||
| * | * | ||||
| * @param openid | |||||
| * @param openid openid | |||||
| * @return {@link WxMpUserQuery} | * @return {@link WxMpUserQuery} | ||||
| */ | */ | ||||
| public WxMpUserQuery add(String openid) { | public WxMpUserQuery add(String openid) { | ||||
| @@ -74,7 +76,7 @@ public class WxMpUserQuery { | |||||
| /** | /** | ||||
| * 删除指定的OpenId,语言使用默认(zh_CN) | * 删除指定的OpenId,语言使用默认(zh_CN) | ||||
| * | * | ||||
| * @param openid | |||||
| * @param openid openid | |||||
| * @return {@link WxMpUserQuery} | * @return {@link WxMpUserQuery} | ||||
| */ | */ | ||||
| public WxMpUserQuery remove(String openid) { | public WxMpUserQuery remove(String openid) { | ||||
| @@ -85,7 +87,7 @@ public class WxMpUserQuery { | |||||
| /** | /** | ||||
| * 删除指定的OpenId | * 删除指定的OpenId | ||||
| * | * | ||||
| * @param openid | |||||
| * @param openid openid | |||||
| * @param lang 国家地区语言版本,zh_CN 简体,zh_TW 繁体,en 英语 | * @param lang 国家地区语言版本,zh_CN 简体,zh_TW 繁体,en 英语 | ||||
| * @return {@link WxMpUserQuery} | * @return {@link WxMpUserQuery} | ||||
| */ | */ | ||||
| @@ -14,8 +14,7 @@ import java.util.List; | |||||
| * Created by Binary Wang on 2016/8/24. | * Created by Binary Wang on 2016/8/24. | ||||
| */ | */ | ||||
| public class WxDataCubeArticleResult extends WxDataCubeBaseResult { | public class WxDataCubeArticleResult extends WxDataCubeBaseResult { | ||||
| private static final JsonParser JSON_PARSER = new JsonParser(); | |||||
| private static final long serialVersionUID = -9222452497954511765L; | |||||
| /** | /** | ||||
| * ref_hour | * ref_hour | ||||
| @@ -14,8 +14,7 @@ import java.util.List; | |||||
| * Created by Binary Wang on 2016/8/24. | * Created by Binary Wang on 2016/8/24. | ||||
| */ | */ | ||||
| public class WxDataCubeArticleTotal extends WxDataCubeBaseResult { | public class WxDataCubeArticleTotal extends WxDataCubeBaseResult { | ||||
| private static final JsonParser JSON_PARSER = new JsonParser(); | |||||
| private static final long serialVersionUID = -7634365687303052699L; | |||||
| /** | /** | ||||
| * msgid | * msgid | ||||
| @@ -2,13 +2,16 @@ package me.chanjar.weixin.mp.bean.datacube; | |||||
| import com.google.gson.annotations.SerializedName; | import com.google.gson.annotations.SerializedName; | ||||
| import java.io.Serializable; | |||||
| /** | /** | ||||
| * 获取图文群发总数据接口(getarticletotal)中的详细字段 | * 获取图文群发总数据接口(getarticletotal)中的详细字段 | ||||
| * | * | ||||
| * @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a> | * @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a> | ||||
| * Created by Binary Wang on 2016/8/24. | * Created by Binary Wang on 2016/8/24. | ||||
| */ | */ | ||||
| public class WxDataCubeArticleTotalDetail { | |||||
| public class WxDataCubeArticleTotalDetail implements Serializable{ | |||||
| private static final long serialVersionUID = -5136169129771430052L; | |||||
| /** | /** | ||||
| * stat_date | * stat_date | ||||
| @@ -1,15 +1,23 @@ | |||||
| package me.chanjar.weixin.mp.bean.datacube; | package me.chanjar.weixin.mp.bean.datacube; | ||||
| import com.google.gson.JsonParser; | |||||
| import com.google.gson.annotations.SerializedName; | import com.google.gson.annotations.SerializedName; | ||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| import java.io.Serializable; | |||||
| /** | /** | ||||
| * 统计接口的共用属性类 | |||||
| * <pre> | |||||
| * 统计接口的共用属性类 | |||||
| * Created by Binary Wang on 2016/8/25. | |||||
| * </pre> | |||||
| * | * | ||||
| * @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a> | * @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a> | ||||
| * Created by Binary Wang on 2016/8/25. | |||||
| */ | */ | ||||
| public class WxDataCubeBaseResult { | |||||
| public abstract class WxDataCubeBaseResult implements Serializable { | |||||
| private static final long serialVersionUID = 8780389911053297600L; | |||||
| protected static final JsonParser JSON_PARSER = new JsonParser(); | |||||
| /** | /** | ||||
| * ref_date | * ref_date | ||||
| * 数据的日期,需在begin_date和end_date之间 | * 数据的日期,需在begin_date和end_date之间 | ||||
| @@ -14,8 +14,7 @@ import java.util.List; | |||||
| * Created by Binary Wang on 2016/8/30. | * Created by Binary Wang on 2016/8/30. | ||||
| */ | */ | ||||
| public class WxDataCubeInterfaceResult extends WxDataCubeBaseResult { | public class WxDataCubeInterfaceResult extends WxDataCubeBaseResult { | ||||
| private static final JsonParser JSON_PARSER = new JsonParser(); | |||||
| private static final long serialVersionUID = 597734329161281398L; | |||||
| /** | /** | ||||
| * ref_hour | * ref_hour | ||||
| @@ -14,8 +14,7 @@ import java.util.List; | |||||
| * Created by Binary Wang on 2016/8/29. | * Created by Binary Wang on 2016/8/29. | ||||
| */ | */ | ||||
| public class WxDataCubeMsgResult extends WxDataCubeBaseResult { | public class WxDataCubeMsgResult extends WxDataCubeBaseResult { | ||||
| private static final JsonParser JSON_PARSER = new JsonParser(); | |||||
| private static final long serialVersionUID = 6932121822150573659L; | |||||
| /** | /** | ||||
| * ref_hour | * ref_hour | ||||
| @@ -16,7 +16,6 @@ import java.util.List; | |||||
| * </pre> | * </pre> | ||||
| */ | */ | ||||
| public class WxDataCubeUserCumulate implements Serializable { | public class WxDataCubeUserCumulate implements Serializable { | ||||
| private static final JsonParser JSON_PARSER = new JsonParser(); | private static final JsonParser JSON_PARSER = new JsonParser(); | ||||
| private static final long serialVersionUID = -3570981300225093657L; | private static final long serialVersionUID = -3570981300225093657L; | ||||
| @@ -2,10 +2,14 @@ package me.chanjar.weixin.mp.bean.device; | |||||
| import me.chanjar.weixin.common.util.json.WxGsonBuilder; | import me.chanjar.weixin.common.util.json.WxGsonBuilder; | ||||
| import java.io.Serializable; | |||||
| /** | /** | ||||
| * Created by keungtung on 14/12/2016. | * Created by keungtung on 14/12/2016. | ||||
| */ | */ | ||||
| public abstract class AbstractDeviceBean { | |||||
| public abstract class AbstractDeviceBean implements Serializable{ | |||||
| private static final long serialVersionUID = 4359729626772515385L; | |||||
| public String toJson() { | public String toJson() { | ||||
| return WxGsonBuilder.create().toJson(this); | return WxGsonBuilder.create().toJson(this); | ||||
| } | } | ||||
| @@ -6,6 +6,8 @@ import com.google.gson.annotations.SerializedName; | |||||
| * Created by keungtung on 10/12/2016. | * Created by keungtung on 10/12/2016. | ||||
| */ | */ | ||||
| public class BaseResp extends AbstractDeviceBean { | public class BaseResp extends AbstractDeviceBean { | ||||
| private static final long serialVersionUID = 4252655933699659073L; | |||||
| @SerializedName("base_info") | @SerializedName("base_info") | ||||
| private BaseInfo baseInfo; | private BaseInfo baseInfo; | ||||
| @SerializedName("errcode") | @SerializedName("errcode") | ||||
| @@ -7,6 +7,8 @@ import com.google.gson.annotations.SerializedName; | |||||
| */ | */ | ||||
| public class RespMsg extends AbstractDeviceBean { | public class RespMsg extends AbstractDeviceBean { | ||||
| private static final long serialVersionUID = -4241272701707684136L; | |||||
| @SerializedName("ret_code") | @SerializedName("ret_code") | ||||
| private Integer retCode; | private Integer retCode; | ||||
| @SerializedName("error_info") | @SerializedName("error_info") | ||||
| @@ -7,6 +7,8 @@ import me.chanjar.weixin.common.util.json.WxGsonBuilder; | |||||
| * Created by keungtung on 14/12/2016. | * Created by keungtung on 14/12/2016. | ||||
| */ | */ | ||||
| public class TransMsgResp extends AbstractDeviceBean { | public class TransMsgResp extends AbstractDeviceBean { | ||||
| private static final long serialVersionUID = 5386954916622816491L; | |||||
| private Integer ret; | private Integer ret; | ||||
| @SerializedName("ret_info") | @SerializedName("ret_info") | ||||
| private String retInfo; | private String retInfo; | ||||
| @@ -2,10 +2,14 @@ package me.chanjar.weixin.mp.bean.device; | |||||
| import com.google.gson.annotations.SerializedName; | import com.google.gson.annotations.SerializedName; | ||||
| import java.io.Serializable; | |||||
| /** | /** | ||||
| * Created by keungtung on 10/12/2016. | * Created by keungtung on 10/12/2016. | ||||
| */ | */ | ||||
| public class WxDevice { | |||||
| public class WxDevice implements Serializable { | |||||
| private static final long serialVersionUID = -3284819760735456195L; | |||||
| private String id; | private String id; | ||||
| private String mac; | private String mac; | ||||
| @SerializedName("connect_protocol") | @SerializedName("connect_protocol") | ||||
| @@ -10,6 +10,8 @@ import java.util.List; | |||||
| * Created by keungtung on 10/12/2016. | * Created by keungtung on 10/12/2016. | ||||
| */ | */ | ||||
| public class WxDeviceAuthorize extends AbstractDeviceBean { | public class WxDeviceAuthorize extends AbstractDeviceBean { | ||||
| private static final long serialVersionUID = 8786321356569903887L; | |||||
| @SerializedName("device_num") | @SerializedName("device_num") | ||||
| private String deviceNum; | private String deviceNum; | ||||
| @SerializedName("op_type") | @SerializedName("op_type") | ||||
| @@ -8,6 +8,8 @@ import java.util.List; | |||||
| * Created by keungtung on 10/12/2016. | * Created by keungtung on 10/12/2016. | ||||
| */ | */ | ||||
| public class WxDeviceAuthorizeResult extends AbstractDeviceBean { | public class WxDeviceAuthorizeResult extends AbstractDeviceBean { | ||||
| private static final long serialVersionUID = 9105294570912249811L; | |||||
| private List<BaseResp> resp; | private List<BaseResp> resp; | ||||
| public static WxDeviceAuthorizeResult fromJson(String response) { | public static WxDeviceAuthorizeResult fromJson(String response) { | ||||
| @@ -6,6 +6,8 @@ import com.google.gson.annotations.SerializedName; | |||||
| * Created by keungtung on 10/12/2016. | * Created by keungtung on 10/12/2016. | ||||
| */ | */ | ||||
| public class WxDeviceBind extends AbstractDeviceBean { | public class WxDeviceBind extends AbstractDeviceBean { | ||||
| private static final long serialVersionUID = 467559769037590880L; | |||||
| private String ticket; | private String ticket; | ||||
| @SerializedName("device_id") | @SerializedName("device_id") | ||||
| private String deviceId; | private String deviceId; | ||||
| @@ -9,6 +9,8 @@ import java.util.List; | |||||
| * Created by keungtung on 16/12/2016. | * Created by keungtung on 16/12/2016. | ||||
| */ | */ | ||||
| public class WxDeviceBindDeviceResult extends AbstractDeviceBean { | public class WxDeviceBindDeviceResult extends AbstractDeviceBean { | ||||
| private static final long serialVersionUID = 725870295905935355L; | |||||
| @SerializedName("resp_msg") | @SerializedName("resp_msg") | ||||
| private RespMsg respMsg; | private RespMsg respMsg; | ||||
| @SerializedName("openid") | @SerializedName("openid") | ||||
| @@ -7,6 +7,8 @@ import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | |||||
| * Created by keungtung on 10/12/2016. | * Created by keungtung on 10/12/2016. | ||||
| */ | */ | ||||
| public class WxDeviceBindResult extends AbstractDeviceBean { | public class WxDeviceBindResult extends AbstractDeviceBean { | ||||
| private static final long serialVersionUID = 4687725146279339359L; | |||||
| @SerializedName("base_resp") | @SerializedName("base_resp") | ||||
| private BaseResp baseResp; | private BaseResp baseResp; | ||||
| @@ -7,6 +7,8 @@ import me.chanjar.weixin.common.util.ToStringUtils; | |||||
| * Created by keungtung on 10/12/2016. | * Created by keungtung on 10/12/2016. | ||||
| */ | */ | ||||
| public class WxDeviceMsg extends AbstractDeviceBean { | public class WxDeviceMsg extends AbstractDeviceBean { | ||||
| private static final long serialVersionUID = -5567110858455277963L; | |||||
| @SerializedName("device_type") | @SerializedName("device_type") | ||||
| private String deviceType; | private String deviceType; | ||||
| @SerializedName("device_id") | @SerializedName("device_id") | ||||
| @@ -9,6 +9,8 @@ import java.util.List; | |||||
| * Created by keungtung on 16/12/2016. | * Created by keungtung on 16/12/2016. | ||||
| */ | */ | ||||
| public class WxDeviceOpenIdResult extends AbstractDeviceBean { | public class WxDeviceOpenIdResult extends AbstractDeviceBean { | ||||
| private static final long serialVersionUID = 4980885167833836220L; | |||||
| @SerializedName("errcode") | @SerializedName("errcode") | ||||
| private Integer errCode; | private Integer errCode; | ||||
| @SerializedName("errmsg") | @SerializedName("errmsg") | ||||
| @@ -7,6 +7,8 @@ import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | |||||
| * Created by keungtung on 10/12/2016. | * Created by keungtung on 10/12/2016. | ||||
| */ | */ | ||||
| public class WxDeviceQrCodeResult extends AbstractDeviceBean { | public class WxDeviceQrCodeResult extends AbstractDeviceBean { | ||||
| private static final long serialVersionUID = -4312858303060918266L; | |||||
| @SerializedName("deviceid") | @SerializedName("deviceid") | ||||
| private String deviceId; | private String deviceId; | ||||
| @SerializedName("qrticket") | @SerializedName("qrticket") | ||||
| @@ -4,12 +4,15 @@ import com.google.gson.annotations.SerializedName; | |||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
| import java.io.Serializable; | |||||
| import java.util.List; | import java.util.List; | ||||
| /** | /** | ||||
| * @author Binary Wang | * @author Binary Wang | ||||
| */ | */ | ||||
| public class WxMpKfList { | |||||
| public class WxMpKfList implements Serializable { | |||||
| private static final long serialVersionUID = -8194193505173564894L; | |||||
| @SerializedName("kf_list") | @SerializedName("kf_list") | ||||
| private List<WxMpKfInfo> kfList; | private List<WxMpKfInfo> kfList; | ||||
| @@ -4,12 +4,15 @@ import com.google.gson.annotations.SerializedName; | |||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
| import java.io.Serializable; | |||||
| import java.util.List; | import java.util.List; | ||||
| /** | /** | ||||
| * Created by Binary Wang on 2016/7/15. | * Created by Binary Wang on 2016/7/15. | ||||
| */ | */ | ||||
| public class WxMpKfMsgList { | |||||
| public class WxMpKfMsgList implements Serializable { | |||||
| private static final long serialVersionUID = 4524296707435188202L; | |||||
| @SerializedName("recordlist") | @SerializedName("recordlist") | ||||
| private List<WxMpKfMsgRecord> records; | private List<WxMpKfMsgRecord> records; | ||||
| @@ -3,10 +3,14 @@ package me.chanjar.weixin.mp.bean.kefu.result; | |||||
| import com.google.gson.annotations.SerializedName; | import com.google.gson.annotations.SerializedName; | ||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| import java.io.Serializable; | |||||
| /** | /** | ||||
| * Created by Binary Wang on 2016/7/18. | * Created by Binary Wang on 2016/7/18. | ||||
| */ | */ | ||||
| public class WxMpKfMsgRecord { | |||||
| public class WxMpKfMsgRecord implements Serializable { | |||||
| private static final long serialVersionUID = -280692188908528688L; | |||||
| /** | /** | ||||
| * worker 完整客服帐号,格式为:帐号前缀@公众号微信号 | * worker 完整客服帐号,格式为:帐号前缀@公众号微信号 | ||||
| */ | */ | ||||
| @@ -4,12 +4,15 @@ import com.google.gson.annotations.SerializedName; | |||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
| import java.io.Serializable; | |||||
| import java.util.List; | import java.util.List; | ||||
| /** | /** | ||||
| * @author Binary Wang | * @author Binary Wang | ||||
| */ | */ | ||||
| public class WxMpKfOnlineList { | |||||
| public class WxMpKfOnlineList implements Serializable { | |||||
| private static final long serialVersionUID = -6154705288500854617L; | |||||
| @SerializedName("kf_online_list") | @SerializedName("kf_online_list") | ||||
| private List<WxMpKfInfo> kfOnlineList; | private List<WxMpKfInfo> kfOnlineList; | ||||
| @@ -3,10 +3,14 @@ package me.chanjar.weixin.mp.bean.kefu.result; | |||||
| import com.google.gson.annotations.SerializedName; | import com.google.gson.annotations.SerializedName; | ||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| import java.io.Serializable; | |||||
| /** | /** | ||||
| * @author Binary Wang | * @author Binary Wang | ||||
| */ | */ | ||||
| public class WxMpKfSession { | |||||
| public class WxMpKfSession implements Serializable { | |||||
| private static final long serialVersionUID = 7804332813164994062L; | |||||
| /** | /** | ||||
| * kf_account 正在接待的客服,为空表示没有人在接待 | * kf_account 正在接待的客服,为空表示没有人在接待 | ||||
| */ | */ | ||||
| @@ -4,10 +4,14 @@ import com.google.gson.annotations.SerializedName; | |||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
| import java.io.Serializable; | |||||
| /** | /** | ||||
| * @author Binary Wang | * @author Binary Wang | ||||
| */ | */ | ||||
| public class WxMpKfSessionGetResult { | |||||
| public class WxMpKfSessionGetResult implements Serializable { | |||||
| private static final long serialVersionUID = 8474846575200033152L; | |||||
| /** | /** | ||||
| * kf_account 正在接待的客服,为空表示没有人在接待 | * kf_account 正在接待的客服,为空表示没有人在接待 | ||||
| */ | */ | ||||
| @@ -4,12 +4,15 @@ import com.google.gson.annotations.SerializedName; | |||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
| import java.io.Serializable; | |||||
| import java.util.List; | import java.util.List; | ||||
| /** | /** | ||||
| * @author Binary Wang | * @author Binary Wang | ||||
| */ | */ | ||||
| public class WxMpKfSessionList { | |||||
| public class WxMpKfSessionList implements Serializable { | |||||
| private static final long serialVersionUID = -7680371346226640206L; | |||||
| /** | /** | ||||
| * 会话列表 | * 会话列表 | ||||
| */ | */ | ||||
| @@ -4,12 +4,15 @@ import com.google.gson.annotations.SerializedName; | |||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
| import java.io.Serializable; | |||||
| import java.util.List; | import java.util.List; | ||||
| /** | /** | ||||
| * @author Binary Wang | * @author Binary Wang | ||||
| */ | */ | ||||
| public class WxMpKfSessionWaitCaseList { | |||||
| public class WxMpKfSessionWaitCaseList implements Serializable { | |||||
| private static final long serialVersionUID = 2432132626631361922L; | |||||
| /** | /** | ||||
| * count 未接入会话数量 | * count 未接入会话数量 | ||||
| */ | */ | ||||
| @@ -8,9 +8,6 @@ import java.io.Serializable; | |||||
| * @author miller | * @author miller | ||||
| */ | */ | ||||
| public class WxMediaImgUploadResult implements Serializable { | public class WxMediaImgUploadResult implements Serializable { | ||||
| /** | |||||
| * | |||||
| */ | |||||
| private static final long serialVersionUID = 1996392453428768829L; | private static final long serialVersionUID = 1996392453428768829L; | ||||
| private String url; | private String url; | ||||
| @@ -1,10 +1,12 @@ | |||||
| package me.chanjar.weixin.mp.bean.material; | package me.chanjar.weixin.mp.bean.material; | ||||
| import java.io.File; | import java.io.File; | ||||
| import java.io.Serializable; | |||||
| import java.util.HashMap; | import java.util.HashMap; | ||||
| import java.util.Map; | import java.util.Map; | ||||
| public class WxMpMaterial { | |||||
| public class WxMpMaterial implements Serializable { | |||||
| private static final long serialVersionUID = -1651816949780969485L; | |||||
| private String name; | private String name; | ||||
| private File file; | private File file; | ||||
| @@ -5,11 +5,8 @@ import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | |||||
| import java.io.Serializable; | import java.io.Serializable; | ||||
| public class WxMpMaterialArticleUpdate implements Serializable { | public class WxMpMaterialArticleUpdate implements Serializable { | ||||
| /** | |||||
| * | |||||
| */ | |||||
| private static final long serialVersionUID = -7611963949517780270L; | private static final long serialVersionUID = -7611963949517780270L; | ||||
| private String mediaId; | private String mediaId; | ||||
| private int index; | private int index; | ||||
| private WxMpMaterialNews.WxMpMaterialNewsArticle articles; | private WxMpMaterialNews.WxMpMaterialNewsArticle articles; | ||||
| @@ -6,6 +6,7 @@ import java.io.Serializable; | |||||
| public class WxMpMaterialCountResult implements Serializable { | public class WxMpMaterialCountResult implements Serializable { | ||||
| private static final long serialVersionUID = -5568772662085874138L; | private static final long serialVersionUID = -5568772662085874138L; | ||||
| private int voiceCount; | private int voiceCount; | ||||
| private int videoCount; | private int videoCount; | ||||
| private int imageCount; | private int imageCount; | ||||
| @@ -8,6 +8,7 @@ import java.util.List; | |||||
| public class WxMpMaterialFileBatchGetResult implements Serializable { | public class WxMpMaterialFileBatchGetResult implements Serializable { | ||||
| private static final long serialVersionUID = -560388368297267884L; | private static final long serialVersionUID = -560388368297267884L; | ||||
| private int totalCount; | private int totalCount; | ||||
| private int itemCount; | private int itemCount; | ||||
| private List<WxMaterialFileBatchGetNewsItem> items; | private List<WxMaterialFileBatchGetNewsItem> items; | ||||
| @@ -5,11 +5,8 @@ import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | |||||
| import java.io.Serializable; | import java.io.Serializable; | ||||
| public class WxMpMaterialVideoInfoResult implements Serializable { | public class WxMpMaterialVideoInfoResult implements Serializable { | ||||
| /** | |||||
| * | |||||
| */ | |||||
| private static final long serialVersionUID = 1269131745333792202L; | private static final long serialVersionUID = 1269131745333792202L; | ||||
| private String title; | private String title; | ||||
| private String description; | private String description; | ||||
| private String downUrl; | private String downUrl; | ||||
| @@ -1,9 +1,12 @@ | |||||
| package me.chanjar.weixin.mp.bean.membercard; | package me.chanjar.weixin.mp.bean.membercard; | ||||
| import java.io.Serializable; | |||||
| /** | /** | ||||
| * Created by YuJian on 2017/7/11. | * Created by YuJian on 2017/7/11. | ||||
| */ | */ | ||||
| public class MemberCardUserInfo { | |||||
| public class MemberCardUserInfo implements Serializable { | |||||
| private static final long serialVersionUID = -4259196162619282129L; | |||||
| private NameValues[] commonFieldList; | private NameValues[] commonFieldList; | ||||
| @@ -1,9 +1,13 @@ | |||||
| package me.chanjar.weixin.mp.bean.membercard; | package me.chanjar.weixin.mp.bean.membercard; | ||||
| import java.io.Serializable; | |||||
| /** | /** | ||||
| * Created by YuJian on 2017/7/11. | * Created by YuJian on 2017/7/11. | ||||
| */ | */ | ||||
| public class NameValues { | |||||
| public class NameValues implements Serializable{ | |||||
| private static final long serialVersionUID = -8529369702944594330L; | |||||
| private String name; | private String name; | ||||
| private String value; | private String value; | ||||
| @@ -2,26 +2,37 @@ package me.chanjar.weixin.mp.bean.membercard; | |||||
| import com.google.gson.annotations.SerializedName; | import com.google.gson.annotations.SerializedName; | ||||
| import java.io.Serializable; | |||||
| /** | /** | ||||
| * <pre> | |||||
| * 控制原生消息结构体,包含各字段的消息控制字段。 | * 控制原生消息结构体,包含各字段的消息控制字段。 | ||||
| * | * | ||||
| * 用于 `7 更新会员信息` 的接口参数调用 | * 用于 `7 更新会员信息` 的接口参数调用 | ||||
| * https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1451025283 | * https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1451025283 | ||||
| * </pre> | |||||
| * | * | ||||
| * @author YuJian(mgcnrx11@gmail.com) | * @author YuJian(mgcnrx11@gmail.com) | ||||
| * @version 2017/7/15 | * @version 2017/7/15 | ||||
| */ | */ | ||||
| public class NotifyOptional { | |||||
| public class NotifyOptional implements Serializable { | |||||
| private static final long serialVersionUID = 4488842021504939176L; | |||||
| // 积分变动时是否触发系统模板消息,默认为true | |||||
| /** | |||||
| * 积分变动时是否触发系统模板消息,默认为true | |||||
| */ | |||||
| @SerializedName("is_notify_bonus") | @SerializedName("is_notify_bonus") | ||||
| private Boolean isNotifyBonus; | private Boolean isNotifyBonus; | ||||
| // 余额变动时是否触发系统模板消息,默认为true | |||||
| /** | |||||
| * 余额变动时是否触发系统模板消息,默认为true | |||||
| */ | |||||
| @SerializedName("is_notify_balance") | @SerializedName("is_notify_balance") | ||||
| private Boolean isNotifyBalance; | private Boolean isNotifyBalance; | ||||
| // 自定义group1变动时是否触发系统模板消息,默认为false。(2、3同理) | |||||
| /** | |||||
| * 自定义group1变动时是否触发系统模板消息,默认为false。(2、3同理) | |||||
| */ | |||||
| @SerializedName("is_notify_custom_field1") | @SerializedName("is_notify_custom_field1") | ||||
| private Boolean isNotifyCustomField1; | private Boolean isNotifyCustomField1; | ||||
| @@ -2,47 +2,74 @@ package me.chanjar.weixin.mp.bean.membercard; | |||||
| import com.google.gson.annotations.SerializedName; | import com.google.gson.annotations.SerializedName; | ||||
| import java.io.Serializable; | |||||
| /** | /** | ||||
| * 会员卡激活接口的参数 | * 会员卡激活接口的参数 | ||||
| * | * | ||||
| * @author YuJian(mgcnrx11@hotmail.com) | * @author YuJian(mgcnrx11@hotmail.com) | ||||
| * @version 2017/7/8 | * @version 2017/7/8 | ||||
| */ | */ | ||||
| public class WxMpMemberCardActivatedMessage { | |||||
| public class WxMpMemberCardActivatedMessage implements Serializable { | |||||
| private static final long serialVersionUID = -5972713484594266480L; | |||||
| // 会员卡编号,由开发者填入,作为序列号显示在用户的卡包里。可与Code码保持等值。 | |||||
| /** | |||||
| * 会员卡编号,由开发者填入,作为序列号显示在用户的卡包里。可与Code码保持等值。 | |||||
| */ | |||||
| @SerializedName("membership_number") | @SerializedName("membership_number") | ||||
| private String membershipNumber; | private String membershipNumber; | ||||
| // 领取会员卡用户获得的code | |||||
| /** | |||||
| * 领取会员卡用户获得的code | |||||
| */ | |||||
| private String code; | private String code; | ||||
| // 卡券ID,自定义code卡券必填 | |||||
| /** | |||||
| * 卡券ID,自定义code卡券必填 | |||||
| */ | |||||
| @SerializedName("card_id") | @SerializedName("card_id") | ||||
| private String cardId; | private String cardId; | ||||
| // 商家自定义会员卡背景图,须先调用上传图片接口将背景图上传至CDN,否则报错。卡面设计请遵循微信会员卡自定义背景设计规范 | |||||
| /** | |||||
| * 商家自定义会员卡背景图,须先调用上传图片接口将背景图上传至CDN,否则报错。卡面设计请遵循微信会员卡自定义背景设计规范 | |||||
| */ | |||||
| @SerializedName("background_pic_url") | @SerializedName("background_pic_url") | ||||
| private String backgroundPicUrl; | private String backgroundPicUrl; | ||||
| // 激活后的有效起始时间。若不填写默认以创建时的 data_info 为准。Unix时间戳格式。 | |||||
| /** | |||||
| * 激活后的有效起始时间。若不填写默认以创建时的 data_info 为准。Unix时间戳格式。 | |||||
| */ | |||||
| @SerializedName("activate_begin_time") | @SerializedName("activate_begin_time") | ||||
| private Integer activateBeginTime; | private Integer activateBeginTime; | ||||
| // 激活后的有效截至时间。若不填写默认以创建时的 data_info 为准。Unix时间戳格式。 | |||||
| /** | |||||
| * 激活后的有效截至时间。若不填写默认以创建时的 data_info 为准。Unix时间戳格式。 | |||||
| */ | |||||
| @SerializedName("activate_end_time") | @SerializedName("activate_end_time") | ||||
| private Integer activateEndTime; | private Integer activateEndTime; | ||||
| // 初始积分,不填为0。 | |||||
| /** | |||||
| * 初始积分,不填为0。 | |||||
| */ | |||||
| @SerializedName("init_bonus") | @SerializedName("init_bonus") | ||||
| private Integer initBonus; | private Integer initBonus; | ||||
| // 积分同步说明。 | |||||
| /** | |||||
| * 积分同步说明。 | |||||
| */ | |||||
| @SerializedName("init_bonus_record") | @SerializedName("init_bonus_record") | ||||
| private String initBonusRecord; | private String initBonusRecord; | ||||
| // 初始余额,不填为0。 | |||||
| /** | |||||
| * 初始余额,不填为0。 | |||||
| */ | |||||
| @SerializedName("init_balance") | @SerializedName("init_balance") | ||||
| private Integer initBalance; | private Integer initBalance; | ||||
| // 创建时字段custom_field1定义类型的初始值,限制为4个汉字,12字节。 | |||||
| /** | |||||
| * 创建时字段custom_field1定义类型的初始值,限制为4个汉字,12字节。 | |||||
| */ | |||||
| @SerializedName("init_custom_field_value1") | @SerializedName("init_custom_field_value1") | ||||
| private String initCustomFieldValue1; | private String initCustomFieldValue1; | ||||
| // 创建时字段custom_field2定义类型的初始值,限制为4个汉字,12字节。 | |||||
| /** | |||||
| * 创建时字段custom_field2定义类型的初始值,限制为4个汉字,12字节。 | |||||
| */ | |||||
| @SerializedName("init_custom_field_value2") | @SerializedName("init_custom_field_value2") | ||||
| private String initCustomFieldValue2; | private String initCustomFieldValue2; | ||||
| // 创建时字段custom_field3定义类型的初始值,限制为4个汉字,12字节。 | |||||
| /** | |||||
| * 创建时字段custom_field3定义类型的初始值,限制为4个汉字,12字节。 | |||||
| */ | |||||
| @SerializedName("init_custom_field_value3") | @SerializedName("init_custom_field_value3") | ||||
| private String initCustomFieldValue3; | private String initCustomFieldValue3; | ||||
| @@ -2,44 +2,69 @@ package me.chanjar.weixin.mp.bean.membercard; | |||||
| import com.google.gson.annotations.SerializedName; | import com.google.gson.annotations.SerializedName; | ||||
| import java.io.Serializable; | |||||
| /** | /** | ||||
| * <pre> | |||||
| * 更新会员信息所需字段消息。 | * 更新会员信息所需字段消息。 | ||||
| * | * | ||||
| * 1.开发者可以同时传入add_bonus和bonus解决由于同步失败带来的幂等性问题。同时传入add_bonus和bonus时 | * 1.开发者可以同时传入add_bonus和bonus解决由于同步失败带来的幂等性问题。同时传入add_bonus和bonus时 | ||||
| * add_bonus作为积分变动消息中的变量值,而bonus作为卡面上的总积分额度显示。余额变动同理。 | * add_bonus作为积分变动消息中的变量值,而bonus作为卡面上的总积分额度显示。余额变动同理。 | ||||
| * 2.开发者可以传入is_notify_bonus控制特殊的积分对账变动不发送消息,余额变动同理。 | * 2.开发者可以传入is_notify_bonus控制特殊的积分对账变动不发送消息,余额变动同理。 | ||||
| * </pre> | |||||
| * | * | ||||
| * @author YuJian(mgcnrx11@gmail.com) | * @author YuJian(mgcnrx11@gmail.com) | ||||
| * @version 2017/7/15 | * @version 2017/7/15 | ||||
| */ | */ | ||||
| public class WxMpMemberCardUpdateMessage { | |||||
| public class WxMpMemberCardUpdateMessage implements Serializable { | |||||
| private static final long serialVersionUID = 4953923160718911058L; | |||||
| // 领取会员卡用户获得的code | |||||
| /** | |||||
| * 领取会员卡用户获得的code | |||||
| */ | |||||
| private String code; | private String code; | ||||
| // 卡券ID,自定义code卡券必填 | |||||
| /** | |||||
| * 卡券ID,自定义code卡券必填 | |||||
| */ | |||||
| @SerializedName("card_id") | @SerializedName("card_id") | ||||
| private String cardId; | private String cardId; | ||||
| // 支持商家激活时针对单个会员卡分配自定义的会员卡背景 | |||||
| /** | |||||
| * 支持商家激活时针对单个会员卡分配自定义的会员卡背景 | |||||
| */ | |||||
| @SerializedName("background_pic_url") | @SerializedName("background_pic_url") | ||||
| private String backgroundPicUrl; | private String backgroundPicUrl; | ||||
| // 需要设置的积分全量值,传入的数值会直接显示 | |||||
| /** | |||||
| * 需要设置的积分全量值,传入的数值会直接显示 | |||||
| */ | |||||
| private Integer bonus; | private Integer bonus; | ||||
| // 本次积分变动值,传负数代表减少 | |||||
| /** | |||||
| * 本次积分变动值,传负数代表减少 | |||||
| */ | |||||
| @SerializedName("add_bonus") | @SerializedName("add_bonus") | ||||
| private Integer addBounus; | private Integer addBounus; | ||||
| // 商家自定义积分消耗记录,不超过14个汉字 | |||||
| /** | |||||
| * 商家自定义积分消耗记录,不超过14个汉字 | |||||
| */ | |||||
| @SerializedName("record_bonus") | @SerializedName("record_bonus") | ||||
| private String recordBonus; | private String recordBonus; | ||||
| // 需要设置的余额全量值,传入的数值会直接显示在卡面 | |||||
| /** | |||||
| * 需要设置的余额全量值,传入的数值会直接显示在卡面 | |||||
| */ | |||||
| private Integer balance; | private Integer balance; | ||||
| // 本次余额变动值,传负数代表减少 | |||||
| /** | |||||
| * 本次余额变动值,传负数代表减少 | |||||
| */ | |||||
| @SerializedName("add_balance") | @SerializedName("add_balance") | ||||
| private Integer addBalance; | private Integer addBalance; | ||||
| // 商家自定义金额消耗记录,不超过14个汉字。 | |||||
| /** | |||||
| * 商家自定义金额消耗记录,不超过14个汉字。 | |||||
| */ | |||||
| @SerializedName("record_balance") | @SerializedName("record_balance") | ||||
| private String recordBalance; | private String recordBalance; | ||||
| // 创建时字段custom_field定义类型的最新数值,限制为4个汉字,12字节。 | |||||
| /** | |||||
| * 创建时字段custom_field定义类型的最新数值,限制为4个汉字,12字节。 | |||||
| */ | |||||
| @SerializedName("custom_field_value1") | @SerializedName("custom_field_value1") | ||||
| private String customFieldValue1; | private String customFieldValue1; | ||||
| @SerializedName("custom_field_value2") | @SerializedName("custom_field_value2") | ||||
| @@ -1,17 +1,20 @@ | |||||
| package me.chanjar.weixin.mp.bean.membercard; | package me.chanjar.weixin.mp.bean.membercard; | ||||
| import me.chanjar.weixin.common.util.ToStringUtils; | |||||
| import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
| import java.io.Serializable; | import java.io.Serializable; | ||||
| /** | /** | ||||
| * <pre> | |||||
| * 用于 `7 更新会员信息` 的接口调用后的返回结果 | * 用于 `7 更新会员信息` 的接口调用后的返回结果 | ||||
| * https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1451025283 | * https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1451025283 | ||||
| * </pre> | |||||
| * | * | ||||
| * @author YuJian(mgcnrx11@gmail.com) | * @author YuJian(mgcnrx11@gmail.com) | ||||
| * @version 2017/7/15 | * @version 2017/7/15 | ||||
| */ | */ | ||||
| public class WxMpMemberCardUpdateResult implements Serializable { | |||||
| public class WxMpMemberCardUpdateResult implements Serializable { | |||||
| private static final long serialVersionUID = 9084886191442098311L; | private static final long serialVersionUID = 9084886191442098311L; | ||||
| @@ -67,13 +70,7 @@ public class WxMpMemberCardUpdateResult implements Serializable { | |||||
| @Override | @Override | ||||
| public String toString() { | public String toString() { | ||||
| return "WxMpMemberCardUpdateResult{" + | |||||
| "errorCode='" + errorCode + '\'' + | |||||
| ", errorMsg='" + errorMsg + '\'' + | |||||
| ", openId='" + openId + '\'' + | |||||
| ", resultBonus=" + resultBonus + | |||||
| ", resultBalance=" + resultBalance + | |||||
| '}'; | |||||
| return ToStringUtils.toSimpleString(this); | |||||
| } | } | ||||
| public static WxMpMemberCardUpdateResult fromJson(String json) { | public static WxMpMemberCardUpdateResult fromJson(String json) { | ||||
| @@ -1,13 +1,16 @@ | |||||
| package me.chanjar.weixin.mp.bean.membercard; | package me.chanjar.weixin.mp.bean.membercard; | ||||
| import me.chanjar.weixin.common.util.ToStringUtils; | |||||
| import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
| import java.io.Serializable; | import java.io.Serializable; | ||||
| /** | /** | ||||
| * <pre> | |||||
| * 拉取会员信息返回的结果 | * 拉取会员信息返回的结果 | ||||
| * | * | ||||
| * 字段格式参考https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1451025283 6.2.1小节的步骤5 | * 字段格式参考https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1451025283 6.2.1小节的步骤5 | ||||
| * </pre> | |||||
| * | * | ||||
| * @author YuJian | * @author YuJian | ||||
| * @version 2017/7/9 | * @version 2017/7/9 | ||||
| @@ -122,18 +125,7 @@ public class WxMpMemberCardUserInfoResult implements Serializable { | |||||
| @Override | @Override | ||||
| public String toString() { | public String toString() { | ||||
| return "WxMpMemberCardUserInfoResult{" + | |||||
| "errorCode='" + errorCode + '\'' + | |||||
| ", errorMsg='" + errorMsg + '\'' + | |||||
| ", openId='" + openId + '\'' + | |||||
| ", nickname='" + nickname + '\'' + | |||||
| ", membershipNumber='" + membershipNumber + '\'' + | |||||
| ", bonus=" + bonus + | |||||
| ", sex='" + sex + '\'' + | |||||
| ", userInfo=" + userInfo + | |||||
| ", userCardStatus='" + userCardStatus + '\'' + | |||||
| ", hasActive=" + hasActive + | |||||
| '}'; | |||||
| return ToStringUtils.toSimpleString(this); | |||||
| } | } | ||||
| public static WxMpMemberCardUserInfoResult fromJson(String json) { | public static WxMpMemberCardUserInfoResult fromJson(String json) { | ||||
| @@ -4,13 +4,17 @@ import com.google.gson.annotations.SerializedName; | |||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| import me.chanjar.weixin.common.util.json.WxGsonBuilder; | import me.chanjar.weixin.common.util.json.WxGsonBuilder; | ||||
| import java.io.Serializable; | |||||
| /** | /** | ||||
| * <pre> | * <pre> | ||||
| * Created by Binary Wang on 2016-11-25. | * Created by Binary Wang on 2016-11-25. | ||||
| * @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a> | * @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a> | ||||
| * </pre> | * </pre> | ||||
| */ | */ | ||||
| public class WxMpGetSelfMenuInfoResult { | |||||
| public class WxMpGetSelfMenuInfoResult implements Serializable { | |||||
| private static final long serialVersionUID = -5612495636936835166L; | |||||
| @SerializedName("selfmenu_info") | @SerializedName("selfmenu_info") | ||||
| private WxMpSelfMenuInfo selfMenuInfo; | private WxMpSelfMenuInfo selfMenuInfo; | ||||
| @@ -16,8 +16,7 @@ import java.util.List; | |||||
| * @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a> | * @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a> | ||||
| * </pre> | * </pre> | ||||
| */ | */ | ||||
| public class WxMpMenu implements Serializable{ | |||||
| public class WxMpMenu implements Serializable { | |||||
| private static final long serialVersionUID = -5794350513426702252L; | private static final long serialVersionUID = -5794350513426702252L; | ||||
| @SerializedName("menu") | @SerializedName("menu") | ||||
| @@ -56,7 +55,6 @@ public class WxMpMenu implements Serializable{ | |||||
| } | } | ||||
| public static class WxMpConditionalMenu implements Serializable { | public static class WxMpConditionalMenu implements Serializable { | ||||
| private static final long serialVersionUID = -2279946921755382289L; | private static final long serialVersionUID = -2279946921755382289L; | ||||
| @SerializedName("button") | @SerializedName("button") | ||||
| @@ -3,6 +3,7 @@ package me.chanjar.weixin.mp.bean.menu; | |||||
| import com.google.gson.annotations.SerializedName; | import com.google.gson.annotations.SerializedName; | ||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| import java.io.Serializable; | |||||
| import java.util.ArrayList; | import java.util.ArrayList; | ||||
| import java.util.List; | import java.util.List; | ||||
| @@ -12,7 +13,9 @@ import java.util.List; | |||||
| * @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a> | * @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a> | ||||
| * </pre> | * </pre> | ||||
| */ | */ | ||||
| public class WxMpSelfMenuInfo { | |||||
| public class WxMpSelfMenuInfo implements Serializable { | |||||
| private static final long serialVersionUID = -81203094124202901L; | |||||
| /** | /** | ||||
| * 菜单按钮 | * 菜单按钮 | ||||
| */ | */ | ||||
| @@ -5,6 +5,8 @@ import com.thoughtworks.xstream.annotations.XStreamConverter; | |||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; | import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; | ||||
| import java.io.Serializable; | |||||
| /** | /** | ||||
| * <pre> | * <pre> | ||||
| * Created by BinaryWang on 2017/5/4. | * Created by BinaryWang on 2017/5/4. | ||||
| @@ -13,7 +15,9 @@ import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; | |||||
| * @author Binary Wang | * @author Binary Wang | ||||
| */ | */ | ||||
| @XStreamAlias("HardWare") | @XStreamAlias("HardWare") | ||||
| public class HardWare { | |||||
| public class HardWare implements Serializable{ | |||||
| private static final long serialVersionUID = -1295785297354896461L; | |||||
| /** | /** | ||||
| * 消息展示,目前支持myrank(排行榜) | * 消息展示,目前支持myrank(排行榜) | ||||
| */ | */ | ||||
| @@ -5,6 +5,8 @@ import com.thoughtworks.xstream.annotations.XStreamConverter; | |||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; | import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; | ||||
| import java.io.Serializable; | |||||
| /** | /** | ||||
| * <pre> | * <pre> | ||||
| * Created by BinaryWang on 2017/5/4. | * Created by BinaryWang on 2017/5/4. | ||||
| @@ -13,7 +15,9 @@ import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; | |||||
| * @author Binary Wang | * @author Binary Wang | ||||
| */ | */ | ||||
| @XStreamAlias("ScanCodeInfo") | @XStreamAlias("ScanCodeInfo") | ||||
| public class ScanCodeInfo { | |||||
| public class ScanCodeInfo implements Serializable { | |||||
| private static final long serialVersionUID = 4745181270645050122L; | |||||
| @XStreamAlias("ScanType") | @XStreamAlias("ScanType") | ||||
| @XStreamConverter(value = XStreamCDataConverter.class) | @XStreamConverter(value = XStreamCDataConverter.class) | ||||
| private String scanType; | private String scanType; | ||||
| @@ -30,7 +34,6 @@ public class ScanCodeInfo { | |||||
| * 扫描类型,一般是qrcode | * 扫描类型,一般是qrcode | ||||
| */ | */ | ||||
| public String getScanType() { | public String getScanType() { | ||||
| return this.scanType; | return this.scanType; | ||||
| } | } | ||||
| @@ -5,6 +5,8 @@ import com.thoughtworks.xstream.annotations.XStreamConverter; | |||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; | import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; | ||||
| import java.io.Serializable; | |||||
| /** | /** | ||||
| * <pre> | * <pre> | ||||
| * Created by BinaryWang on 2017/5/4. | * Created by BinaryWang on 2017/5/4. | ||||
| @@ -13,7 +15,8 @@ import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; | |||||
| * @author Binary Wang | * @author Binary Wang | ||||
| */ | */ | ||||
| @XStreamAlias("SendLocationInfo") | @XStreamAlias("SendLocationInfo") | ||||
| public class SendLocationInfo { | |||||
| public class SendLocationInfo implements Serializable { | |||||
| private static final long serialVersionUID = 6633214140499161130L; | |||||
| @XStreamAlias("Location_X") | @XStreamAlias("Location_X") | ||||
| @XStreamConverter(value = XStreamCDataConverter.class) | @XStreamConverter(value = XStreamCDataConverter.class) | ||||
| @@ -5,6 +5,7 @@ import com.thoughtworks.xstream.annotations.XStreamConverter; | |||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; | import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; | ||||
| import java.io.Serializable; | |||||
| import java.util.ArrayList; | import java.util.ArrayList; | ||||
| import java.util.List; | import java.util.List; | ||||
| @@ -16,9 +17,12 @@ import java.util.List; | |||||
| * @author Binary Wang | * @author Binary Wang | ||||
| */ | */ | ||||
| @XStreamAlias("SendPicsInfo") | @XStreamAlias("SendPicsInfo") | ||||
| public class SendPicsInfo { | |||||
| public class SendPicsInfo implements Serializable { | |||||
| private static final long serialVersionUID = -4572837013294199227L; | |||||
| @XStreamAlias("PicList") | @XStreamAlias("PicList") | ||||
| protected final List<Item> picList = new ArrayList<>(); | protected final List<Item> picList = new ArrayList<>(); | ||||
| @XStreamAlias("Count") | @XStreamAlias("Count") | ||||
| private Long count; | private Long count; | ||||
| @@ -40,7 +44,9 @@ public class SendPicsInfo { | |||||
| } | } | ||||
| @XStreamAlias("item") | @XStreamAlias("item") | ||||
| public static class Item { | |||||
| public static class Item implements Serializable { | |||||
| private static final long serialVersionUID = 7706235740094081194L; | |||||
| @XStreamAlias("PicMd5Sum") | @XStreamAlias("PicMd5Sum") | ||||
| @XStreamConverter(value = XStreamCDataConverter.class) | @XStreamConverter(value = XStreamCDataConverter.class) | ||||
| private String picMd5Sum; | private String picMd5Sum; | ||||
| @@ -25,7 +25,6 @@ import java.io.Serializable; | |||||
| */ | */ | ||||
| @XStreamAlias("xml") | @XStreamAlias("xml") | ||||
| public class WxMpXmlMessage implements Serializable { | public class WxMpXmlMessage implements Serializable { | ||||
| private static final long serialVersionUID = -3586245291677274914L; | private static final long serialVersionUID = -3586245291677274914L; | ||||
| /////////////////////// | /////////////////////// | ||||
| @@ -7,11 +7,8 @@ import me.chanjar.weixin.common.util.xml.XStreamMediaIdConverter; | |||||
| @XStreamAlias("xml") | @XStreamAlias("xml") | ||||
| public class WxMpXmlOutImageMessage extends WxMpXmlOutMessage { | public class WxMpXmlOutImageMessage extends WxMpXmlOutMessage { | ||||
| /** | |||||
| * | |||||
| */ | |||||
| private static final long serialVersionUID = -2684778597067990723L; | private static final long serialVersionUID = -2684778597067990723L; | ||||
| @XStreamAlias("Image") | @XStreamAlias("Image") | ||||
| @XStreamConverter(value = XStreamMediaIdConverter.class) | @XStreamConverter(value = XStreamMediaIdConverter.class) | ||||
| private String mediaId; | private String mediaId; | ||||
| @@ -12,7 +12,6 @@ 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; | private static final long serialVersionUID = -381382011286216263L; | ||||
| @XStreamAlias("ToUserName") | @XStreamAlias("ToUserName") | ||||
| @@ -7,11 +7,8 @@ import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; | |||||
| @XStreamAlias("xml") | @XStreamAlias("xml") | ||||
| public class WxMpXmlOutMusicMessage extends WxMpXmlOutMessage { | public class WxMpXmlOutMusicMessage extends WxMpXmlOutMessage { | ||||
| /** | |||||
| * | |||||
| */ | |||||
| private static final long serialVersionUID = -4159937804975448945L; | private static final long serialVersionUID = -4159937804975448945L; | ||||
| @XStreamAlias("Music") | @XStreamAlias("Music") | ||||
| protected final Music music = new Music(); | protected final Music music = new Music(); | ||||
| @@ -11,11 +11,8 @@ import java.util.List; | |||||
| @XStreamAlias("xml") | @XStreamAlias("xml") | ||||
| public class WxMpXmlOutNewsMessage extends WxMpXmlOutMessage { | public class WxMpXmlOutNewsMessage extends WxMpXmlOutMessage { | ||||
| /** | |||||
| * | |||||
| */ | |||||
| private static final long serialVersionUID = -4604402850905714772L; | private static final long serialVersionUID = -4604402850905714772L; | ||||
| @XStreamAlias("Articles") | @XStreamAlias("Articles") | ||||
| protected final List<Item> articles = new ArrayList<>(); | protected final List<Item> articles = new ArrayList<>(); | ||||
| @XStreamAlias("ArticleCount") | @XStreamAlias("ArticleCount") | ||||
| @@ -7,11 +7,8 @@ import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; | |||||
| @XStreamAlias("xml") | @XStreamAlias("xml") | ||||
| public class WxMpXmlOutTextMessage extends WxMpXmlOutMessage { | public class WxMpXmlOutTextMessage extends WxMpXmlOutMessage { | ||||
| /** | |||||
| * | |||||
| */ | |||||
| private static final long serialVersionUID = -3972786455288763361L; | private static final long serialVersionUID = -3972786455288763361L; | ||||
| @XStreamAlias("Content") | @XStreamAlias("Content") | ||||
| @XStreamConverter(value = XStreamCDataConverter.class) | @XStreamConverter(value = XStreamCDataConverter.class) | ||||
| private String content; | private String content; | ||||
| @@ -5,6 +5,8 @@ import com.thoughtworks.xstream.annotations.XStreamConverter; | |||||
| import me.chanjar.weixin.common.api.WxConsts; | import me.chanjar.weixin.common.api.WxConsts; | ||||
| import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; | import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; | ||||
| import java.io.Serializable; | |||||
| @XStreamAlias("xml") | @XStreamAlias("xml") | ||||
| public class WxMpXmlOutTransferKefuMessage extends WxMpXmlOutMessage { | public class WxMpXmlOutTransferKefuMessage extends WxMpXmlOutMessage { | ||||
| private static final long serialVersionUID = 1850903037285841322L; | private static final long serialVersionUID = 1850903037285841322L; | ||||
| @@ -25,7 +27,8 @@ public class WxMpXmlOutTransferKefuMessage extends WxMpXmlOutMessage { | |||||
| } | } | ||||
| @XStreamAlias("TransInfo") | @XStreamAlias("TransInfo") | ||||
| public static class TransInfo { | |||||
| public static class TransInfo implements Serializable { | |||||
| private static final long serialVersionUID = -6317885617135706056L; | |||||
| @XStreamAlias("KfAccount") | @XStreamAlias("KfAccount") | ||||
| @XStreamConverter(value = XStreamCDataConverter.class) | @XStreamConverter(value = XStreamCDataConverter.class) | ||||
| @@ -5,13 +5,12 @@ import com.thoughtworks.xstream.annotations.XStreamConverter; | |||||
| import me.chanjar.weixin.common.api.WxConsts; | import me.chanjar.weixin.common.api.WxConsts; | ||||
| import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; | import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; | ||||
| import java.io.Serializable; | |||||
| @XStreamAlias("xml") | @XStreamAlias("xml") | ||||
| public class WxMpXmlOutVideoMessage extends WxMpXmlOutMessage { | public class WxMpXmlOutVideoMessage extends WxMpXmlOutMessage { | ||||
| /** | |||||
| * | |||||
| */ | |||||
| private static final long serialVersionUID = 1745902309380113978L; | private static final long serialVersionUID = 1745902309380113978L; | ||||
| @XStreamAlias("Video") | @XStreamAlias("Video") | ||||
| protected final Video video = new Video(); | protected final Video video = new Video(); | ||||
| @@ -45,7 +44,8 @@ public class WxMpXmlOutVideoMessage extends WxMpXmlOutMessage { | |||||
| @XStreamAlias("Video") | @XStreamAlias("Video") | ||||
| public static class Video { | |||||
| public static class Video implements Serializable { | |||||
| private static final long serialVersionUID = -6445448977569651183L; | |||||
| @XStreamAlias("MediaId") | @XStreamAlias("MediaId") | ||||
| @XStreamConverter(value = XStreamCDataConverter.class) | @XStreamConverter(value = XStreamCDataConverter.class) | ||||
| @@ -7,11 +7,8 @@ import me.chanjar.weixin.common.util.xml.XStreamMediaIdConverter; | |||||
| @XStreamAlias("xml") | @XStreamAlias("xml") | ||||
| public class WxMpXmlOutVoiceMessage extends WxMpXmlOutMessage { | public class WxMpXmlOutVoiceMessage extends WxMpXmlOutMessage { | ||||
| /** | |||||
| * | |||||
| */ | |||||
| private static final long serialVersionUID = 240367390249860551L; | private static final long serialVersionUID = 240367390249860551L; | ||||
| @XStreamAlias("Voice") | @XStreamAlias("Voice") | ||||
| @XStreamConverter(value = XStreamMediaIdConverter.class) | @XStreamConverter(value = XStreamMediaIdConverter.class) | ||||
| private String mediaId; | private String mediaId; | ||||
| @@ -12,10 +12,6 @@ import java.io.Serializable; | |||||
| * @version 15/11/11 | * @version 15/11/11 | ||||
| */ | */ | ||||
| public class WxMpCardResult implements Serializable { | public class WxMpCardResult implements Serializable { | ||||
| /** | |||||
| * | |||||
| */ | |||||
| private static final long serialVersionUID = -7950878428289035637L; | private static final long serialVersionUID = -7950878428289035637L; | ||||
| private String errorCode; | private String errorCode; | ||||
| @@ -7,6 +7,7 @@ import me.chanjar.weixin.common.util.json.WxBooleanTypeAdapter; | |||||
| import me.chanjar.weixin.common.util.json.WxDateTypeAdapter; | import me.chanjar.weixin.common.util.json.WxDateTypeAdapter; | ||||
| import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
| import java.io.Serializable; | |||||
| import java.util.Date; | import java.util.Date; | ||||
| import java.util.List; | import java.util.List; | ||||
| @@ -17,7 +18,9 @@ import java.util.List; | |||||
| * @author <a href="https://github.com/binarywang">Binary Wang</a> | * @author <a href="https://github.com/binarywang">Binary Wang</a> | ||||
| * </pre> | * </pre> | ||||
| */ | */ | ||||
| public class WxMpCurrentAutoReplyInfo { | |||||
| public class WxMpCurrentAutoReplyInfo implements Serializable { | |||||
| private static final long serialVersionUID = 8294705001262751638L; | |||||
| @Override | @Override | ||||
| public String toString() { | public String toString() { | ||||
| return ToStringUtils.toSimpleString(this); | return ToStringUtils.toSimpleString(this); | ||||
| @@ -84,7 +87,9 @@ public class WxMpCurrentAutoReplyInfo { | |||||
| this.keywordAutoReplyInfo = keywordAutoReplyInfo; | this.keywordAutoReplyInfo = keywordAutoReplyInfo; | ||||
| } | } | ||||
| public static class AutoReplyRule { | |||||
| public static class AutoReplyRule implements Serializable { | |||||
| private static final long serialVersionUID = -6415971838145909046L; | |||||
| @Override | @Override | ||||
| public String toString() { | public String toString() { | ||||
| return ToStringUtils.toSimpleString(this); | return ToStringUtils.toSimpleString(this); | ||||
| @@ -147,7 +152,9 @@ public class WxMpCurrentAutoReplyInfo { | |||||
| } | } | ||||
| } | } | ||||
| public static class ReplyInfo { | |||||
| public static class ReplyInfo implements Serializable { | |||||
| private static final long serialVersionUID = -3429575601599101690L; | |||||
| @Override | @Override | ||||
| public String toString() { | public String toString() { | ||||
| return ToStringUtils.toSimpleString(this); | return ToStringUtils.toSimpleString(this); | ||||
| @@ -184,7 +191,9 @@ public class WxMpCurrentAutoReplyInfo { | |||||
| } | } | ||||
| } | } | ||||
| public static class NewsInfo { | |||||
| public static class NewsInfo implements Serializable { | |||||
| private static final long serialVersionUID = 2958827725972593328L; | |||||
| @Override | @Override | ||||
| public String toString() { | public String toString() { | ||||
| return ToStringUtils.toSimpleString(this); | return ToStringUtils.toSimpleString(this); | ||||
| @@ -201,7 +210,9 @@ public class WxMpCurrentAutoReplyInfo { | |||||
| } | } | ||||
| } | } | ||||
| public static class NewsItem { | |||||
| public static class NewsItem implements Serializable { | |||||
| private static final long serialVersionUID = -680356309029767176L; | |||||
| @Override | @Override | ||||
| public String toString() { | public String toString() { | ||||
| return ToStringUtils.toSimpleString(this); | return ToStringUtils.toSimpleString(this); | ||||
| @@ -277,7 +288,9 @@ public class WxMpCurrentAutoReplyInfo { | |||||
| } | } | ||||
| } | } | ||||
| public static class KeywordInfo { | |||||
| public static class KeywordInfo implements Serializable { | |||||
| private static final long serialVersionUID = 7720246983986706379L; | |||||
| @Override | @Override | ||||
| public String toString() { | public String toString() { | ||||
| return ToStringUtils.toSimpleString(this); | return ToStringUtils.toSimpleString(this); | ||||
| @@ -313,7 +326,9 @@ public class WxMpCurrentAutoReplyInfo { | |||||
| } | } | ||||
| } | } | ||||
| public static class KeywordAutoReplyInfo { | |||||
| public static class KeywordAutoReplyInfo implements Serializable { | |||||
| private static final long serialVersionUID = -8789197949404753083L; | |||||
| @Override | @Override | ||||
| public String toString() { | public String toString() { | ||||
| return ToStringUtils.toSimpleString(this); | return ToStringUtils.toSimpleString(this); | ||||
| @@ -330,7 +345,9 @@ public class WxMpCurrentAutoReplyInfo { | |||||
| } | } | ||||
| } | } | ||||
| public static class AutoReplyInfo { | |||||
| public static class AutoReplyInfo implements Serializable { | |||||
| private static final long serialVersionUID = 4993719555937843712L; | |||||
| @Override | @Override | ||||
| public String toString() { | public String toString() { | ||||
| return ToStringUtils.toSimpleString(this); | return ToStringUtils.toSimpleString(this); | ||||
| @@ -18,6 +18,7 @@ import java.io.Serializable; | |||||
| */ | */ | ||||
| public class WxMpMassSendResult implements Serializable { | public class WxMpMassSendResult implements Serializable { | ||||
| private static final long serialVersionUID = -4816336807575562818L; | private static final long serialVersionUID = -4816336807575562818L; | ||||
| private String errorCode; | private String errorCode; | ||||
| private String errorMsg; | private String errorMsg; | ||||
| private String msgId; | private String msgId; | ||||
| @@ -1,5 +1,6 @@ | |||||
| package me.chanjar.weixin.mp.bean.result; | package me.chanjar.weixin.mp.bean.result; | ||||
| import me.chanjar.weixin.common.util.ToStringUtils; | |||||
| import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
| import java.io.Serializable; | import java.io.Serializable; | ||||
| @@ -13,11 +14,8 @@ import java.io.Serializable; | |||||
| * @author chanjarster | * @author chanjarster | ||||
| */ | */ | ||||
| public class WxMpMassUploadResult implements Serializable { | public class WxMpMassUploadResult implements Serializable { | ||||
| /** | |||||
| * | |||||
| */ | |||||
| private static final long serialVersionUID = 6568157943644994029L; | private static final long serialVersionUID = 6568157943644994029L; | ||||
| private String type; | private String type; | ||||
| private String mediaId; | private String mediaId; | ||||
| private long createdAt; | private long createdAt; | ||||
| @@ -52,7 +50,7 @@ public class WxMpMassUploadResult implements Serializable { | |||||
| @Override | @Override | ||||
| public String toString() { | public String toString() { | ||||
| return "WxUploadResult [type=" + this.type + ", media_id=" + this.mediaId + ", created_at=" + this.createdAt + "]"; | |||||
| return ToStringUtils.toSimpleString(this); | |||||
| } | } | ||||
| } | } | ||||
| @@ -1,14 +1,11 @@ | |||||
| package me.chanjar.weixin.mp.bean.result; | package me.chanjar.weixin.mp.bean.result; | ||||
| import me.chanjar.weixin.common.util.ToStringUtils; | |||||
| import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
| import java.io.Serializable; | import java.io.Serializable; | ||||
| public class WxMpOAuth2AccessToken implements Serializable { | public class WxMpOAuth2AccessToken implements Serializable { | ||||
| /** | |||||
| * | |||||
| */ | |||||
| private static final long serialVersionUID = -1345910558078620805L; | private static final long serialVersionUID = -1345910558078620805L; | ||||
| private String accessToken; | private String accessToken; | ||||
| @@ -77,13 +74,6 @@ public class WxMpOAuth2AccessToken implements Serializable { | |||||
| @Override | @Override | ||||
| public String toString() { | public String toString() { | ||||
| return "WxMpOAuth2AccessToken{" + | |||||
| "accessToken='" + this.accessToken + '\'' + | |||||
| ", expiresTime=" + this.expiresIn + | |||||
| ", refreshToken='" + this.refreshToken + '\'' + | |||||
| ", openId='" + this.openId + '\'' + | |||||
| ", scope='" + this.scope + '\'' + | |||||
| ", unionId='" + this.unionId + '\'' + | |||||
| '}'; | |||||
| return ToStringUtils.toSimpleString(this); | |||||
| } | } | ||||
| } | } | ||||
| @@ -10,11 +10,8 @@ import java.io.Serializable; | |||||
| * @author chanjarster | * @author chanjarster | ||||
| */ | */ | ||||
| public class WxMpQrCodeTicket implements Serializable { | public class WxMpQrCodeTicket implements Serializable { | ||||
| /** | |||||
| * | |||||
| */ | |||||
| private static final long serialVersionUID = 5777119669111011584L; | private static final long serialVersionUID = 5777119669111011584L; | ||||
| protected String ticket; | protected String ticket; | ||||
| protected int expire_seconds = -1; | protected int expire_seconds = -1; | ||||
| protected String url; | protected String url; | ||||
| @@ -12,11 +12,8 @@ import java.io.Serializable; | |||||
| * @author Daniel Qian | * @author Daniel Qian | ||||
| */ | */ | ||||
| public class WxMpSemanticQueryResult implements Serializable { | public class WxMpSemanticQueryResult implements Serializable { | ||||
| /** | |||||
| * | |||||
| */ | |||||
| private static final long serialVersionUID = 4811088544804441365L; | private static final long serialVersionUID = 4811088544804441365L; | ||||
| private String query; | private String query; | ||||
| private String type; | private String type; | ||||
| private String semantic; | private String semantic; | ||||
| @@ -16,8 +16,8 @@ import java.util.List; | |||||
| * @author chanjarster | * @author chanjarster | ||||
| */ | */ | ||||
| public class WxMpUser implements Serializable { | public class WxMpUser implements Serializable { | ||||
| private static final long serialVersionUID = 5788154322646488738L; | private static final long serialVersionUID = 5788154322646488738L; | ||||
| private Boolean subscribe; | private Boolean subscribe; | ||||
| private String openId; | private String openId; | ||||
| private String nickname; | private String nickname; | ||||
| @@ -2,13 +2,16 @@ 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; | |||||
| import java.util.ArrayList; | import java.util.ArrayList; | ||||
| import java.util.List; | import java.util.List; | ||||
| /** | /** | ||||
| * @author miller | * @author miller | ||||
| */ | */ | ||||
| public class WxMpUserBlacklistGetResult { | |||||
| public class WxMpUserBlacklistGetResult implements Serializable { | |||||
| private static final long serialVersionUID = -8780216463588687626L; | |||||
| protected int total = -1; | protected int total = -1; | ||||
| protected int count = -1; | protected int count = -1; | ||||
| protected List<String> openidList = new ArrayList<>(); | protected List<String> openidList = new ArrayList<>(); | ||||
| @@ -2,6 +2,7 @@ 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; | |||||
| import java.util.ArrayList; | import java.util.ArrayList; | ||||
| import java.util.List; | import java.util.List; | ||||
| @@ -10,7 +11,8 @@ import java.util.List; | |||||
| * | * | ||||
| * @author chanjarster | * @author chanjarster | ||||
| */ | */ | ||||
| public class WxMpUserList { | |||||
| public class WxMpUserList implements Serializable { | |||||
| private static final long serialVersionUID = 1389073042674901032L; | |||||
| protected long total = -1; | protected long total = -1; | ||||
| protected int count = -1; | protected int count = -1; | ||||
| @@ -7,16 +7,21 @@ import me.chanjar.weixin.common.annotation.Required; | |||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
| import java.io.Serializable; | |||||
| import java.math.BigDecimal; | import java.math.BigDecimal; | ||||
| import java.util.List; | import java.util.List; | ||||
| /** | /** | ||||
| * 门店基础信息 | |||||
| * <pre> | |||||
| * 门店基础信息 | |||||
| * Created by Binary Wang on 2016-09-23. | |||||
| * </pre> | |||||
| * | * | ||||
| * @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a> | * @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a> | ||||
| * Created by Binary Wang on 2016-09-23. | |||||
| */ | */ | ||||
| public class WxMpStoreBaseInfo { | |||||
| public class WxMpStoreBaseInfo implements Serializable { | |||||
| private static final long serialVersionUID = 829577606838118218L; | |||||
| /** | /** | ||||
| * sid | * sid | ||||
| * 商户自己的id,用于后续审核通过收到poi_id 的通知时,做对应关系。请商户自己保证唯一识别性 | * 商户自己的id,用于后续审核通过收到poi_id 的通知时,做对应关系。请商户自己保证唯一识别性 | ||||
| @@ -351,12 +356,21 @@ public class WxMpStoreBaseInfo { | |||||
| this.poiId = poiId; | this.poiId = poiId; | ||||
| } | } | ||||
| public static class WxMpStorePhoto { | |||||
| public static class WxMpStorePhoto implements Serializable { | |||||
| private static final long serialVersionUID = -2942447907614186861L; | |||||
| /** | /** | ||||
| * 照片url | * 照片url | ||||
| */ | */ | ||||
| @SerializedName("photo_url") | @SerializedName("photo_url") | ||||
| private String photoUrl; | private String photoUrl; | ||||
| public String getPhotoUrl() { | |||||
| return photoUrl; | |||||
| } | |||||
| public void setPhotoUrl(String photoUrl) { | |||||
| this.photoUrl = photoUrl; | |||||
| } | |||||
| } | } | ||||
| public static class WxMpStoreBaseInfoBuilder { | public static class WxMpStoreBaseInfoBuilder { | ||||
| @@ -3,7 +3,11 @@ package me.chanjar.weixin.mp.bean.store; | |||||
| import com.google.gson.annotations.SerializedName; | import com.google.gson.annotations.SerializedName; | ||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| public class WxMpStoreInfo { | |||||
| import java.io.Serializable; | |||||
| public class WxMpStoreInfo implements Serializable{ | |||||
| private static final long serialVersionUID = 7300598931768355461L; | |||||
| @SerializedName("base_info") | @SerializedName("base_info") | ||||
| private WxMpStoreBaseInfo baseInfo; | private WxMpStoreBaseInfo baseInfo; | ||||
| @@ -4,15 +4,20 @@ import com.google.gson.annotations.SerializedName; | |||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
| import java.io.Serializable; | |||||
| import java.util.List; | import java.util.List; | ||||
| /** | /** | ||||
| * <pre> | |||||
| * 门店列表结果类 | * 门店列表结果类 | ||||
| * Created by Binary Wang on 2016-09-27. | |||||
| * </pre> | |||||
| * | * | ||||
| * @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a> | * @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a> | ||||
| * Created by Binary Wang on 2016-09-27. | |||||
| */ | */ | ||||
| public class WxMpStoreListResult { | |||||
| public class WxMpStoreListResult implements Serializable { | |||||
| private static final long serialVersionUID = 5388907559949538663L; | |||||
| /** | /** | ||||
| * 错误码,0为正常 | * 错误码,0为正常 | ||||
| */ | */ | ||||
| @@ -4,15 +4,19 @@ import com.google.gson.annotations.SerializedName; | |||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
| import java.io.Serializable; | |||||
| import java.util.List; | import java.util.List; | ||||
| /** | /** | ||||
| * <pre> | |||||
| * 获取标签下粉丝列表的结果对象 | * 获取标签下粉丝列表的结果对象 | ||||
| * Created by Binary Wang on 2016-09-19. | |||||
| * </pre> | |||||
| * | * | ||||
| * @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a> | * @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a> | ||||
| * Created by Binary Wang on 2016-09-19. | |||||
| */ | */ | ||||
| public class WxTagListUser { | |||||
| public class WxTagListUser implements Serializable { | |||||
| private static final long serialVersionUID = -4551768374200676112L; | |||||
| /** | /** | ||||
| * "count":2,这次获取的粉丝数量 | * "count":2,这次获取的粉丝数量 | ||||
| @@ -67,7 +71,9 @@ public class WxTagListUser { | |||||
| this.nextOpenid = nextOpenid; | this.nextOpenid = nextOpenid; | ||||
| } | } | ||||
| public static class WxTagListUserData { | |||||
| public static class WxTagListUserData implements Serializable { | |||||
| private static final long serialVersionUID = -8584537400336245701L; | |||||
| /** | /** | ||||
| * openid 列表 | * openid 列表 | ||||
| */ | */ | ||||
| @@ -5,15 +5,20 @@ import com.google.gson.reflect.TypeToken; | |||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
| import java.io.Serializable; | |||||
| import java.util.List; | import java.util.List; | ||||
| /** | /** | ||||
| * 用户标签对象 | |||||
| * <pre> | |||||
| * 用户标签对象 | |||||
| * Created by Binary Wang on 2016/9/2. | |||||
| * </pre> | |||||
| * | * | ||||
| * @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a> | * @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a> | ||||
| * Created by Binary Wang on 2016/9/2. | |||||
| */ | */ | ||||
| public class WxUserTag { | |||||
| public class WxUserTag implements Serializable { | |||||
| private static final long serialVersionUID = -7722428695667031252L; | |||||
| /** | /** | ||||
| * id 标签id,由微信分配 | * id 标签id,由微信分配 | ||||
| */ | */ | ||||
| @@ -6,18 +6,21 @@ import com.google.gson.reflect.TypeToken; | |||||
| import me.chanjar.weixin.common.util.ToStringUtils; | import me.chanjar.weixin.common.util.ToStringUtils; | ||||
| import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||||
| import java.io.Serializable; | |||||
| import java.util.List; | import java.util.List; | ||||
| /** | /** | ||||
| * <pre> | * <pre> | ||||
| * 模板列表信息 | * 模板列表信息 | ||||
| * Created by Binary Wang on 2016-10-17. | * Created by Binary Wang on 2016-10-17. | ||||
| * @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a> | |||||
| * </pre> | * </pre> | ||||
| * | |||||
| * @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a> | |||||
| */ | */ | ||||
| public class WxMpTemplate { | |||||
| public class WxMpTemplate implements Serializable { | |||||
| private static final JsonParser JSON_PARSER = new JsonParser(); | private static final JsonParser JSON_PARSER = new JsonParser(); | ||||
| private static final long serialVersionUID = -7366474522571199372L; | |||||
| /** | /** | ||||
| * template_id | * template_id | ||||
| * 模板ID | * 模板ID | ||||
| @@ -6,8 +6,8 @@ import java.io.Serializable; | |||||
| * @author Daniel Qian | * @author Daniel Qian | ||||
| */ | */ | ||||
| public class WxMpTemplateData implements Serializable { | public class WxMpTemplateData implements Serializable { | ||||
| private static final long serialVersionUID = 6301835292940277870L; | private static final long serialVersionUID = 6301835292940277870L; | ||||
| private String name; | private String name; | ||||
| private String value; | private String value; | ||||
| private String color; | private String color; | ||||
| @@ -11,6 +11,7 @@ import java.io.Serializable; | |||||
| */ | */ | ||||
| public class WxMpTemplateIndustry implements Serializable { | public class WxMpTemplateIndustry implements Serializable { | ||||
| private static final long serialVersionUID = -7700398224795914722L; | private static final long serialVersionUID = -7700398224795914722L; | ||||
| private Industry primaryIndustry; | private Industry primaryIndustry; | ||||
| private Industry secondIndustry; | private Industry secondIndustry; | ||||
| @@ -97,7 +97,9 @@ public class WxMpTemplateMessage implements Serializable { | |||||
| return WxMpGsonBuilder.INSTANCE.create().toJson(this); | return WxMpGsonBuilder.INSTANCE.create().toJson(this); | ||||
| } | } | ||||
| public static class MiniProgram { | |||||
| public static class MiniProgram implements Serializable { | |||||
| private static final long serialVersionUID = -7945254706501974849L; | |||||
| private String appid; | private String appid; | ||||
| private String pagePath; | private String pagePath; | ||||