public static final class TvContract.Programs.Genres extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ANIMAL_WILDLIFE
The genre for Animal/Wildlife.
|
static String |
ARTS
The genre for Arts.
|
static String |
COMEDY
The genre for Comedy.
|
static String |
DRAMA
The genre for Drama.
|
static String |
EDUCATION
The genre for Education.
|
static String |
ENTERTAINMENT
The genre for Entertainment.
|
static String |
FAMILY_KIDS
The genre for Family/Kids.
|
static String |
GAMING
The genre for Gaming.
|
static String |
LIFE_STYLE
The genre for Life Style.
|
static String |
MOVIES
The genre for Movies.
|
static String |
MUSIC
The genre for Music.
|
static String |
NEWS
The genre for News.
|
static String |
PREMIER
The genre for Premier.
|
static String |
SHOPPING
The genre for Shopping.
|
static String |
SPORTS
The genre for Sports.
|
static String |
TECH_SCIENCE
The genre for Tech/Science.
|
static String |
TRAVEL
The genre for Travel.
|
Modifier and Type | Method and Description |
---|---|
static String[] |
decode(String genres)
Decodes the genre strings from the text stored in the database.
|
static String |
encode(String... genres)
Encodes genre strings to a text that can be put into the database.
|
static boolean |
isCanonical(String genre)
Returns whether a given text is a canonical genre defined in
TvContract.Programs.Genres . |
public static final String FAMILY_KIDS
public static final String SPORTS
public static final String SHOPPING
public static final String MOVIES
public static final String COMEDY
public static final String TRAVEL
public static final String DRAMA
public static final String EDUCATION
public static final String ANIMAL_WILDLIFE
public static final String NEWS
public static final String GAMING
public static final String ARTS
public static final String ENTERTAINMENT
public static final String LIFE_STYLE
public static final String MUSIC
public static final String PREMIER
public static final String TECH_SCIENCE
public static String encode(String... genres)
genres
- Genre strings.TvContract.Programs.COLUMN_BROADCAST_GENRE
or TvContract.Programs.COLUMN_CANONICAL_GENRE
column.public static String[] decode(String genres)
genres
- The encoded genre string retrieved from the
TvContract.Programs.COLUMN_BROADCAST_GENRE
or TvContract.Programs.COLUMN_CANONICAL_GENRE
column.public static boolean isCanonical(String genre)
TvContract.Programs.Genres
.genre
- The name of genre to be checked.true
if the genre is canonical, otherwise false
.