Software: Apache. PHP/5.5.15 uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 SYSTEM Safe-mode: OFF (not secure) E:\xampp\xampp\htdocs\chat\src\core\ drwxrwxrwx |
Viewing file: chatRoom.js (1.81 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | /** File: chatRoom.js * Candy - Chats are not dead yet. * * Authors: * - Patrick Stadler <patrick.stadler@gmail.com> * - Michael Weibel <michael.weibel@gmail.com> * * Copyright: * (c) 2011 Amiado Group AG. All rights reserved. */ /** Class: Candy.Core.ChatRoom * Candy Chat Room * * Parameters: * (String) roomJid - Room jid */ Candy.Core.ChatRoom = function(roomJid) { /** Object: room * Object containing roomJid and name. */ this.room = { jid: roomJid, name: null }; /** Variable: user * Current local user of this room. */ this.user = null; /** Variable: Roster * Candy.Core.ChatRoster instance */ this.roster = new Candy.Core.ChatRoster(); /** Function: setUser * Set user of this room. * * Parameters: * (Candy.Core.ChatUser) user - Chat user */ this.setUser = function(user) { this.user = user; }; /** Function: getUser * Get current local user * * Returns: * (Object) - Candy.Core.ChatUser instance or null */ this.getUser = function() { return this.user; }; /** Function: getJid * Get room jid * * Returns: * (String) - Room jid */ this.getJid = function() { return this.room.jid; }; /** Function: setName * Set room name * * Parameters: * (String) name - Room name */ this.setName = function(name) { this.room.name = name; }; /** Function: getName * Get room name * * Returns: * (String) - Room name */ this.getName = function() { return this.room.name; }; /** Function: setRoster * Set roster of room * * Parameters: * (Candy.Core.ChatRoster) roster - Chat roster */ this.setRoster = function(roster) { this.roster = roster; }; /** Function: getRoster * Get roster * * Returns * (Candy.Core.ChatRoster) - instance */ this.getRoster = function() { return this.roster; }; }; |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0156 ]-- |