TUIConversationDataProviderService Class Reference

Inherits from NSObject
Conforms to TUIConversationDataProviderServiceProtocol
Declared in TUIConversationDataProviderService.h
TUIConversationDataProviderService.m

+ singleton

+ (BOOL)singleton

+ shareInstance

+ (id)shareInstance

– getMessage:count:last:succ:fail:

获取消息数据。 该协议可以帮助您实现: 1、当前网络状态为连接失败/未连接时,调用 IM SDK 中 TIMConversation 类的 getLocalMessage 接口从本地拉取消息。 2、当当前网络状态正常时,调用 IM SDK 中 TIMConversation 类的 getMessage 接口在线拉取消息。

- (int)getMessage:(TIMConversation *)conv count:(int)count last:(TIMMessage *)last succ:(TIMGetMsgSucc)succ fail:(TIMFail)fail

Parameters

conv

会话示例,负责提供消息的拉取功能。

count

想要拉取的消息数目。

last

上次最后一条消息

succ

成功回调。

fail

失败回调。

Return Value

0:本次操作成功;1:本次操作失败。

Declared In

TUIConversationDataProviderServiceProtocol.h