public static enum Conversation.PublicServiceType extends java.lang.Enum<Conversation.PublicServiceType>
枚举常量和说明 |
---|
APP_PUBLIC_SERVICE
应用公众服务。
|
PUBLIC_SERVICE
公共服务号。
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getName()
获取公众服务类型名称。
|
int |
getValue()
获取公众服务类型的值。
|
static Conversation.PublicServiceType |
setValue(int code)
设置公众服务类型。
|
static Conversation.PublicServiceType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static Conversation.PublicServiceType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Conversation.PublicServiceType APP_PUBLIC_SERVICE
public static final Conversation.PublicServiceType PUBLIC_SERVICE
public static Conversation.PublicServiceType[] values()
for (Conversation.PublicServiceType c : Conversation.PublicServiceType.values()) System.out.println(c);
public static Conversation.PublicServiceType valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public int getValue()
public java.lang.String getName()
public static Conversation.PublicServiceType setValue(int code)
code
- 公众服务类型的值。Copyright © 2020 RongCloud. All Rights Reserved.