/// <summary>
        ///
        /// </summary>
        /// <param name="depth"></param>
        /// <param name="reference"></param>
        /// <returns></returns>
        public GetTransactionsToApproveResponse GetTransactionsToApprove(int depth, string reference = null)
        {
            var getTransactionsToApproveRequest =
                new GetTransactionsToApproveRequest(depth, reference);

            return
                (Request <GetTransactionsToApproveRequest, GetTransactionsToApproveResponse>(
                     getTransactionsToApproveRequest));
        }
Beispiel #2
0
        public async Task <APIResult <IApproveTransactions> > GetTransactionsToApprove(int depth)
        {
            GetTransactionsToApproveRequest getTransactionsToApproveRequest = new GetTransactionsToApproveRequest(depth);
            var response = await genericWebClient.RequestAsync <GetTransactionsToApproveResponse>(getTransactionsToApproveRequest, CancellationToken.None);

            var result = response ?? this.NullResponse <GetTransactionsToApproveResponse>();

            return(result.RePackage(r => r as IApproveTransactions));
        }
Beispiel #3
0
        public async Task <IApproveTransactions> GetTransactionsToApprove(int depth)
        {
            GetTransactionsToApproveRequest getTransactionsToApproveRequest = new GetTransactionsToApproveRequest(depth);
            var response = await genericClient.RequestAsync <GetTransactionsToApproveResponse>(
                getTransactionsToApproveRequest);

            if (response == null)
            {
                throw new NullReferenceException(nameof(response));
            }

            return(response);
        }