listing username's in a char toom lobby

Last post 08-05-2009, 4:38 AM by lush. 6 replies.
Sort Posts: Previous Next
  •  07-31-2009, 10:51 PM 54434

    listing username's in a char toom lobby

    there doesnt seem to be a way using the public API to retrieve a list of users currently in a chat room.  does anyone know what classes we can use to get this information?
     
    i've figured out the ChatLobbyChannel class inherits from a type that exposes a method
     
     
    Just not clear how to construct this object
     
    public ChatLobbyChannel(ChatPortal portal, string name, IChatLobby lobby) : base(portal, name) {}
     
    When all i have access to is CuteChat.ChatSystem.Instance
     
    Help!   
  •  08-04-2009, 12:26 PM 54481 in reply to 54434

    Re: listing username's in a char toom lobby

    Hi,
     
    Use ChatSystem.Instance.GetCurrentPortal() to get a ChatPortal object
     
    and use portal.GetPlace() to get ChatPlace and convert it to ChatLobbyChannel
     
    you should lock(portal) while access the kernal objects.
     
    Regards,
    Terry
  •  08-04-2009, 10:23 PM 54488 in reply to 54481

    Re: listing username's in a char toom lobby

    thanks terry for your response.
     
    I'm a little unsure what the name is for the GetPlace call, I've tried the lobby title, and some other things nothing works.  Any ideas?

            var portal = ChatSystem.Instance.GetCurrentPortal();
            var lobby = portal.GetPlace("my room") as ChatLobbyChannel;
            var users = lobby.GetAllUsers();
  •  08-04-2009, 11:48 PM 54489 in reply to 54488

    Re: listing username's in a char toom lobby

    Hi,
     
    the name of the lobby should be :
     
    lobby-id  :  "lobby-3"
     
    Regards,
    Terry
  •  08-05-2009, 1:51 AM 54491 in reply to 54489

    Re: listing username's in a char toom lobby

    thanks mate, worked a charm.   
     
    do you know why the block feature doesnt work?  we have had numerous complaints about users not being able to block people, i have raised to support emails.
  •  08-05-2009, 2:59 AM 54497 in reply to 54491

    Re: listing username's in a char toom lobby

    Hi,
     
    For the block function , please try the last version.
     
    Regards,
    Terry
     
  •  08-05-2009, 4:38 AM 54498 in reply to 54497

    Re: listing username's in a char toom lobby

    cutechat:
    Hi,
     
    For the block function , please try the last version.
     
    Regards,
    Terry
     
     
    I'm on 5.1, still doesnt work?
View as RSS news feed in XML