GroupChannelChangeLogsGetRequest constructor

GroupChannelChangeLogsGetRequest(
  1. GroupChannelChangeLogsParams params, {
  2. String? token,
  3. int? timestamp,
  4. String? userId,
})

Implementation

GroupChannelChangeLogsGetRequest(GroupChannelChangeLogsParams params,
    {String? token, int? timestamp, String? userId})
    : super() {
  url = 'users/${userId ?? state.userId}/my_group_channels/changelogs';
  queryParams = params.toJson();
  if (timestamp != null && timestamp > 0) {
    queryParams['change_ts'] = timestamp;
  } else if (token != null) {
    queryParams['token'] = token;
  }
}