public HyperWalletSender(IHyperWalletAccount account) { HttpClientHandler handler = new HttpClientHandler { Credentials = new NetworkCredential(account.Portal.Username, account.Portal.Password) }; _client = new HttpClient(handler); _client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); _account = account; }
public ConcreteHyperWalletApiPayment(IHyperWalletAccount account) : base(Type, UserToken, LocalAddress, account) { }
public User(IHyperWalletAccount account) : base(Type, UserToken, LocalAddress, account) { }
protected AbstractHyperWalletApi(string type, string token, string localAddress, IHyperWalletAccount account) { Address = GenerateAddress(type, token, localAddress); Sender = new HyperWalletSender <T>(account); Account = account; }