getPostsThreadedPaged function

Future<ServerResponse<PostSearchResponse>> getPostsThreadedPaged (HttpClient http, GetPostsThreadedPagedParams params)

Returns a thread of posts at the given parent, optionally returning replies to those posts as well as the original parent.

Implementation

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