Exemplo n.º 1
0
        public override Task <PendingActionsResponse> GetPendingActions(Empty request, ServerCallContext context)
        {
            var result = new PendingActionsResponse()
            {
                Result = new PendingActionsResponse.Types.PendingActionsPayload()
                {
                    DialogPending          = false,
                    EthereumPendingActions = false,
                    NeedReinit             = false,
                    OffchainRequests       = false,
                    PendingOperations      = false,
                    SessionConfirmation    = false,
                    UnsignedTxs            = false
                }
            };

            return(Task.FromResult(result));
        }
Exemplo n.º 2
0
        public override async Task <PendingActionsResponse> GetPendingActions(Empty request, ServerCallContext context)
        {
            var token    = context.GetBearerToken();
            var response = await _walletApiV1Client.ClientGetPendingActionsAsync(token);

            var result = new PendingActionsResponse();

            if (response.Result != null)
            {
                result.Body = _mapper.Map <PendingActionsResponse.Types.Body>(response.Result);
            }

            if (response.Error != null)
            {
                result.Error = response.Error.ToApiError();
            }

            return(result);
        }