コード例 #1
0
        public async Task get_active_votes()
        {
            var args = new GetActiveVotesArgs
            {
                Permlink = "let-s-make-steem-great-again-incentives-to-sponsors-announcement-from-steepshot",
                Author   = "steepshot"
            };
            var resp = await Api.GetActiveVotesAsync(args, CancellationToken.None).ConfigureAwait(false);

            TestPropetries(resp);
        }
コード例 #2
0
ファイル: TagsApiTest.cs プロジェクト: nanomobile/Ditch
        public void get_active_votes()
        {
            var args = new GetActiveVotesArgs()
            {
                Permlink = "let-s-make-steem-great-again-incentives-to-sponsors-announcement-from-steepshot",
                Author   = "steepshot"
            };
            var resp = Api.GetActiveVotes(args, CancellationToken.None);

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

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

            TestPropetries(resp.Result.GetType(), obj.Result);
            WriteLine("----------------------------------------------------------------------------");
            WriteLine(obj);
        }
コード例 #3
0
 /// <summary>
 /// API name: get_active_votes
 ///
 /// </summary>
 /// <param name="args">API type: get_active_votes_args</param>
 /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param>
 /// <returns>API type: get_active_votes_return</returns>
 /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
 public Task <JsonRpcResponse <GetActiveVotesReturn> > GetActiveVotes(GetActiveVotesArgs args, CancellationToken token)
 {
     return(CustomGetRequest <GetActiveVotesReturn>(KnownApiNames.TagsApi, "get_active_votes", args, token));
 }