thunbu-im-sdk
Version:
thunbu IM JSSDK
16 lines (15 loc) • 1.02 kB
TypeScript
import DefaultApi from "./DefaultApi";
import { ChatTypes, DefaultApiTypes } from "../interfaces/Request.i";
export default class Chat extends DefaultApi implements ChatTypes.ChatInterfaceType {
constructor(props: ChatTypes.ConstructorParams);
/** 设置会话 */
setChatSession: (params: ChatTypes.SetChatSessionParams) => Promise<DefaultApiTypes.DefaultResponse>;
/** 获取会话详情信息 */
getChatInfo: (params: ChatTypes.GetChatInfoParams) => Promise<DefaultApiTypes.DefaultResponse<ChatTypes.GetChatInfoTypes>>;
/** 获取所有会话 - 有增量选项 */
getAllChat: (params: ChatTypes.GetAllChatParams) => Promise<DefaultApiTypes.DefaultResponse<ChatTypes.GetChatInfoTypes[]>>;
/** 删除会话(设置为不可见) */
deleteChat: (params: ChatTypes.DeleteChatParams) => Promise<DefaultApiTypes.DefaultResponse>;
/** 删除会话(彻底删除) */
destroyChat: (params: ChatTypes.DeleteChatParams) => Promise<DefaultApiTypes.DefaultResponse>;
}