Commit f79a49db by zhangyunjie

1.0.0.7测试版本

parent e19bbd38
...@@ -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.6' s.version = '1.0.0.7'
s.summary = 'OffcnIMSDKiOS.' s.summary = 'OffcnIMSDKiOS.'
s.description = <<-DESC s.description = <<-DESC
......
...@@ -135,4 +135,20 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -135,4 +135,20 @@ NS_ASSUME_NONNULL_BEGIN
@end @end
//IM基础配置
@interface OffcnIMSettingsGatewayModel : NSObject
@property (nonatomic,copy)NSString *server_ip;
@property (nonatomic,assign)NSInteger server_port_kcp;
@property (nonatomic,assign)NSInteger server_port_ws;
@property (nonatomic,assign)NSInteger server_port_wss;
@end
@interface OffcnIMSettingsModel : NSObject
@property (nonatomic,strong)OffcnIMSettingsGatewayModel *gateway;
@end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END
...@@ -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.6"; static const NSString *OffcnIMSDKiOSVersion = @"1.0.0.7";
typedef NS_ENUM(NSUInteger, OffcnIMSDKReachabilityStatus) { typedef NS_ENUM(NSUInteger, OffcnIMSDKReachabilityStatus) {
OffcnIMSDKReachabilityStatusNotReachable = 0, OffcnIMSDKReachabilityStatusNotReachable = 0,
...@@ -65,7 +65,7 @@ typedef void(^OffcnIMSDKReachabilityStatusCallBack)(OffcnIMSDKReachabilityStatus ...@@ -65,7 +65,7 @@ typedef void(^OffcnIMSDKReachabilityStatusCallBack)(OffcnIMSDKReachabilityStatus
/// @param text 文本 /// @param text 文本
/// @param filePath 图片/音频(语音消息格式,只能是aac格式)/视频/文件,沙盒路径 /// @param filePath 图片/音频(语音消息格式,只能是aac格式)/视频/文件,沙盒路径
/// @param ext 开发者扩展字段 /// @param ext 开发者扩展字段
/// @param finished 结果回调 /// @param finished 结果回调,最大限制为500字,超过500字报错回调信息:超过500字
-(void)sendMsgWithMsg_fromID:(NSString *)msg_fromID msg_toID:(NSString *)msg_toID msg_type:(OffcnSDKMsgType)msg_type text:(NSString *)text filePath:(NSString *)filePath ext:(NSString *)ext Finished:(void(^)(BOOL success,OffcnIMBodyModel *sendMsgModel,NSString *errorMessage))finished ProgressPercent:(void(^)(NSString *key, float percent))progressPercent; -(void)sendMsgWithMsg_fromID:(NSString *)msg_fromID msg_toID:(NSString *)msg_toID msg_type:(OffcnSDKMsgType)msg_type text:(NSString *)text filePath:(NSString *)filePath ext:(NSString *)ext Finished:(void(^)(BOOL success,OffcnIMBodyModel *sendMsgModel,NSString *errorMessage))finished ProgressPercent:(void(^)(NSString *key, float percent))progressPercent;
/// 用户信息标记已读 /// 用户信息标记已读
......
...@@ -25,6 +25,9 @@ typedef NS_ENUM(NSUInteger, OffcnIMConnectStatus) { ...@@ -25,6 +25,9 @@ typedef NS_ENUM(NSUInteger, OffcnIMConnectStatus) {
OffcnIMConnectStatusUserNoExist = 5002, //用户不存在 OffcnIMConnectStatusUserNoExist = 5002, //用户不存在
OffcnIMConnectStatusTokenInvalid = 5003, //token已失效 OffcnIMConnectStatusTokenInvalid = 5003, //token已失效
OffcnIMConnectStatusKickout = 8002, //账号被踢 OffcnIMConnectStatusKickout = 8002, //账号被踢
OffcnIMConnectStatusRequestIMSettingsFail = 201026, //获取IM配置失败
OffcnIMConnectStatusPass500Byte = 201027, //发送超过500字
}; };
//收到消息回调 //收到消息回调
...@@ -38,6 +41,8 @@ typedef void(^OffcnIMReceiveConnectStatus)(OffcnIMConnectStatus status,NSString ...@@ -38,6 +41,8 @@ typedef void(^OffcnIMReceiveConnectStatus)(OffcnIMConnectStatus status,NSString
@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
@property (nonatomic, strong) OffcnIMSettingsModel *IMSettingsModel;//IM基础配置
@property (nonatomic, assign) OffcnIMConnectStatus IMConnectStatus;//连接状态 @property (nonatomic, assign) OffcnIMConnectStatus IMConnectStatus;//连接状态
//收到消息回调 //收到消息回调
......
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