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 ListAccountsRequest(
     string accountId = null,
     string cursor = null, 
     long recordCount = 100, 
     RequestPaginationType paginationType = RequestPaginationType.After) : base("GET")
 {
     var urlFormat = String.Format("/accounts/{0}", accountId ?? String.Empty);
     this.RequestUrl = urlFormat;
 }
예제 #3
0
        public ListAccountsRequest(
            string accountId = null,
            string cursor    = null,
            long recordCount = 100,
            RequestPaginationType paginationType = RequestPaginationType.After) : base("GET")
        {
            var urlFormat = String.Format("/accounts/{0}", accountId ?? String.Empty);

            this.RequestUrl = urlFormat;
        }
예제 #4
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);
        }
예제 #5
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);
        }
예제 #6
0
        public ListAccountsRequest(String accountId = null, String cursor = null, Int64 recordCount = 100, RequestPaginationType paginationType = RequestPaginationType.After) : base("GET")
        {
            var urlFormat = $"/accounts/{accountId ?? String.Empty}";

            this.RequestUrl = urlFormat;
        }