コード例 #1
0
ファイル: EpicGateway.cs プロジェクト: sceny/sdk-csharp
        //Delete wallet
        public async Task <WalletResponse> DeleteWalletItem(DeleteWalletRequest req)
        {
            string jsonRequest  = CommonService.JsonSerializer <DeleteWalletRequest>(req);
            string jsonResponse = await PostRequest(jsonRequest, "deletewalletitem", req.WalletID);

            return(CommonService.JsonDeSerializer <WalletResponse>(jsonResponse));
        }
コード例 #2
0
ファイル: WalletsService.cs プロジェクト: hasmbly/Fortifex4
        public async Task <ApiResponse <DeleteWalletResponse> > DeleteWallet(DeleteWalletRequest request)
        {
            await SetHeader();

            var deleteWalletResponse = await _httpClient.PostJsonAsync <ApiResponse <DeleteWalletResponse> >(Constants.URI.Wallets.DeleteWallet, request);

            return(deleteWalletResponse);
        }
        public override async Task <EmptyResponse> DeleteWallet(DeleteWalletRequest request, ServerCallContext context)
        {
            var key = new DepositWalletKey(
                request.WalletKey.BlockchainAssetId,
                request.WalletKey.BlockchainId,
                request.WalletKey.WalletAddress);
            await _walletService.DeleteWalletAsync(key);

            return(new EmptyResponse());
        }
コード例 #4
0
 public async Task <IActionResult> DeleteWallet(DeleteWalletRequest request)
 {
     try
     {
         return(Ok(new Success(await Mediator.Send(request))));
     }
     catch (Exception exception)
     {
         return(Ok(new InternalServerError(exception)));
     }
 }
コード例 #5
0
        public async Task <JsonResult> Delete([FromBody] DeleteWalletRequest request)
        {
            var result = await WalletServiceWrapper.DeleteWallet(InjectAuthorization(request));

            return(new JsonResult(result));
        }
コード例 #6
0
        public async Task <CmdResponse> DeleteWallet(DeleteWalletRequest request)
        {
            var result = await SendAsync <DeleteWalletRequest, CmdResponse>("DeleteWallet", request);

            return(result.Adapt <CmdResponse>());
        }