Advertisement
Guest User

Untitled

a guest
May 17th, 2018
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. + (NSString *)notificationsTitleForType:(CPNotificationsType)notificationsType {
  2.     switch (notificationsType) {
  3.         case CPNotificationsTypeAll:
  4.             return @"Avid Fan";
  5.            
  6.         case CPNotificationsTypeScoringMatchStartEnd:
  7.             return @"Major Fan";
  8.            
  9.         case CPNotificationsTypeMatchStartEnd:
  10.             return @"Casual Fan";
  11.            
  12.         case CPNotificationsTypeMatchStart:
  13.             return @"Game Reminder";
  14.            
  15.         case CPNotificationsTypeNone:
  16.             return @"None";
  17.     }
  18. }
  19.  
  20. + (NSString *)notificationsDescriptionForType:(CPNotificationsType)notificationsType sport:(CPSportType)sportType {
  21.     switch (notificationsType) {
  22.         case CPNotificationsTypeAll:
  23.             switch (sportType) {
  24.                 case CPSportTypeNBA:
  25.                 case CPSportTypeOlympics:
  26.                     return @"Game start, game end, each quarter";
  27.                    
  28.                 case CPSportTypeMLB:
  29.                     return @"Game start, inning, scoring plays, end of game";
  30.                    
  31.                 case CPSportTypeNFL:
  32.                     return @"Game start, quarter, scoring plays, end of game";
  33.                    
  34.                 case CPSportTypeUnknown:
  35.                     CPAssert(nil, @"Non-handled sport type");
  36.                     break;
  37.             }
  38.            
  39.         case CPNotificationsTypeScoringMatchStartEnd:
  40.             return @"Game start, scoring plays, game end";
  41.            
  42.         case CPNotificationsTypeMatchStartEnd:
  43.             return @"Game start, game end";
  44.            
  45.         case CPNotificationsTypeMatchStart:
  46.             return @"Only game start";
  47.            
  48.         case CPNotificationsTypeNone:
  49.             return @"You will never hear from us ):";
  50.     }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement