|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<MenuType>
com.belerweb.social.weixin.bean.MenuType
public enum MenuType
自定义菜单类型
| Enum Constant Summary | |
|---|---|
CLICK
用户点击click类型按钮后,微信服务器会通过消息接口推送消息类型为event的结构给开发者(参考消息接口指南),并且带上按钮中开发者填写的key值, 开发者可以通过自定义的key值与用户进行交互; |
|
VIEW
用户点击view类型按钮后,微信客户端将会打开开发者在按钮中填写的url值 (即网页链接),达到打开网页的目的,建议与网页授权获取用户基本信息接口结合,获得用户的登入个人信息。 |
|
| Method Summary | |
|---|---|
static MenuType |
parse(Object val)
|
String |
toString()
|
String |
value()
|
static MenuType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MenuType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final MenuType CLICK
public static final MenuType VIEW
| Method Detail |
|---|
public static MenuType[] values()
for (MenuType c : MenuType.values()) System.out.println(c);
public static MenuType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String value()
public String toString()
toString in class Enum<MenuType>public static MenuType parse(Object val)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||