View Javadoc
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   * @className MenuSetting
12   * @author jinyu(foxinmy@gmail.com)
13   * @date 2015年4月14日
14   * @since JDK 1.6
15   * @see
16   */
17  public class MenuSetting implements Serializable {
18  
19  	private static final long serialVersionUID = 2461505572495855830L;
20  
21  	/**
22  	 * 菜单是否开启
23  	 */
24  	private boolean isMenuOpen;
25  	/**
26  	 * 菜单列表
27  	 */
28  	private List<Button> buttons;
29  
30  	public MenuSetting(boolean isMenuOpen, List<Button> buttons) {
31  		this.isMenuOpen = isMenuOpen;
32  		this.buttons = buttons;
33  	}
34  
35  	public boolean isMenuOpen() {
36  		return isMenuOpen;
37  	}
38  
39  	public List<Button> getButtons() {
40  		return buttons;
41  	}
42  
43  	@Override
44  	public String toString() {
45  		return "MenuSetting [isMenuOpen=" + isMenuOpen + ", buttons=" + buttons
46  				+ "]";
47  	}
48  }