コード例 #1
0
        public override async Task <EmptyResponse> DeclineAssetDisclaimer(AssetDisclaimerRequest request, ServerCallContext context)
        {
            var result = new EmptyResponse();

            var token = context.GetBearerToken();

            var response = await _walletApiV1Client.DeclineAssetDisclaimerAsync(request.DisclaimerId, token);

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

            return(result);
        }
コード例 #2
0
        public override Task <EmptyResponse> DeclineAssetDisclaimer(AssetDisclaimerRequest request, ServerCallContext context)
        {
            var resp = new EmptyResponse();

            return(Task.FromResult(resp));
        }