Beispiel #1
0
 /// <summary>
 /// Login to Battle.Net with credentials and receive the list of available characters to select.
 /// </summary>
 /// <param name="username">Account name</param>
 /// <param name="password">Password used to login</param>
 /// <returns>A list of Characters associated with the account</returns>
 public List <Character> Login(string username, string password)
 {
     Bncs.Login(username, password);
     Log.Information($"Logged in as {username}");
     RealmLogon();
     return(Mcp.ListCharacters());
 }
Beispiel #2
0
        /// <summary>
        /// Login to Battle.Net with credentials and receive the list of available characters to select.
        /// </summary>
        /// <param name="username">Account name</param>
        /// <param name="password">Password used to login</param>
        /// <returns>A list of Characters associated with the account</returns>
        public List <Character> Login(string username, string password)
        {
            if (!Bncs.Login(username, password))
            {
                Log.Warning($"Logged failed as {username}");
                return(null);
            }
            Log.Information($"Logged in as {username}");
            _userName = username;
            if (!RealmLogon())
            {
                return(null);
            }

            return(Mcp.ListCharacters());
        }