convertCampaignTypeToString static method
Implementation
static String convertCampaignTypeToString(final NewsFeedCampaignType type) {
switch (type) {
case NewsFeedCampaignType.PushNotification:
return "push_notification";
case NewsFeedCampaignType.InAppMessage:
return "in_app_message";
case NewsFeedCampaignType.WebMessage:
return "web_message";
case NewsFeedCampaignType.All:
return "all";
case NewsFeedCampaignType.Unknown:
return "unknown";
default:
return "unknown";
}
}