12345678910111213141516171819202122232425262728293031323334353637 |
- //
- // XYIMBaseManager.h
- // Timi
- //
- // Created by 翟玉磊 on 2021/3/25.
- // IM基础类
- #import <Foundation/Foundation.h>
- #import "XYIMUnReadCountManager.h"
- #import "XYIMConfigHeader.h"
- NS_ASSUME_NONNULL_BEGIN
- @interface XYIMBaseManager : NSObject
- + (instancetype)sharedInstance;
- - (void)im_setupAppId:(NSString *)appId;
- - (void)im_loginWithToken:(NSString *)token complete:(void(^)(BOOL success))block;
- - (void)im_logoutComplete:(void(^)(BOOL success))block;
- /// 获取单聊会话列表
- - (NSArray *)getConversationList;
- /// 删除指定的单聊会话
- - (BOOL)removeConversation:(NSString *)conId;
- /// 更新im缓存的用户信息
- - (void)refreshUserInfoWithUserId:(NSString *)userId name:(NSString *)name portrait:(NSString *)portrait;
- /// 清除某个会话中的未读消息数
- - (BOOL)clearMessagesUnreadStatusWithConversationId:(NSString *)convId;
- /// 根据融云code返回对应文本
- + (NSString *)getErrorTextWithCode:(NSInteger)errorCode;
- @end
- NS_ASSUME_NONNULL_END
|