getPostAndParentAwaitingApproval function

Future<ServerResponse<PostSearchResponse>> getPostAndParentAwaitingApproval (HttpClient http, GetPostAndParentAwaitingApprovalParams params)

Returns the post specified and its immediate parent of posts that are awaiting approval.

Implementation

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