ChannelMessageChangeLogGetRequest constructor
ChannelMessageChangeLogGetRequest({
- required ChannelType channelType,
- required String channelUrl,
- required MessageChangeLogParams params,
- String? token,
- 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;
}
}