コード例 #1
0
ファイル: YahtzeeService.cs プロジェクト: renklus/DSA
        public Task <TransactionReceipt> AssignResultRequestAndWaitForReceiptAsync(byte scoringChoice, bool scoringHelpDice1, bool scoringHelpDice2, bool scoringHelpDice3, bool scoringHelpDice4, bool scoringHelpDice5, CancellationTokenSource cancellationToken = null)
        {
            var assignResultFunction = new AssignResultFunction();

            assignResultFunction.ScoringChoice    = scoringChoice;
            assignResultFunction.ScoringHelpDice1 = scoringHelpDice1;
            assignResultFunction.ScoringHelpDice2 = scoringHelpDice2;
            assignResultFunction.ScoringHelpDice3 = scoringHelpDice3;
            assignResultFunction.ScoringHelpDice4 = scoringHelpDice4;
            assignResultFunction.ScoringHelpDice5 = scoringHelpDice5;

            return(ContractHandler.SendRequestAndWaitForReceiptAsync(assignResultFunction, cancellationToken));
        }
コード例 #2
0
ファイル: YahtzeeService.cs プロジェクト: renklus/DSA
        public Task <string> AssignResultRequestAsync(byte scoringChoice, bool scoringHelpDice1, bool scoringHelpDice2, bool scoringHelpDice3, bool scoringHelpDice4, bool scoringHelpDice5)
        {
            var assignResultFunction = new AssignResultFunction();

            assignResultFunction.ScoringChoice    = scoringChoice;
            assignResultFunction.ScoringHelpDice1 = scoringHelpDice1;
            assignResultFunction.ScoringHelpDice2 = scoringHelpDice2;
            assignResultFunction.ScoringHelpDice3 = scoringHelpDice3;
            assignResultFunction.ScoringHelpDice4 = scoringHelpDice4;
            assignResultFunction.ScoringHelpDice5 = scoringHelpDice5;

            return(ContractHandler.SendRequestAsync(assignResultFunction));
        }
コード例 #3
0
ファイル: YahtzeeService.cs プロジェクト: renklus/DSA
 public Task <TransactionReceipt> AssignResultRequestAndWaitForReceiptAsync(AssignResultFunction assignResultFunction, CancellationTokenSource cancellationToken = null)
 {
     return(ContractHandler.SendRequestAndWaitForReceiptAsync(assignResultFunction, cancellationToken));
 }
コード例 #4
0
ファイル: YahtzeeService.cs プロジェクト: renklus/DSA
 public Task <string> AssignResultRequestAsync(AssignResultFunction assignResultFunction)
 {
     return(ContractHandler.SendRequestAsync(assignResultFunction));
 }