Пример #1
0
        public async Task get_replies_by_last_update()
        {
            var args = new GetRepliesByLastUpdateArgs
            {
                StartParentAuthor = "steepshot",
                StartPermlink     = "let-s-make-steem-great-again-incentives-to-sponsors-announcement-from-steepshot",
                Limit             = 3
            };
            var resp = await Api.GetRepliesByLastUpdateAsync(args, CancellationToken.None).ConfigureAwait(false);

            TestPropetries(resp);
        }
Пример #2
0
        public void get_replies_by_last_update()
        {
            var args = new GetRepliesByLastUpdateArgs()
            {
                StartParentAuthor = "steepshot",
                StartPermlink     = "let-s-make-steem-great-again-incentives-to-sponsors-announcement-from-steepshot",
                Limit             = 3
            };
            var resp = Api.GetRepliesByLastUpdate(args, CancellationToken.None);

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

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

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