getPostAndParent function

Future<ServerResponse<PostSearchResponse>> getPostAndParent (HttpClient http, GetPostAndParentParams params)

Returns the post specified and its immediate parent.

Implementation

Future<ServerResponse<PostSearchResponse>> getPostAndParent(HttpClient http, GetPostAndParentParams params) {
  return http.request(new HttpClientConfig(
    'GET',
    "https://www.bungie.net/Platform/Forum/GetPostAndParent/${params.childPostId}/",
    {
      'showbanned': params.showbanned
    },
    null
    ));
}