Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- + (NSString *)notificationsTitleForType:(CPNotificationsType)notificationsType {
- switch (notificationsType) {
- case CPNotificationsTypeAll:
- return @"Avid Fan";
- case CPNotificationsTypeScoringMatchStartEnd:
- return @"Major Fan";
- case CPNotificationsTypeMatchStartEnd:
- return @"Casual Fan";
- case CPNotificationsTypeMatchStart:
- return @"Game Reminder";
- case CPNotificationsTypeNone:
- return @"None";
- }
- }
- + (NSString *)notificationsDescriptionForType:(CPNotificationsType)notificationsType sport:(CPSportType)sportType {
- switch (notificationsType) {
- case CPNotificationsTypeAll:
- switch (sportType) {
- case CPSportTypeNBA:
- case CPSportTypeOlympics:
- return @"Game start, game end, each quarter";
- case CPSportTypeMLB:
- return @"Game start, inning, scoring plays, end of game";
- case CPSportTypeNFL:
- return @"Game start, quarter, scoring plays, end of game";
- case CPSportTypeUnknown:
- CPAssert(nil, @"Non-handled sport type");
- break;
- }
- case CPNotificationsTypeScoringMatchStartEnd:
- return @"Game start, scoring plays, game end";
- case CPNotificationsTypeMatchStartEnd:
- return @"Game start, game end";
- case CPNotificationsTypeMatchStart:
- return @"Only game start";
- case CPNotificationsTypeNone:
- return @"You will never hear from us ):";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement