ChannelMetaCounterUpdateRequest constructor
ChannelMetaCounterUpdateRequest({
- required ChannelType channelType,
- required String channelUrl,
- required Map<
String, int> metaCounter, - required MetaCounterMode mode,
- bool upsert = true,
Implementation
ChannelMetaCounterUpdateRequest({
required ChannelType channelType,
required String channelUrl,
required Map<String, int> metaCounter,
required MetaCounterMode mode,
bool upsert = true,
}) : super() {
url = '${channelType.urlString}/$channelUrl/metacounter';
body = {
'metacounter': metaCounter,
'upsert': upsert,
'mode': mode.asString()
};
}