Commit d5adb941 by zhangyunjie

1.0.0.21

parent ebcd59e5
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = 'OffcnIMSDKiOS' s.name = 'OffcnIMSDKiOS'
s.version = '1.0.0.20' s.version = '1.0.0.21'
s.summary = 'OffcnIMSDKiOS.' s.summary = 'OffcnIMSDKiOS.'
s.description = <<-DESC s.description = <<-DESC
......
...@@ -21,6 +21,7 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -21,6 +21,7 @@ NS_ASSUME_NONNULL_BEGIN
@class OffcnIMMsgModel; @class OffcnIMMsgModel;
@interface OffcnIMBodyModel : NSObject @interface OffcnIMBodyModel : NSObject
@property (nonatomic,assign)BOOL is_top;//是否置顶
@property (nonatomic,copy)NSString *session_id; //会话ID @property (nonatomic,copy)NSString *session_id; //会话ID
@property (nonatomic,copy)NSString *msg_id;//消息Id @property (nonatomic,copy)NSString *msg_id;//消息Id
@property (nonatomic,copy)NSString *version; @property (nonatomic,copy)NSString *version;
...@@ -33,6 +34,8 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -33,6 +34,8 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic,assign)NSInteger msg_type;//消息类型 @property (nonatomic,assign)NSInteger msg_type;//消息类型
@property (nonatomic,strong)OffcnIMMsgModel *msg;//消息内容 @property (nonatomic,strong)OffcnIMMsgModel *msg;//消息内容
@property (nonatomic,assign)BOOL isJoinSession;//
@property (nonatomic,copy)NSString *extIndex;//开发者扩展字段 @property (nonatomic,copy)NSString *extIndex;//开发者扩展字段
@property (nonatomic,copy)NSString *ext;//开发者扩展字段 @property (nonatomic,copy)NSString *ext;//开发者扩展字段
@property (nonatomic,assign)CGFloat cellH;//扩展字段 @property (nonatomic,assign)CGFloat cellH;//扩展字段
...@@ -44,7 +47,7 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -44,7 +47,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic,copy)NSString *lastmessage;//最后一条消息 @property (nonatomic,copy)NSString *lastmessage;//最后一条消息
@property (nonatomic,copy)NSString *lastSendtime;//最后一条消息时间 @property (nonatomic,copy)NSString *lastSendtime;//最后一条消息时间
@property (nonatomic,copy)NSString *tid;//本地的消息Id @property (nonatomic,copy)NSString *tid;//本地的消息Id
@property (nonatomic,assign)BOOL isJoinSession;//进入会话未读数为0 @property (nonatomic,assign)BOOL isGroupSendMsg;//是否群发消息
@property (nonatomic,assign)NSInteger unread_number;//每个会话的未读数 @property (nonatomic,assign)NSInteger unread_number;//每个会话的未读数
@property (nonatomic,assign)NSInteger total_unread_number;//所有会话总未读数 @property (nonatomic,assign)NSInteger total_unread_number;//所有会话总未读数
@end @end
...@@ -92,6 +95,7 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -92,6 +95,7 @@ NS_ASSUME_NONNULL_BEGIN
@class OffcnIMLast_msgModel; @class OffcnIMLast_msgModel;
@interface OffcnIMSessionModel : NSObject @interface OffcnIMSessionModel : NSObject
@property (nonatomic,assign)BOOL is_top;//是否置顶
@property (nonatomic,strong)OffcnIMLast_msgModel *last_msg;//消息信息 @property (nonatomic,strong)OffcnIMLast_msgModel *last_msg;//消息信息
@property (nonatomic,copy)NSString *session_id;//会话Id @property (nonatomic,copy)NSString *session_id;//会话Id
@property (nonatomic,copy)NSString *to;//对方Id @property (nonatomic,copy)NSString *to;//对方Id
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import "OffcnIMModel.h" #import "OffcnIMModel.h"
static const NSString *OffcnIMSDKiOSVersion = @"1.0.0.20"; static const NSString *OffcnIMSDKiOSVersion = @"1.0.0.21";
typedef NS_ENUM(NSUInteger, OffcnIMSDKReachabilityStatus) { typedef NS_ENUM(NSUInteger, OffcnIMSDKReachabilityStatus) {
OffcnIMSDKReachabilityStatusNotReachable = 0, OffcnIMSDKReachabilityStatusNotReachable = 0,
...@@ -89,11 +89,6 @@ typedef void(^OffcnIMSDKReachabilityStatusCallBack)(OffcnIMSDKReachabilityStatus ...@@ -89,11 +89,6 @@ typedef void(^OffcnIMSDKReachabilityStatusCallBack)(OffcnIMSDKReachabilityStatus
/// @param finished 结果回调 /// @param finished 结果回调
-(void)getSessionUnreadMsgWithFromID:(NSString *)fromID toID:(NSString *)toID Finished:(void(^)(BOOL success,OffcnIMUnreadMsgModel *unreadMsgModel,NSString *errorMessage))finished; -(void)getSessionUnreadMsgWithFromID:(NSString *)fromID toID:(NSString *)toID Finished:(void(^)(BOOL success,OffcnIMUnreadMsgModel *unreadMsgModel,NSString *errorMessage))finished;
/// 获取用户最近会话记录
/// @param accid 被获取用户id
/// @param finished 结果回调
-(void)getRecentSessionsWithAccid:(NSString *)accid Finished:(void(^)(BOOL success,OffcnIMHistoryMsgModel *historyMsgModel,NSString *errorMessage))finished;
/// 获取会话历史消息列表 /// 获取会话历史消息列表
/// @param fromID 发送人ID /// @param fromID 发送人ID
/// @param toID 接收人ID /// @param toID 接收人ID
...@@ -101,6 +96,25 @@ typedef void(^OffcnIMSDKReachabilityStatusCallBack)(OffcnIMSDKReachabilityStatus ...@@ -101,6 +96,25 @@ typedef void(^OffcnIMSDKReachabilityStatusCallBack)(OffcnIMSDKReachabilityStatus
/// @param finished 结果回调 /// @param finished 结果回调
-(void)getSessionHistoryMsgWithFromID:(NSString *)fromID toID:(NSString *)toID msg_seq:(NSString *)msg_seq Finished:(void(^)(BOOL success,OffcnIMHistoryMsgModel *historyMsgModel,NSString *errorMessage))finished; -(void)getSessionHistoryMsgWithFromID:(NSString *)fromID toID:(NSString *)toID msg_seq:(NSString *)msg_seq Finished:(void(^)(BOOL success,OffcnIMHistoryMsgModel *historyMsgModel,NSString *errorMessage))finished;
/// 获取用户最近会话记录
/// @param accid 被获取用户id
/// @param finished 结果回调
-(void)getRecentSessionsWithAccid:(NSString *)accid Finished:(void(^)(BOOL success,OffcnIMHistoryMsgModel *historyMsgModel,NSString *errorMessage))finished;
/// 设置会话置顶
/// @param accid 用户ID
/// @param toID 联系人用户ID
/// @param finished 结果回调
-(void)setSessionTopWithAccid:(NSString *)accid toID:(NSString *)toID Finished:(void(^)(BOOL success,NSString *errorMessage))finished;
/// 取消会话置顶
/// @param accid 用户ID
/// @param toID 联系人用户ID
/// @param finished 结果回调
-(void)setCancelSessionTopWithAccid:(NSString *)accid toID:(NSString *)toID Finished:(void(^)(BOOL success,NSString *errorMessage))finished;
/// 接口注册推送 /// 接口注册推送
/// @param accid 用户ID /// @param accid 用户ID
/// @param device_token 设备Token /// @param device_token 设备Token
......
...@@ -29,13 +29,13 @@ typedef void (^callBackIsSuccess)(BOOL isSuccess); ...@@ -29,13 +29,13 @@ typedef void (^callBackIsSuccess)(BOOL isSuccess);
- (void)getUserDB; - (void)getUserDB;
//发送,收到消息写入 //发送,收到消息写入
- (void)insertChatInfoToFMDBWithModel:(OffcnIMBodyModel *)chatModel; //- (void)insertChatInfoToFMDBWithModel:(OffcnIMBodyModel *)chatModel;
//拉取更新消息列表 //拉取更新消息列表
- (void)updateChatInfoCacheInfo:(OffcnIMBodyModel *)chatModel callback:(callBackIsSuccess)isSucess; - (void)updateChatInfoCacheInfo:(OffcnIMBodyModel *)chatModel callback:(callBackIsSuccess)isSucess;
//消息发送成功更新状态 //消息发送成功更新状态
- (void)updateChatInfoIsSendStatusToFMDBWithModel:(OffcnIMBodyModel *)messageModel isSuccess:(callBackIsSuccess)isSuccess; //- (void)updateChatInfoIsSendStatusToFMDBWithModel:(OffcnIMBodyModel *)messageModel isSuccess:(callBackIsSuccess)isSuccess;
//自己发送消息更新聊天列表 //自己发送消息更新聊天列表
- (void)chatlistCacheInfo:(OffcnIMBodyModel *)chatlistModel callback:(callBackIsSuccess)isSucess; - (void)chatlistCacheInfo:(OffcnIMBodyModel *)chatlistModel callback:(callBackIsSuccess)isSucess;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment