ChannelMessageChangeLogGetRequest constructor

ChannelMessageChangeLogGetRequest({
  1. required ChannelType channelType,
  2. required String channelUrl,
  3. required MessageChangeLogParams params,
  4. String? token,
  5. int? timestamp,
})

Implementation

ChannelMessageChangeLogGetRequest({
  required ChannelType channelType,
  required String channelUrl,
  required MessageChangeLogParams params,
  String? token,
  int? timestamp,
}) : super() {
  url = '${channelType.urlString}/$channelUrl/messages/changelogs';
  queryParams = params.toJson();
  if (token != null) {
    queryParams['token'] = token;
  } else {
    queryParams['change_ts'] = timestamp;
  }
}