Commit f81de5e2 by zhangyunjie

1.0.0.11

parent 7f49065e
...@@ -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.10' s.version = '1.0.0.11'
s.summary = 'OffcnIMSDKiOS.' s.summary = 'OffcnIMSDKiOS.'
s.description = <<-DESC s.description = <<-DESC
......
...@@ -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.10"; static const NSString *OffcnIMSDKiOSVersion = @"1.0.0.11";
typedef NS_ENUM(NSUInteger, OffcnIMSDKReachabilityStatus) { typedef NS_ENUM(NSUInteger, OffcnIMSDKReachabilityStatus) {
OffcnIMSDKReachabilityStatusNotReachable = 0, OffcnIMSDKReachabilityStatusNotReachable = 0,
......
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSUInteger, OffcnIMConnectStatus) { typedef NS_ENUM(NSUInteger, OffcnIMConnectStatus) {
OffcnIMConnectStatusInitializing = 201029, //连接初始化中
OffcnIMConnectStatusSuccess = 0, //连接成功 OffcnIMConnectStatusSuccess = 0, //连接成功
OffcnIMConnectStatusFail = 1, //连接失败 OffcnIMConnectStatusFail = 1, //连接失败
OffcnIMConnectStatusBreak = 2, //连接断开 OffcnIMConnectStatusBreak = 2, //连接断开
...@@ -25,10 +27,18 @@ typedef NS_ENUM(NSUInteger, OffcnIMConnectStatus) { ...@@ -25,10 +27,18 @@ typedef NS_ENUM(NSUInteger, OffcnIMConnectStatus) {
OffcnIMConnectStatusUserNoExist = 5002, //用户不存在 OffcnIMConnectStatusUserNoExist = 5002, //用户不存在
OffcnIMConnectStatusTokenInvalid = 5003, //token已失效 OffcnIMConnectStatusTokenInvalid = 5003, //token已失效
OffcnIMConnectStatusKickout = 8002, //账号被踢 OffcnIMConnectStatusKickout = 8002, //账号被踢
OffcnIMConnectStatusPass500Byte = 201027, //发送超过500字
}; };
@protocol OffcnIMSocketDelegate <NSObject>
//收到消息
-(void)offcnIMSocketReceiveMessageModel:(OffcnIMModel *)IMModel;
//连接状态
-(void)offcnIMSocketConnectStatus:(OffcnIMConnectStatus)status errorMessage:(NSString *)errorMessage;
@end
//收到消息回调 //收到消息回调
typedef void(^OffcnIMConnectReceiveMessage)(OffcnIMModel *IMModel); typedef void(^OffcnIMConnectReceiveMessage)(OffcnIMModel *IMModel);
...@@ -37,6 +47,8 @@ typedef void(^OffcnIMReceiveConnectStatus)(OffcnIMConnectStatus status,NSString ...@@ -37,6 +47,8 @@ typedef void(^OffcnIMReceiveConnectStatus)(OffcnIMConnectStatus status,NSString
@interface OffcnIMSocketManager : NSObject @interface OffcnIMSocketManager : NSObject
@property (nonatomic, weak) id<OffcnIMSocketDelegate> delegate;
@property (nonatomic, copy) NSString *msg_fromId;//发送消息的用户id @property (nonatomic, copy) NSString *msg_fromId;//发送消息的用户id
@property (nonatomic, copy) NSString *token;//发送消息的用户token @property (nonatomic, copy) NSString *token;//发送消息的用户token
......
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