Пример #1
0
        public async Task find_votes()
        {
            var args = new FindVotesArgs
            {
                Author   = "steepshot",
                Permlink = "let-s-make-steem-great-again-incentives-to-sponsors-announcement-from-steepshot"
            };
            var resp = await Api.FindVotesAsync(args, CancellationToken.None).ConfigureAwait(false);

            TestPropetries(resp);
        }
Пример #2
0
        public void find_votes()
        {
            var args = new FindVotesArgs()
            {
                Author   = "steepshot",
                Permlink = "let-s-make-steem-great-again-incentives-to-sponsors-announcement-from-steepshot"
            };
            var resp = Api.FindVotes(args, CancellationToken.None);

            WriteLine(resp);
            Assert.IsFalse(resp.IsError);

            var obj = Api.CustomGetRequest <JObject>(KnownApiNames.DatabaseApi, "find_votes", args, CancellationToken.None);

            TestPropetries(resp.Result.GetType(), obj.Result);
            WriteLine("----------------------------------------------------------------------------");
            WriteLine(obj);
        }
Пример #3
0
 /// <summary>
 /// API name: find_votes
 ///
 /// </summary>
 /// <param name="args">API type: find_votes_args</param>
 /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param>
 /// <returns>API type: find_votes_return</returns>
 /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
 public Task <JsonRpcResponse <FindVotesReturn> > FindVotes(FindVotesArgs args, CancellationToken token)
 {
     return(CustomGetRequest <FindVotesReturn>(KnownApiNames.DatabaseApi, "find_votes", args, token));
 }