chatRoom.js

CandyChats are not dead yet.

Authors

Copyright

© 2011 Amiado Group AG.  All rights reserved.  © 2012-2014 Patrick Stadler & Michael Weibel.  All rights reserved.

Summary
chatRoom.js
Candy.Core.ChatRoomCandy Chat Room
Variables
roomObject containing roomJid and name.
userCurrent local user of this room.
RosterCandy.Core.ChatRoster instance
Functions
setUserSet user of this room.
getUserGet current local user
getJidGet room jid
setNameSet room name
getNameGet room name
setRosterSet roster of room
getRosterGet roster

Candy.Core.ChatRoom

Candy Chat Room

Parameters

(String) roomJidRoom jid
Summary
Variables
roomObject containing roomJid and name.
userCurrent local user of this room.
RosterCandy.Core.ChatRoster instance
Functions
setUserSet user of this room.
getUserGet current local user
getJidGet room jid
setNameSet room name
getNameGet room name
setRosterSet roster of room
getRosterGet roster

Variables

room

this.room

Object containing roomJid and name.

user

this.user

Current local user of this room.

Roster

Candy.Core.ChatRoster instance

Functions

setUser

this.setUser = function(user)

Set user of this room.

Parameters

(Candy.Core.ChatUser) userChat user

getUser

this.getUser = function()

Get current local user

Returns

(Object)Candy.Core.ChatUser instance or null

getJid

this.getJid = function()

Get room jid

Returns

(String)Room jid

setName

this.setName = function(name)

Set room name

Parameters

(String) nameRoom name

getName

this.getName = function()

Get room name

Returns

(String)Room name

setRoster

this.setRoster = function(roster)

Set roster of room

Parameters

(Candy.Core.ChatRoster) rosterChat roster

getRoster

this.getRoster = function()

Get roster

Returns (Candy.Core.ChatRoster) - instance

this.room
Object containing roomJid and name.
this.user
Current local user of this room.
this.setUser = function(user)
Set user of this room.
this.getUser = function()
Get current local user
this.getJid = function()
Get room jid
this.setName = function(name)
Set room name
this.getName = function()
Get room name
this.setRoster = function(roster)
Set roster of room
this.getRoster = function()
Get roster
Close