public async Task get_discussions_by_children() { var args = new GetDiscussionsByChildrenArgs(); var resp = await Api.GetDiscussionsByChildrenAsync(args, CancellationToken.None).ConfigureAwait(false); TestPropetries(resp); }
public void get_discussions_by_children() { var args = new GetDiscussionsByChildrenArgs(); var resp = Api.GetDiscussionsByChildren(args, CancellationToken.None); WriteLine(resp); Assert.IsFalse(resp.IsError); var obj = Api.CustomGetRequest <JObject>(KnownApiNames.TagsApi, "get_discussions_by_children", args, CancellationToken.None); TestPropetries(resp.Result.GetType(), obj.Result); WriteLine("----------------------------------------------------------------------------"); WriteLine(obj); }
/// <summary> /// API name: get_discussions_by_children /// /// </summary> /// <param name="args">API type: get_discussions_by_children_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_children_return</returns> /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception> public Task <JsonRpcResponse <GetDiscussionsByChildrenReturn> > GetDiscussionsByChildren(GetDiscussionsByChildrenArgs args, CancellationToken token) { return(CustomGetRequest <GetDiscussionsByChildrenReturn>(KnownApiNames.TagsApi, "get_discussions_by_children", args, token)); }