예제 #1
0
 private static string GetOfficialRating(ChannelParentalRating rating)
 {
     return(rating switch
     {
         ChannelParentalRating.Adult => "XXX",
         ChannelParentalRating.UsR => "R",
         ChannelParentalRating.UsPG13 => "PG-13",
         ChannelParentalRating.UsPG => "PG",
         _ => null
     });
예제 #2
0
 private string GetOfficialRating(ChannelParentalRating rating)
 {
     switch (rating)
     {
         case ChannelParentalRating.Adult:
             return "XXX";
         case ChannelParentalRating.UsR:
             return "R";
         case ChannelParentalRating.UsPG13:
             return "PG-13";
         case ChannelParentalRating.UsPG:
             return "PG";
         default:
             return null;
     }
 }
예제 #3
0
        private static string GetOfficialRating(ChannelParentalRating rating)
        {
            switch (rating)
            {
            case ChannelParentalRating.Adult:
                return("XXX");

            case ChannelParentalRating.UsR:
                return("R");

            case ChannelParentalRating.UsPG13:
                return("PG-13");

            case ChannelParentalRating.UsPG:
                return("PG");

            default:
                return(null);
            }
        }
예제 #4
0
 private string GetOfficialRating(ChannelParentalRating rating)
 {
     switch (rating)
     {
         case ChannelParentalRating.Adult:
             return "XXX";
         case ChannelParentalRating.UsR:
             return "R";
         case ChannelParentalRating.UsPG13:
             return "PG-13";
         case ChannelParentalRating.UsPG:
             return "PG";
         default:
             return null;
     }
 }