public CorporateClashAccount(string username, string password)
        {
            Username = username;
            Password = password;

            Config = new LoginConfig(new Uri($"https://corporateclash.net/api/v1/login/{Username}"),
                                     new FormUrlEncodedContent(new Dictionary <string, string>
            {
                { PassParameter, Password }
            }));
        }
Exemplo n.º 2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Account"/> class.
 /// </summary>
 /// <param name="user">Username</param>
 /// <param name="pass">Password</param>
 /// <param name="config">The login configuration</param>
 public Account(string user, string pass, LoginConfig config)
 {
     Username = user ?? throw new ArgumentNullException(nameof(user));
     Password = pass ?? throw new ArgumentNullException(nameof(pass));
     Config   = config ?? throw new ArgumentNullException(nameof(config));
 }