Example #1
0
        public async Task get_content_replies()
        {
            var args = new GetContentRepliesArgs
            {
                Author   = "steepshot",
                Permlink = "let-s-make-steem-great-again-incentives-to-sponsors-announcement-from-steepshot"
            };
            var resp = await Api.GetContentRepliesAsync(args, CancellationToken.None).ConfigureAwait(false);

            TestPropetries(resp);
        }
Example #2
0
        public void get_content_replies()
        {
            var args = new GetContentRepliesArgs()
            {
                Author   = "steepshot",
                Permlink = "let-s-make-steem-great-again-incentives-to-sponsors-announcement-from-steepshot",
            };
            var resp = Api.GetContentReplies(args, CancellationToken.None);

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

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

            TestPropetries(resp.Result.GetType(), obj.Result);
            WriteLine("----------------------------------------------------------------------------");
            WriteLine(obj);
        }
Example #3
0
 /// <summary>
 /// API name: get_content_replies
 ///
 /// </summary>
 /// <param name="args">API type: get_content_replies_args</param>
 /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param>
 /// <returns>API type: get_content_replies_return</returns>
 /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
 public Task <JsonRpcResponse <GetContentRepliesReturn> > GetContentReplies(GetContentRepliesArgs args, CancellationToken token)
 {
     return(CustomGetRequest <GetContentRepliesReturn>(KnownApiNames.TagsApi, "get_content_replies", args, token));
 }