Inherits from NSObject
Conforms to NSCoding
NSCopying
Declared in QBChatRoom.h

Overview

QBChatRoom structure. Represents chat room entity

Warning: Deprecated in QB iOS SDK 2.3: Use QBChatDialog instead

Tasks

Properties

JID

@property (strong, nonatomic, readonly) NSString *JID
Discussion

Room JID

Declared In

QBChatRoom.h

isJoined

@property (assign, nonatomic, readonly) BOOL isJoined
Discussion

Is current user joined this room

Declared In

QBChatRoom.h

name

@property (strong, nonatomic, readonly) NSString *name
Discussion

Room name

Declared In

QBChatRoom.h

Instance Methods

initWithRoomJID:

- (id)initWithRoomJID:(NSString *)roomJID
Discussion

Init QBChatRoom instance with JID

Parameters

roomJID

Room JID

Return Value

QBChatRoom instance

Declared In

QBChatRoom.h

initWithRoomJID:nickname:

- (id)initWithRoomJID:(NSString *)roomJID nickname:(NSString *)nickname
Discussion

Init QBChatRoom instance with JID & user nickname

Parameters

roomJID

Room JID

nickname

User nickname wich will be used in room

Return Value

QBChatRoom instance

Declared In

QBChatRoom.h

initWithRoomName:

- (id)initWithRoomName:(NSString *)roomName
Discussion

Init QBChatRoom instance with name If room name contains (“ ”) (space) character - it will be replaceed with “_” (underscore) character. If room name contains (“),(),(&),(‘),(/),(:),(<),(>),(@),((),()),(:),(;) characters - they will be removed. As user room nickname we will use user ID

Warning: Deprecated in QB iOS SDK 1.8.6: Use method with JID instead

Parameters

roomName

Room name

Return Value

QBChatRoom instance

Declared In

QBChatRoom.h

initWithRoomName:nickname:

- (id)initWithRoomName:(NSString *)roomName nickname:(NSString *)nickname
Discussion

Init QBChatRoom instance with name & user nickname If room name contains (“ ”) (space) character - it will be replaceed with “_” (underscore) character. If room name contains (“),(),(&),(‘),(/),(:),(<),(>),(@),((),()),(:),(;) characters - they will be removed.

Warning: Deprecated in QB iOS SDK 1.8.6: Use method with JID instead

Parameters

roomName

Room name

nickname

User nickname wich will be used in room

Return Value

QBChatRoom instance

Declared In

QBChatRoom.h

joinRoom

- (void)joinRoom
Discussion

Join current room

Declared In

QBChatRoom.h

joinRoomWithHistoryAttribute:

- (void)joinRoomWithHistoryAttribute:(NSDictionary *)historyAttribute
Discussion

Join current room

Parameters

historyAttribute

Attribite to manage the amount of discussion history provided on entering a room. More info here http://xmpp.org/extensions/xep-0045.html#enter-history

Declared In

QBChatRoom.h

leaveRoom

- (void)leaveRoom
Discussion

Leave current room

Declared In

QBChatRoom.h

requestOnlineUsers

- (void)requestOnlineUsers
Discussion

Request room’s online users

Declared In

QBChatRoom.h

sendMessage:

- (void)sendMessage:(QBChatMessage *)message
Discussion

Send message to current room

Declared In

QBChatRoom.h

sendMessageWithoutJoin:

- (void)sendMessageWithoutJoin:(QBChatMessage *)message
Discussion

Send message to current room, without join it

Declared In

QBChatRoom.h