Enum Class MsgTypeEnum

java.lang.Object
java.lang.Enum<MsgTypeEnum>
cn.duskykite.open.call.result.data.MsgTypeEnum
所有已实现的接口:
Serializable, Comparable<MsgTypeEnum>, Constable

public enum MsgTypeEnum extends Enum<MsgTypeEnum>
消息类型枚举类
  • 枚举常量详细资料

    • TEXT

      public static final MsgTypeEnum TEXT
      文本
    • POST

      public static final MsgTypeEnum POST
      富文本
    • IMAGE

      public static final MsgTypeEnum IMAGE
      图片
    • INTERACTIVE

      public static final MsgTypeEnum INTERACTIVE
      消息卡片
    • SHARE_CHAT

      public static final MsgTypeEnum SHARE_CHAT
      分享群名片
    • SHARE_USER

      public static final MsgTypeEnum SHARE_USER
      分享个人名片
    • AUDIO

      public static final MsgTypeEnum AUDIO
      语音
    • MEDIA

      public static final MsgTypeEnum MEDIA
      视频
    • FILE

      public static final MsgTypeEnum FILE
      文件
    • STICKER

      public static final MsgTypeEnum STICKER
      表情包
  • 方法详细资料

    • values

      public static MsgTypeEnum[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MsgTypeEnum valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • getByType

      public static MsgTypeEnum getByType(String type)
      根据类型值获取枚举
      参数:
      type - 类型值
      返回:
      枚举