com.belerweb.social.weixin.bean
Enum MsgType

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

public enum MsgType
extends Enum<MsgType>

普通消息


Enum Constant Summary
EVENT
          事件
IMAGE
          图片消息
LINK
          链接消息
LOCATION
          地理位置消息
MUSIC
          音乐消息
NEWS
          图文消息
TEMPLATE
          模板消息
TEXT
          文本消息
TRANSFER_CUSTOMER_SERVICE
          多客服接入
VIDEO
          视频消息
VOICE
          语音消息
 
Method Summary
static MsgType parse(Object val)
           
 String toString()
           
 String value()
           
static MsgType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MsgType[] 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

TEXT

public static final MsgType TEXT
文本消息


IMAGE

public static final MsgType IMAGE
图片消息


VOICE

public static final MsgType VOICE
语音消息


VIDEO

public static final MsgType VIDEO
视频消息


MUSIC

public static final MsgType MUSIC
音乐消息


LOCATION

public static final MsgType LOCATION
地理位置消息


LINK

public static final MsgType LINK
链接消息


EVENT

public static final MsgType EVENT
事件


NEWS

public static final MsgType NEWS
图文消息


TEMPLATE

public static final MsgType TEMPLATE
模板消息


TRANSFER_CUSTOMER_SERVICE

public static final MsgType TRANSFER_CUSTOMER_SERVICE
多客服接入

Method Detail

values

public static MsgType[] 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 (MsgType c : MsgType.values())
    System.out.println(c);

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

valueOf

public static MsgType 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<MsgType>

parse

public static MsgType parse(Object val)


Copyright © 2014. All Rights Reserved.