Exemple #1
0
        public async Task list_comments()
        {
            var args = new ListCommentsArgs
            {
                Start = new object[0],
                Limit = 3,
                Order = SortOrderType.ByPermlink
            };

            var resp = await Api.ListCommentsAsync(args, CancellationToken.None).ConfigureAwait(false);

            TestPropetries(resp);
        }
Exemple #2
0
        public void list_comments()
        {
            var args = new ListCommentsArgs()
            {
                Start = new object[0],
                Limit = 3,
                Order = SortOrderType.ByPermlink
            };

            var resp = Api.ListComments(args, CancellationToken.None);

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

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

            TestPropetries(resp.Result.GetType(), obj.Result);
            WriteLine("----------------------------------------------------------------------------");
            WriteLine(obj);
        }
Exemple #3
0
        //////////////
        // Comments //
        //////////////

        /// <summary>
        /// API name: list_comments
        ///
        /// </summary>
        /// <param name="args">API type: list_comments_args</param>
        /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param>
        /// <returns>API type: list_comments_return</returns>
        /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
        public Task <JsonRpcResponse <ListCommentsReturn> > ListComments(ListCommentsArgs args, CancellationToken token)
        {
            return(CustomGetRequest <ListCommentsReturn>(KnownApiNames.DatabaseApi, "list_comments", args, token));
        }