getCommunityLiveStatuses function

Future<ServerResponse<SearchResultOfCommunityLiveStatus>> getCommunityLiveStatuses(
  1. HttpClient http,
  2. GetCommunityLiveStatusesParams params
)

Returns info about community members who are live streaming.

Implementation

Future<ServerResponse<SearchResultOfCommunityLiveStatus>> getCommunityLiveStatuses(HttpClient http, GetCommunityLiveStatusesParams params) {
  return http.request(new HttpClientConfig(
    'GET',
    "https://www.bungie.net/Platform/CommunityContent/Live/All/${params.partnershipType}/${params.sort}/${params.page}/",
    {
      'modeHash': params.modeHash,
      'streamLocale': params.streamLocale
    },
    null
    ));
}