Ejemplo n.º 1
0
 public Room(Jid room, Jid userJid, IXmppClient xmppClient, IClient client)
 {
     this.roomJid = room;
     this.userJid = userJid;
     this.xmppClient = xmppClient;
     this.client = client;
 }
Ejemplo n.º 2
0
        public IRoom JoinRoom(Jid room, string nickname)
        {
            // TODO: only return after we've actually joined the room
            var userJid = new Jid(room.Local, room.Domain, nickname);

            this.xmppClient.SendPresence(userJid, null, null, new XElement(MucNamespace.X).AsEnumerable());

            return new Room(room, userJid, xmppClient, this);
        }