Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WxMpMenu类中的内部类也增加实现序列化接口 #298

Merged
merged 2 commits into from
Aug 1, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import me.chanjar.weixin.common.util.ToStringUtils;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;

import java.io.Serializable;
import java.util.List;

/**
Expand All @@ -15,7 +16,10 @@
* @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a>
* </pre>
*/
public class WxMpMenu {
public class WxMpMenu implements Serializable{

private static final long serialVersionUID = -5794350513426702252L;

@SerializedName("menu")
private WxMpConditionalMenu menu;

Expand Down Expand Up @@ -51,7 +55,10 @@ public String toJson() {
return WxGsonBuilder.create().toJson(this);
}

public static class WxMpConditionalMenu {
public static class WxMpConditionalMenu implements Serializable {

private static final long serialVersionUID = -2279946921755382289L;

@SerializedName("button")
private List<WxMenuButton> buttons;
@SerializedName("matchrule")
Expand Down