com.volcengine.model.im.GetMessagesResResultMessagesItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of volc-sdk-java Show documentation
Show all versions of volc-sdk-java Show documentation
The VOLC Engine SDK for Java
package com.volcengine.model.im;
import com.alibaba.fastjson.JSON;
import java.util.Map;
/**
* GetMessagesResResultMessagesItem
*/
@lombok.Data
public final class GetMessagesResResultMessagesItem {
/**
* 会话类型
*
*
*
* - `1`:单聊。
*
* - `2`:群聊。
*/
@com.alibaba.fastjson.annotation.JSONField(name = "ConversationType")
private Integer conversationType;
/**
* 会话 ID
*/
@com.alibaba.fastjson.annotation.JSONField(name = "ConversationShortId")
private Long conversationShortId;
/**
* 消息 ID
*/
@com.alibaba.fastjson.annotation.JSONField(name = "MessageId")
private Long messageId;
/**
* 消息类型。
*
*
*
* - `10001`:文本。
*
* - `10003`:图片。
*
* - `10004`:视频
*
* - `10005`:文件
*
* - `10006`:音频
*
* - `10012`:自定义消息
*/
@com.alibaba.fastjson.annotation.JSONField(name = "MsgType")
private Integer msgType;
/**
* 消息内容
*/
@com.alibaba.fastjson.annotation.JSONField(name = "Content")
private String content;
/**
* 消息的扩展字段
*/
@com.alibaba.fastjson.annotation.JSONField(name = "Ext")
private Map ext;
/**
* 消息状态,取值为`0`,表示消息可见。
*/
@com.alibaba.fastjson.annotation.JSONField(name = "Status")
private Integer status;
/**
* 消息创建时间戳,单位为毫秒
*/
@com.alibaba.fastjson.annotation.JSONField(name = "CreateTime")
private Long createTime;
/**
* 消息发送人 UserId
*/
@com.alibaba.fastjson.annotation.JSONField(name = "Sender")
private Long sender;
/**
* 应用的唯一标志
*/
@com.alibaba.fastjson.annotation.JSONField(name = "AppId")
private Integer appId;
/**
* 引用消息
*/
@com.alibaba.fastjson.annotation.JSONField(name = "RefMsgInfo")
private GetMessagesResResultMessagesItemRefMsgInfo refMsgInfo;
/**
* 消息在会话中的位置
*/
@com.alibaba.fastjson.annotation.JSONField(name = "IndexInConversation")
private Long indexInConversation;
@Override
public String toString() {
return JSON.toJSONString(this);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy