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;
        }
Exemple #2
0
 public ConcreteHyperWalletApiPayment(IHyperWalletAccount account) : base(Type, UserToken, LocalAddress, account)
 {
 }
Exemple #3
0
 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;
 }