Ejemplo n.º 1
0
        private static void Main(string[] args)
        {
            _server = new XmppServer();
            _server.Start();

            if (args.Length > 0 && args[0] == "emulate")
            {
                var connection = new XmppConnection();
                connection.CreateChat(11);
                _chat = connection.ConnectToChat(11, "Some user");
            }

            Console.ReadLine();
        }
Ejemplo n.º 2
0
 internal XmppChat(int chatId, string user, XmppConnection connection)
 {
     User        = user;
     ChatId      = chatId;
     _connection = connection;
 }