cn.tee3.avd_SDK-Objectc  2.1.0
AVDChat.h
浏览该文件的文档.
1 //
2 // AVDChat.h
3 // avd_sdk
4 //
5 // Created by skin on 15-7-21.
6 // Copyright (c) 2015年 t3ee. All rights reserved.
7 //
8 
9 #ifndef avd_sdk_AVDChat_h
10 #define avd_sdk_AVDChat_h
11 
12 #import "AVDModule.h"
13 #import "AVDMessage.h"
14 
15 @class AVDRoom;
16 
22 @protocol AVDChatDelegate<NSObject>
23 
24 @optional
26 
33 - (void) onPublicMessage:(AVDMessage*)message;
41 - (void) onPrivateMessage:(AVDMessage*)message;
42 
43 @end
44 
45 
51 @interface AVDChat : AVDModule
52 
53 
54 @property (nonatomic,weak) id <AVDChatDelegate>delegate;
61 + (AVDChat* ) getChat:(AVDRoom*)room;
62 
69 - (AVDResult) sendPublicMessage:(NSString *)message;
77 - (AVDResult) sendPrivateMessage:(NSString *)message toUser:(AVDUserId)toId;
78 
88 - (NSMutableArray*) getPublicHistoryMessage:(BOOL)latest begin:(NSInteger)begindex count:(NSInteger)count;
99 - (NSMutableArray*) getPrivateHistoryMessage:(BOOL)latest begin:(NSInteger)begindex count:(NSInteger)count userId:(AVDUserId)userId;
100 
101 
102 #ifndef DOXYGEN_SHOULD_SKIP_THIS
103 // Disallow init and don't add to documentation
104 - (id)init __attribute__((
105  unavailable("init is not a supported initializer for this class.")));
106 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
107 
108 @end
109 
110 #endif
id< AVDChatDelegate > delegate
聊天回调代理
Definition: AVDChat.h:54
房间中聊天模块接口.
Definition: AVDChat.h:51
聊天消息结构.
Definition: AVDMessage.h:16
AVDRoom * room
房间对象指针
Definition: AVDModule.h:26
Definition: AVDModule.h:24
NSInteger AVDResult
Definition: AVDCommon.h:14
房间中聊天模块回调接口.
Definition: AVDChat.h:22
NSString * AVDUserId
Definition: AVDCommon.h:15
初始状态
Definition: AVDRoomInfo.h:37
(unavailable("init is not a supported initializer for this class." __attribute__()
房间接口类
Definition: AVDRoom.h:173