WxMpSelfMenuInfo的几个内部静态类增加Serializable接口实现

This commit is contained in:
Binary Wang
2017-10-13 14:42:16 +08:00
parent 4f1c66efce
commit c65cd34bc9

View File

@@ -36,7 +36,9 @@ public class WxMpSelfMenuInfo implements Serializable {
this.buttons = buttons; this.buttons = buttons;
} }
public static class WxMpSelfMenuButton { public static class WxMpSelfMenuButton implements Serializable {
private static final long serialVersionUID = -4426602953309048341L;
/** /**
* <pre> * <pre>
* 菜单的类型公众平台官网上能够设置的菜单类型有view跳转网页、text返回文本下同、img、photo、video、voice。 * 菜单的类型公众平台官网上能够设置的菜单类型有view跳转网页、text返回文本下同、img、photo、video、voice。
@@ -149,7 +151,9 @@ public class WxMpSelfMenuInfo implements Serializable {
this.newsInfo = newsInfo; this.newsInfo = newsInfo;
} }
public static class SubButtons { public static class SubButtons implements Serializable {
private static final long serialVersionUID = 1763350658575521079L;
@SerializedName("list") @SerializedName("list")
private List<WxMpSelfMenuButton> subButtons = new ArrayList<>(); private List<WxMpSelfMenuButton> subButtons = new ArrayList<>();
@@ -167,7 +171,9 @@ public class WxMpSelfMenuInfo implements Serializable {
} }
} }
public static class NewsInfo { public static class NewsInfo implements Serializable {
private static final long serialVersionUID = 3449813746347818457L;
@SerializedName("list") @SerializedName("list")
private List<NewsInButton> news = new ArrayList<>(); private List<NewsInButton> news = new ArrayList<>();
@@ -184,7 +190,9 @@ public class WxMpSelfMenuInfo implements Serializable {
this.news = news; this.news = news;
} }
public static class NewsInButton { public static class NewsInButton implements Serializable {
private static final long serialVersionUID = 8701455967664912972L;
/** /**
* 图文消息的标题 * 图文消息的标题
*/ */