public async Task<ListAccountsResponse> ListAccounts(string accountId = null, string cursor = null, long recordCount = 100, RequestPaginationType paginationType = RequestPaginationType.After)
 {
     var request = new ListAccountsRequest(accountId, cursor, recordCount, paginationType);
     var response = await this.GetResponse(request);
     var accountResponse = new ListAccountsResponse(response);
     return accountResponse;
 }
Beispiel #2
0
        public async Task <ListAccountsResponse> ListAccounts(string accountId = null, string cursor = null, long recordCount = 100, RequestPaginationType paginationType = RequestPaginationType.After)
        {
            var request  = new ListAccountsRequest(accountId, cursor, recordCount, paginationType);
            var response = await this.GetResponse(request);

            var accountResponse = new ListAccountsResponse(response);

            return(accountResponse);
        }
Beispiel #3
0
        public async Task <ListAccountsResponse> ListAccounts(string accountId = null, string cursor = null, long recordCount = 100, RequestPaginationType paginationType = RequestPaginationType.After)
        {
            var request = new ListAccountsRequest(accountId, cursor, recordCount, paginationType);



            ExchangeResponse response = null;

            try
            {
                response = await this.GetResponse(request);
            }
            catch (Exception)
            {
                throw new Exception("ListAccountError");
            }


            var accountResponse = new ListAccountsResponse(response);

            return(accountResponse);
        }