putUserPreferenceTopic method

Future putUserPreferenceTopic({
  1. required String topicId,
  2. required CourierUserPreferencesStatus status,
  3. required bool hasCustomRouting,
  4. required List<CourierUserPreferencesChannel> customRouting,
})

Implementation

Future putUserPreferenceTopic({required String topicId, required CourierUserPreferencesStatus status, required bool hasCustomRouting, required List<CourierUserPreferencesChannel> customRouting}) async {
  await _options.invokeClient('preferences.put_user_preference_topic', {
    'topicId': topicId,
    'status': status.value,
    'hasCustomRouting': hasCustomRouting,
    'customRouting': customRouting.map((e) => e.value).toList(),
  });
}