Options
All
  • Public
  • Public/Protected
  • All
Menu

Module MsgExtendServiceInterface

Index

Type Aliases

GetMsgsByIdServerOptions: { reqMsgs: { from: string; idServer: string; scene: TMsgScene; time: number; to: string }[] }

Type declaration

  • reqMsgs: { from: string; idServer: string; scene: TMsgScene; time: number; to: string }[]
GetThreadMsgsOptions: { beginTime?: number; endTime?: number; lastMsgId?: string; limit?: number; reverse?: boolean; scene: TMsgScene; threadMsgFromAccount: string; threadMsgIdServer: string; threadMsgTime: number; threadMsgToAccount: string }

Type declaration

  • Optional beginTime?: number

    时间戳, 开始时间, 精确到ms, 默认为0

  • Optional endTime?: number

    时间戳, 结束时间, 精确到ms, 默认为服务器的当前时间

  • Optional lastMsgId?: string

    上次查询的最后一条消息的idServer, 第一次不填

  • Optional limit?: number

    本次查询的消息数量限制, 最多100条, 默认100条

  • Optional reverse?: boolean

    默认false表示从 endTime 开始往前查找历史消息,true 表示从 beginTime 开始往后查找历史消息

  • scene: TMsgScene

    场景

  • threadMsgFromAccount: string

    thread根消息的from,即发送者账号

  • threadMsgIdServer: string

    thread根消息的 idServer

  • threadMsgTime: number

    thread根消息的time

  • threadMsgToAccount: string

    thread根消息的to,即接受者账号

GetThreadMsgsResult: { msgs: IMMessage[]; threadMsg: IMMessage; timetag: number; total: number }

Type declaration

  • msgs: IMMessage[]

    相关的消息列表

  • threadMsg: IMMessage

    thread 根消息

  • timetag: number

    获取的时间戳

  • total: number

    消息总数