Example #1
0
        public async Task get_discussions_by_comments()
        {
            var args = new GetDiscussionsByCommentsArgs
            {
                StartAuthor = User.Login
            };
            var resp = await Api.GetDiscussionsByCommentsAsync(args, CancellationToken.None).ConfigureAwait(false);

            TestPropetries(resp);
        }
Example #2
0
        public void get_discussions_by_comments()
        {
            var args = new GetDiscussionsByCommentsArgs()
            {
                StartAuthor = User.Login
            };
            var resp = Api.GetDiscussionsByComments(args, CancellationToken.None);

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

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

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