@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class ChatMessage extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ChatMessage.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_MESSAGE_CONTENT |
static String |
SERIALIZED_NAME_MESSAGE_TYPE |
static String |
SERIALIZED_NAME_SEND_TIME |
static String |
SERIALIZED_NAME_USER_NAME |
static String |
SERIALIZED_NAME_USER_TYPE |
| 构造器和说明 |
|---|
ChatMessage() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
static ChatMessage |
fromJson(String jsonString)
Create an instance of ChatMessage given an JSON string
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
String |
getMessageContent()
消息内容
|
String |
getMessageType()
消息内容类型,默认TEXT,包括: TEXT(文本消息),IMAGE(图片消息),FILE(文件消息)
|
String |
getSendTime()
消息发送时间,按照ISO8601标准表示,比如:2018-12-24T15:38:17.824+08:00
|
String |
getUserName()
发送者名称
|
String |
getUserType()
发送者类型: VISITOR(访客) ,AGENT(在线客服) ,SYSTEM(系统)
|
int |
hashCode() |
ChatMessage |
messageContent(String messageContent) |
ChatMessage |
messageType(String messageType) |
ChatMessage |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
ChatMessage |
sendTime(String sendTime) |
void |
setMessageContent(String messageContent) |
void |
setMessageType(String messageType) |
void |
setSendTime(String sendTime) |
void |
setUserName(String userName) |
void |
setUserType(String userType) |
String |
toJson()
Convert an instance of ChatMessage to an JSON string
|
String |
toString() |
ChatMessage |
userName(String userName) |
ChatMessage |
userType(String userType) |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
public static final String SERIALIZED_NAME_MESSAGE_CONTENT
public ChatMessage messageContent(String messageContent)
public void setMessageContent(String messageContent)
public ChatMessage messageType(String messageType)
@Nullable public String getMessageType()
public void setMessageType(String messageType)
public ChatMessage sendTime(String sendTime)
@Nullable public String getSendTime()
public void setSendTime(String sendTime)
public ChatMessage userName(String userName)
public void setUserName(String userName)
public ChatMessage userType(String userType)
@Nullable public String getUserType()
public void setUserType(String userType)
public ChatMessage putAdditionalProperty(String key, Object value)
key - name of the propertyvalue - value of the propertypublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - name of the propertypublic static void validateJsonObject(com.google.gson.JsonObject jsonObj)
throws IOException
jsonObj - JSON ObjectIOException - if the JSON Object is invalid with respect to ChatMessagepublic static ChatMessage fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to ChatMessagepublic String toJson()
Copyright © 2024. All rights reserved.