com.belerweb.social.weixin.bean
Enum EventType

java.lang.Object
  extended by java.lang.Enum<EventType>
      extended by com.belerweb.social.weixin.bean.EventType
All Implemented Interfaces:
Serializable, Comparable<EventType>

public enum EventType
extends Enum<EventType>

事件类型


Enum Constant Summary
CLICK
          自定义菜单事件
LOCATION
          上报地理位置事件
SCAN
          扫描二维码:用户已关注时的事件推送
SUBSCRIBE
          订阅
UNSUBSCRIBE
          取消订阅
 
Method Summary
static EventType parse(Object val)
           
 String toString()
           
 String value()
           
static EventType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EventType[] 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

SUBSCRIBE

public static final EventType SUBSCRIBE
订阅


UNSUBSCRIBE

public static final EventType UNSUBSCRIBE
取消订阅


SCAN

public static final EventType SCAN
扫描二维码:用户已关注时的事件推送


LOCATION

public static final EventType LOCATION
上报地理位置事件


CLICK

public static final EventType CLICK
自定义菜单事件

Method Detail

values

public static EventType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (EventType c : EventType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EventType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

value

public String value()

toString

public String toString()
Overrides:
toString in class Enum<EventType>

parse

public static EventType parse(Object val)


Copyright © 2014. All Rights Reserved.