IMP(低代码音视频工厂)SDK v1.5.0
IMP SDK API Reference Manual for iOS Platforms
AIRBChatProtocol.h
1//
2// AIRBChatProtocol.h
3// AliInteractiveRoomBundle
4//
5// Created by fernando on 2021/6/22.
6// Copyright © 2021 AliYun. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import <AliInteractiveRoomBundle/AIRBCommonDefines.h>
11
12NS_ASSUME_NONNULL_BEGIN
13
14
16
17@protocol AIRBChatProtocol <NSObject>
18
24- (void) getCurrentChatInfoOnSuccess:(void(^)(NSDictionary* info))onSuccess onFailure:(void(^)(NSString* errMessage))onFailure;
25
32- (void) sendComment:(NSString*)comment
33 onSuccess:(void (^)(void))onSuccess
34 onFailure:(void (^)(AIRBErrorCode code, NSString* message))onFailure;
35
43- (void) sendComment:(NSString*)comment
44 extension:(NSDictionary<NSString*, NSString*>*)extension
45 onSuccess:(void (^)(void))onSuccess
46 onFailure:(void (^)(AIRBErrorCode code, NSString* message))onFailure;
47
51- (void) sendLike;
52
61- (void) queryCommentsWithSortedType:(AIRBRoomChatCommentsSortedType)sortedType
62 pageNum:(int)pageNum
63 pageSize:(int)pageSize
64 onSuccess:(void (^)(AIRBRoomChannelCommentsResponse* response))onSuccess
65 onFailure:(void (^)(NSString* errorMsg))onFailure;
66
74- (void) banCommentWithUserID:(nonnull NSString*)userID
75 banTimeInSeconds:(int32_t)seconds
76 onSuccess:(void (^)(void))onSuccess
77 onFailure:(void (^)(NSString* errorMessage))onFailure;
78
85- (void) cancelBanCommentWithUserID:(nonnull NSString*)userID
86 onSuccess:(void (^)(void))onSuccess
87 onFailure:(void (^)(NSString* errorMessage))onFailure;
88
89
96- (void) banAllComment:(BOOL)ban
97 onSuccess:(void (^)(void))onSuccess
98 onFailure:(void (^)(NSString* errorMessage))onFailure;
99
107- (void) sendCustomMessage:(NSString*)message toUsers:(NSArray*)userList onSuccess:(void (^)(void))onSuccess onFailure:(void (^)(NSString* errorMessage))onFailure;
108
115- (void) sendCustomMessageToALL:(NSString*)message onSuccess:(void (^)(void))onSuccess onFailure:(void (^)(NSString* errorMessage))onFailure;
116
117@end
118
119NS_ASSUME_NONNULL_END
Definition: AIRBRoomChannelCommentsResponse.h:16
Definition: AIRBChatProtocol.h:17