Commit ae0bae7780fa32688168f7c394ec529ad0ad49a4

Authored by 王军波
1 parent 9d8ea58b

替换发布版SDK

发布版SDK/CNLiveChatManager.framework/CNLiveChatManager
No preview for this file type
发布版SDK/CNLiveChatManager.framework/Headers/CNLiveChatManager.h
... ... @@ -75,7 +75,7 @@
75 75  
76 76 @return SDK版本号
77 77 */
78   -+ (NSString *)getVersion;
  78 ++ (NSString *)getCNLiveChatVersion;
79 79  
80 80  
81 81 /**
... ... @@ -219,5 +219,15 @@
219 219 targetId:(NSString *)targetId
220 220 count:(int)count;
221 221  
  222 +/**
  223 +获取聊天室成员人数
  224 +
  225 +@param targetId 聊天室ID
  226 +@param successBlock 成功回调,返回聊天室成员数量
  227 +@param errorBlock 失败回调,返回错误代码
  228 +*/
  229 +- (void)getChatRoomInfo:(NSString *)targetId
  230 + success:(void (^)(int totalMemberCount))successBlock
  231 + error:(void (^)(CNLiveChatErrorCode status))errorBlock;
222 232  
223 233 @end
... ...
发布版SDK/CNLiveChatManager.framework/Headers/CNLiveCommentCountResult.h 0 → 100644
  1 +//
  2 +// CNLiveCommentCountResult.h
  3 +// CNLiveChatManager
  4 +//
  5 +// Created by cnliveJunBo on 17/6/7.
  6 +// Copyright © 2017年 cnlive. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +
  11 +@interface CNLiveCommentCountResult : NSObject
  12 +
  13 +@property (nonatomic, copy) NSString *count;
  14 +
  15 +@property (nonatomic, copy) NSString *programId;
  16 +
  17 +@end
... ...
发布版SDK/CNLiveChatManager.framework/Headers/CNLiveCommentDetailInfoResult.h 0 → 100644
  1 +//
  2 +// CNLiveCommentDetailInfoResult.h
  3 +// CNLiveChatManagerSDKDemo
  4 +//
  5 +// Created by cnliveJunBo on 17/6/6.
  6 +// Copyright © 2017年 cnlive. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +
  11 +@interface CNLiveCommentDetailInfoResult : NSObject
  12 +
  13 +// 评论ID
  14 +@property (nonatomic, copy) NSString *commentId;
  15 +// 节目ID
  16 +@property (nonatomic, copy) NSString *pid;
  17 +// 用户ID
  18 +@property (nonatomic, copy) NSString *uid;
  19 +// 昵称
  20 +@property (nonatomic, copy) NSString *nick;
  21 +// 评论者头像
  22 +@property (nonatomic, copy) NSString *facepath;
  23 +// 评论内容
  24 +@property (nonatomic, copy) NSString *content;
  25 +// 评论时间
  26 +@property (nonatomic, copy) NSString *created_at;
  27 +// 点赞数
  28 +@property (nonatomic, copy) NSString *praise;
  29 +
  30 +@end
... ...
发布版SDK/CNLiveChatManager.framework/Headers/CNLiveCommentListResult.h 0 → 100644
  1 +//
  2 +// CNLiveCommentListResult.h
  3 +// CNLiveChatManagerSDKDemo
  4 +//
  5 +// Created by cnliveJunBo on 17/6/6.
  6 +// Copyright © 2017年 cnlive. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +#import "CNLiveCommentDetailInfoResult.h"
  11 +
  12 +@interface CNLiveCommentListResult : NSObject
  13 +
  14 +// 下一页
  15 +@property (nonatomic, copy) NSString *next_cursor;
  16 +// 上一页
  17 +@property (nonatomic, copy) NSString *previous_cursor;
  18 +// 总页数
  19 +@property (nonatomic, copy) NSString *total_number;
  20 +// 总条数
  21 +@property (nonatomic, copy) NSString *total_columns;
  22 +// 评论详情数组
  23 +@property (nonatomic, strong) NSArray <CNLiveCommentDetailInfoResult *> *comments;
  24 +
  25 +@end
... ...
发布版SDK/CNLiveChatManager.framework/Headers/CNLiveCommentManager.h 0 → 100644
  1 +//
  2 +// CNLiveCommentManager.h
  3 +// CNLiveChatManager
  4 +//
  5 +// Created by cnliveJunBo on 17/6/6.
  6 +// Copyright © 2017年 cnlive. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +#import "CNLiveCommentListResult.h"
  11 +#import "CNLiveCommentCountResult.h"
  12 +
  13 +@interface CNLiveCommentManager : NSObject
  14 +
  15 +/**
  16 + 获取SDK版本号
  17 +
  18 + @return SDK版本号
  19 + */
  20 ++ (NSString *)getCNLiveCommentVersion;
  21 +
  22 +
  23 +/**
  24 + 获取视讯评论核心类单例
  25 +
  26 + @return 视讯评论核心类单例
  27 +
  28 + @discussion 您可以通过此方法,获取视讯评论的单例,访问对象中的属性和方法。
  29 + */
  30 ++ (instancetype)sharedCNLiveCommentManager;
  31 +
  32 +
  33 +/**
  34 + 注册视讯评论
  35 +
  36 + @param appId 从视讯云平台获取到的appId
  37 + @param appKey 从视讯云平台获取到的appKey
  38 + */
  39 +- (void)registerWithAppId:(NSString *)appId appKey:(NSString *)appKey;
  40 +
  41 +
  42 +/**
  43 + 获取评论列表
  44 +
  45 + @param programId 节目ID
  46 + @param page 页号
  47 + @param pageSize 每页显示的条数
  48 + @param successBlock 获取列表成功回调
  49 + @param errorBlock 获取列表失败回调
  50 + */
  51 +- (void)getCommentListWithProgramId:(NSString *)programId
  52 + page:(NSString *)page
  53 + pageSize:(NSString *)pageSize
  54 + success:(void (^)(CNLiveCommentListResult *result))successBlock
  55 + error:(void (^)(NSString *error))errorBlock;
  56 +
  57 +
  58 +/**
  59 + 评论一条节目
  60 +
  61 + @param programId 节目ID
  62 + @param sid 用户ID
  63 + @param comment 评论内容
  64 + @param completionBlock 评论结果回调,{errorCode:"0",errorMsg:"成功"},
  65 + {errorCode:"xxx",//错误代码(非0)errorMsg:"失败" //错误信息}
  66 + */
  67 +- (void)commentOnProgramWithProgramId:(NSString *)programId
  68 + sid:(NSString *)sid
  69 + comment:(NSString *)comment
  70 + completion:(void (^)(NSString *errorCode, NSString *errorMsg))completionBlock;
  71 +
  72 +
  73 +/**
  74 + 给评论点赞
  75 +
  76 + @param programId 节目ID
  77 + @param sid 用户ID
  78 + @param commentId 评论ID
  79 + @param completionBlock 点赞结果回调,{errorCode:"0",errorMsg:"成功"},
  80 + {errorCode:"xxx",//错误代码(非0)errorMsg:"失败" //错误信息}
  81 + */
  82 +- (void)commentaryLikeWithProgramId:(NSString *)programId
  83 + sid:(NSString *)sid
  84 + commentId:(NSString *)commentId
  85 + completion:(void (^)(NSString *errorCode, NSString *errorMsg))completionBlock;
  86 +
  87 +
  88 +/**
  89 + 获取节目评论数
  90 +
  91 + @param programIds 节目ID数组(数组内可以是字符串类型,可以是NSNumber类型,其他不支持)
  92 + @param completionBlock 获取节目评论数回调结果,{errorCode:"0",errorMsg:"成功"},
  93 + {errorCode:"xxx",//错误代码(非0)errorMsg:"失败" //错误信息}
  94 + commentArray:CNLiveCommentCountResult类型数组,CNLiveCommentCountResult包含节目ID及对应的评论数;
  95 + */
  96 +- (void)getCommentCountWithProgramIds:(NSArray *)programIds
  97 + completion:(void (^)(NSString *errorCode, NSString *errorMsg, NSArray <CNLiveCommentCountResult *>*commentArray))completionBlock;
  98 +
  99 +@end
... ...
发布版SDK/CNLiveChatManager.framework/Info.plist
No preview for this file type
发布版SDK/CNLiveMsgTools.framework/CNLiveMsgTools
No preview for this file type
发布版SDK/CNLiveMsgTools.framework/Headers/CNLiveMsgManager.h
... ... @@ -11,7 +11,7 @@
11 11 @interface CNLiveMsgManager : NSObject
12 12  
13 13  
14   -+ (NSString *)getVersion;
  14 ++ (NSString *)getCNLiveMsgVersion;
15 15  
16 16  
17 17 + (instancetype)sharedCNLiveMsgManager;
... ... @@ -83,6 +83,8 @@
83 83  
84 84 - (NSArray *)getLatestCarriers:(NSInteger)type targetId:(NSString *)targetId count:(int)count;
85 85  
86   -
  86 +- (void)getMeetingPointContent:(NSString *)pointId
  87 + success:(void (^)(int totalMemberCount))successBlock
  88 + error:(void (^)(NSInteger errors))errorBlock;
87 89  
88 90 @end
... ...
发布版SDK/CNLiveMsgTools.framework/Info.plist
No preview for this file type