Esempio n. 1
0
        /// <inhertidoc />
        public async Task <Accounts> GetAccountsAsync(AccountType type)
        {
            var uri = new Uri(AccountService.Endpoint + "?account_type=" + type.GetDescription());

            var headers = new Dictionary <string, string>()
            {
                {
                    "Authorization",
                    "Bearer " + this.authetication.AccessToken
                }
            };

            var rawJson = await this.httpService.GetAsync(uri, headers);

            return(this.jsonService.Parse <Accounts>(rawJson));
        }
 public override string ToString()
 {
     return(type.GetDescription());
 }