检索历史消息接口参数


属性 类型 描述
stSearchInfo HistoryIMMsgSearchInfo 分页信息
stFilter HistoryIMMsgFilter 检索过滤条件
callback function(options: EventOptions, response: jSWProtocol.Response ,data:[HistoryImmsg]) 回调函数 data是个数组
tag Object 用户数据

HistoryIMMsgSearchInfo

属性 类型 描述
iCount Number 页面大小
iPostition Number 起始偏移

HistoryIMMsgFilter

属性 类型 描述
senderDevId String 信息发送者,设备ID 空:不作为索引条件
senderUserId String 发送者用户ID 空:不作为索引条件
confId String 会议ID 如果不填,则为点对点消息。填就为会议中消息
recvDevId String 信息接收者,设备ID 空:不作为索引条件
recvUserId String 信息接收者,用户ID 登录用户ID, 空:不作为索引条件
szCallID String 视频通话CallID 空:不作为检索条件
iStartTime Number 开始时刻 从1970-01-01 00:00:00 +0000 (UTC)开始的秒数;或者消息起始ID(包括该ID), 必须填写
iEndTime Number 结束时刻 从1970-01-01 00:00:00 +0000 (UTC)开始的秒数;或者消息结束ID(包括该ID) // 0:表示到当前时刻或者当前最大的ID
iMsgType Number 消息类型 jSWProtocol.IMMSGTypes 0: 筛选全部
iOption Number 详见 可为以下值组合 进行按位或运算
content String 消息内容 模糊匹配,消息内容 空:不作为索引条件

HistoryImmsg

属性 类型 描述
info HistoryIMMsgSearchResponseInfo 检索回复的元信息
content [HistoryIMMsgSearchResponseContent] 历史消息数组

HistoryIMMsgSearchResponseInfo

属性 类型 描述
icount Number 页面大小
ipostition Number 当前回复的消息,起始偏移
itotalcount Number 符合条件的消息总数
itype 9 检索的历史消息

HistoryIMMsgSearchResponseContent

属性 类型 描述
icombmsgorder Number 组合消息顺序序号(0: 表示非组合消息,1,2,3…,表示组合消息, -1表示结尾)
ihasbeenrecv Number 消息是否已经接收者接收(0: 未接收, 1: 接收)
stmsg StMsg 消息正文
szconfid String 信息目标群组。NULL:点对点消息
szrecvdevid String 信息接收者,设备ID
szrecvuserid String 信息接收者,登录用户ID
szsenddevid String 信息发送者,设备ID
szsenduserid String 信息发送者,登录用户ID

StMsg

属性 类型 描述
itype jSWProtocol.IMMSGTypes 消息类型
sztextmsg String 文字、表情、自定义
stgpsdata GPSData 位置消息
stfile stFile 文件、图片、语音、视频

IM_File

属性 类型 描述
szid String 指定的文件服务器ID
szfilepath String 指定的文件路径+文件名
ifilesize Number 文件大小,单位字节
iduration Number 音视频文件时长,单位毫秒

GPSData

属性 类型 描述
sttime WallTime 数据对应的时间
ilongitude Number 经度,东经是正值,西经负值,单位1/10000000度
ilatitude Number 纬度,北纬是正值,南纬是负值,单位1/10000000度
iheight Number 高度,单位1/100米
iangle Number 方向角(正北方向为原点,顺时针为正),单位1/1000度
ispeed Number 速度(米/小时)
istarcount Number 定位星数
bantennastate Number 天线状态(1-好,0-坏)
borientationstate Number 定位状态(1-定位,0-不定位)
isatellitesignal Number 卫星信号来源 BVCUPUCFG_SATELLITE* 组合

WallTime

属性 类型 描述
iyear Number
imonth Number
iday Number
ihour Number 小时
iminute Number 分钟
isecond Number