comparison libervia.tac @ 125:f9d63624699f

radio collective integration, first draft
author Goffi <goffi@goffi.org>
date Thu, 05 Jan 2012 00:22:03 +0100
parents 6d1f4a3da29b
children e19a8de8b3de
comparison
equal deleted inserted replaced
124:6d1f4a3da29b 125:f9d63624699f
238 try: 238 try:
239 room_jid = JID(room_jid) 239 room_jid = JID(room_jid)
240 except: 240 except:
241 warning('Invalid room jid') 241 warning('Invalid room jid')
242 return 242 return
243 self.sat_host.bridge.joinMUC(room_jid.host, room_jid.user, nick, profile) 243 self.sat_host.bridge.joinMUC(room_jid.userhost(), nick, {}, profile)
244 244
245 def jsonrpc_getRoomsJoined(self): 245 def jsonrpc_getRoomsJoined(self):
246 """Return list of room already joined by user""" 246 """Return list of room already joined by user"""
247 profile = ISATSession(self.session).profile 247 profile = ISATSession(self.session).profile
248 return self.sat_host.bridge.getRoomsJoined(profile) 248 return self.sat_host.bridge.getRoomsJoined(profile)
270 270
271 def jsonrpc_tarotGamePlayCards(self, player_nick, referee, cards): 271 def jsonrpc_tarotGamePlayCards(self, player_nick, referee, cards):
272 """Tell to the server that we are ready to start the game""" 272 """Tell to the server that we are ready to start the game"""
273 profile = ISATSession(self.session).profile 273 profile = ISATSession(self.session).profile
274 self.sat_host.bridge.tarotGamePlayCards(player_nick, referee, cards, profile) 274 self.sat_host.bridge.tarotGamePlayCards(player_nick, referee, cards, profile)
275
276 def jsonrpc_launchRadioCollective(self, invited):
277 """Create a room, invite people, and start a radio collective"""
278 profile = ISATSession(self.session).profile
279 self.sat_host.bridge.radiocolLaunch(invited, profile)
275 280
276 def jsonrpc_getCardCache(self, jid): 281 def jsonrpc_getCardCache(self, jid):
277 """Get the avatar of a contact 282 """Get the avatar of a contact
278 @param jid: jid of contact from who we want the avatar 283 @param jid: jid of contact from who we want the avatar
279 @return: path to the avatar image""" 284 @return: path to the avatar image"""