getPostsThreadedPagedFromChild function

Future<ServerResponse<PostSearchResponse>> getPostsThreadedPagedFromChild (HttpClient http, GetPostsThreadedPagedFromChildParams params)

Returns a thread of posts starting at the topicId of the input childPostId, optionally returning replies to those posts as well as the original parent.

Implementation

Future<ServerResponse<PostSearchResponse>> getPostsThreadedPagedFromChild(HttpClient http, GetPostsThreadedPagedFromChildParams params) {
  return http.request(new HttpClientConfig(
    'GET',
    "https://www.bungie.net/Platform/Forum/GetPostsThreadedPagedFromChild/${params.childPostId}/${params.page}/${params.pageSize}/${params.replySize}/${params.rootThreadMode}/${params.sortMode}/",
    {
      'showbanned': params.showbanned
    },
    null
    ));
}