package com.thebluealliance.androidclient.gcm.notifications;
/**
* Notification type strings, found in dicts received from GCM
*/
public final class NotificationTypes {
private NotificationTypes() {
// unused
}
public static final String
UPCOMING_MATCH = "upcoming_match",
MATCH_SCORE = "match_score",
LEVEL_STARTING = "starting_comp_level",
ALLIANCE_SELECTION = "alliance_selection",
AWARDS = "awards_posted",
MEDIA_POSTED = "media_posted",
DISTRICT_POINTS_UPDATED = "district_points_updated",
SCHEDULE_UPDATED = "schedule_updated",
FINAL_RESULTS = "final_results",
PING = "ping",
BROADCAST = "broadcast",
SYNC_STATUS = "sync_status",
EVENT_DOWN = "event_down",
MATCH_VIDEO = "match_video", // This is what users will subscribe to
TEAM_MATCH_VIDEO = "match_video",
EVENT_MATCH_VIDEO = "event_match_video",
UPDATE_FAVORITES = "update_favorites",
UPDATE_SUBSCRIPTIONS = "update_subscriptions",
SUMMARY = "summary";
/**
* Get the display name for each notification type we can subscribe to for mytba
*/
public static String getDisplayName(String notificationType) {
switch (notificationType) {
case UPCOMING_MATCH:
return "Upcoming Matches";
case MATCH_SCORE:
return "Match Scores";
case LEVEL_STARTING:
return "Competition Level Starting";
case ALLIANCE_SELECTION:
return "Alliance Selections";
case AWARDS:
return "Awards Posted";
case MEDIA_POSTED:
return "Media Posted";
case DISTRICT_POINTS_UPDATED:
return "Points Updated";
case SCHEDULE_UPDATED:
return "Match Schedule Posted";
case FINAL_RESULTS:
return "Final Results";
case MATCH_VIDEO:
return "Match Videos";
default:
return "";
}
}
}