| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- //
- // KSChatroomMessageCenter.h
- // KulexiuForTeacher
- //
- // Created by Kyle on 2022/3/30.
- //
- #import <Foundation/Foundation.h>
- #import <RongIMLibCore/RongIMLibCore.h>
- #import "KSLiveChatroomLike.h"
- #import "KSLiveChatroomDownSeat.h"
- #import "KSLiveChatroomEnter.h"
- #import "KSLiveChatroomLeave.h"
- #import "KSLiveChatroomUserQuit.h"
- #import "KSLiveChatroomWelcome.h"
- #import "KSLiveChatroomSeatApply.h"
- #import "KSLiveChatroomSeatResponse.h"
- #import "KSLiveChatroomClose.h"
- #import "KSLiveChatroomKickOut.h"
- typedef void(^RCChatroomMessageSuccess)(long messageId);
- typedef void(^RCChatroomMessageError)(RCErrorCode errorCode, long messageId);
- NS_ASSUME_NONNULL_BEGIN
- @protocol RCChatroomLocalMessageDelegate <NSObject>
- - (void)didReceiveLocalChatroomMessage:(RCMessageContent *)content;
- @end
- @interface KSChatroomMessageCenter : NSObject
- ///注册消息类
- + (void)registerMessageTypes;
- ///发送消息
- ///@param roomId 房间id
- ///@param content 消息,对应自定义消息类型
- + (void)sendChatMessage:(NSString *)roomId
- content:(RCMessageContent *)content
- success:(RCChatroomMessageSuccess)success
- error:(RCChatroomMessageError)error;
- ///发送消息
- ///@param roomId 房间id
- ///@param content 消息,对应自定义消息类型
- ///@param queue 回调线程
- + (void)sendChatMessage:(NSString *)roomId
- content:(RCMessageContent *)content
- queue:(dispatch_queue_t)queue
- success:(RCChatroomMessageSuccess)success
- error:(RCChatroomMessageError)error;
- @end
- NS_ASSUME_NONNULL_END
|