1 package com.foxinmy.weixin4j.mp.model;
2
3 import java.io.Serializable;
4 import java.util.List;
5
6 import com.foxinmy.weixin4j.model.Button;
7
8
9
10
11
12
13
14
15
16
17 public class Menu implements Serializable {
18
19 private static final long serialVersionUID = -915139819768888593L;
20
21 private String menuId;
22 private List<Button> buttons;
23 private MenuMatchRule matchRule;
24
25 public Menu(String menuId, List<Button> buttons, MenuMatchRule matchRule) {
26 this.menuId = menuId;
27 this.buttons = buttons;
28 this.matchRule = matchRule;
29 }
30
31 public String getMenuId() {
32 return menuId;
33 }
34
35 public List<Button> getButtons() {
36 return buttons;
37 }
38
39 public MenuMatchRule getMatchRule() {
40 return matchRule;
41 }
42
43 @Override
44 public String toString() {
45 return "Menu [menuId=" + menuId + ", buttons=" + buttons
46 + ", matchRule=" + matchRule + "]";
47 }
48 }