Exemplo n.º 1
0
        /// <summary>
        /// Creates new session end sets parameters.
        /// </summary>
        /// <param name="address">Address of server</param>
        /// <param name="login">User login</param>
        /// <param name="password">User password</param>
        public ConnectionData(string address, int port, string login, string password)
        {
            Address      = address;
            Port         = port;
            Login        = login;
            Password     = password;
            AuthComplete = false;

            this._contactList      = new ContactList();
            this._dialogDictionary = new DialogDictionary();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Creates new default session.
        /// </summary>
        public ConnectionData()
        {
            // Default connection parameters.
            this.Address = ServerConnection.STANDART_ADDRESS;
            this.Port    = ServerConnection.STANDART_PORT;

            // Default user data values.
            this.Login        = "";
            this.Password     = "";
            this.AuthComplete = false;

            // Empty dialogs and contact list.
            this._dialogDictionary = new DialogDictionary();
            this._contactList      = new ContactList();
        }