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; }
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); }
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); }