MessageContentMenu

package: com.paradigm.botlib Inherits from: com.paradigm.botlib.MessageContent

Overview

菜单消息体类,用于描述菜单类型消息数据

Propertys

  • 菜单类型
public static final int TypeMenu = 0;
public static final int TypeRecommend = 1;

Methods

  • 构造方法
 public MessageContentMenu(int menuType, ArrayList<MenuItem> menuItems)
参数 类型 说明
menuType int 菜单类型,参照上方静态常量
menuName String 菜单名称,可能为空
menuItems ArrayList<MenuItem> 菜单项目列表
  • 获取菜单类型
public int getMenuType()
参数 类型 说明
返回值 int 菜单类型
  • 获取菜单名称
public String getMenuName()
参数 类型 说明
返回值 String 菜单名称
  • 获取菜单项目列表
public ArrayList<MenuItem> getMenuItems()
参数 类型 说明
返回值 ArrayList<MenuItem> 菜单项目列表

results matching ""

    No results matching ""