public async Task <ShufflersReply> GetShufflers(Account account = null, BinaryHexString shufflingFullHash = null,
                                                        SecretPhraseOrAdminPassword sercretPhraseOrAdminPassword = null)
        {
            var queryParameters = sercretPhraseOrAdminPassword != null ? sercretPhraseOrAdminPassword.QueryParameters : new Dictionary <string, string>();

            queryParameters.AddIfHasValue(Parameters.Account, account);
            queryParameters.AddIfHasValue(Parameters.ShufflingFullHash, shufflingFullHash);
            return(await Get <ShufflersReply>("getShufflers", queryParameters));
        }
        public async Task <StopShufflerReply> StopShuffler(Account account = null, BinaryHexString shufflingFullHash = null,
                                                           SecretPhraseOrAdminPassword secretPhraseOrAdminPassword = null)
        {
            var queryParameters = secretPhraseOrAdminPassword == null
                ? new Dictionary <string, string>()
                : secretPhraseOrAdminPassword.QueryParameters;

            queryParameters.AddIfHasValue(Parameters.Account, account);
            queryParameters.AddIfHasValue(Parameters.ShufflingFullHash, shufflingFullHash);
            return(await Post <StopShufflerReply>("stopShuffler", queryParameters));
        }
Exemple #3
0
        public async Task <StopForgingReply> StopForging(SecretPhraseOrAdminPassword secretPhraseOrAdminPassword)
        {
            var queryParameters = secretPhraseOrAdminPassword.QueryParameters;

            return(await Post <StopForgingReply>("stopForging", queryParameters));
        }