public class Rating extends Object implements Serializable
all rating values are represented by integer values 0 to 5, where 0 means worst and 5 means best in the respective category
Modifier and Type | Field and Description |
---|---|
static byte |
ACTION_RATING_KEY
action rating
|
static int |
BEST_RATING |
static String |
COUNT
Deprecated.
|
static byte |
ENTITLEMENT_RATING_KEY
entitlement rating
|
static byte |
EROTIC_RATING_KEY
erotic rating
|
static byte |
FUN_RATING_KEY
fun rating
|
static byte |
OVERALL_RATING_KEY
overall rating
|
(package private) static long |
serialVersionUID
Used to serialize this Object
|
static byte |
TENSION_RATING_KEY
tension rating
|
Constructor and Description |
---|
Rating()
Creates an empty rating
|
Rating(String title)
Creates a empty Rating
|
Rating(String title,
byte[] values)
Creates a Rating
|
Modifier and Type | Method and Description |
---|---|
int |
getActionRating() |
int |
getEntitlementRating() |
int |
getEroticRating() |
int |
getFunRating() |
int |
getGenre() |
int |
getIntValue(int key)
Gets an Int-Value from this Rating
|
int |
getOverallRating() |
int |
getRatingCount() |
int |
getRatingId() |
int |
getTensionRating() |
String |
getTitle()
Gets the Title
|
void |
setActionRating(int action) |
void |
setEntitlementRating(int entitlement) |
void |
setEroticRating(int erotic) |
void |
setFunRating(int fun) |
void |
setGenre(int genreArg) |
void |
setOnlineID(int onlineIDArg) |
void |
setOverallRating(int overall) |
void |
setTensionRating(int tension) |
void |
setTitle(String string)
Sets the Title
|
void |
setUserCount(int userCountArg) |
String |
toString()
Returns a String-Representation of this Object
|
public static final int BEST_RATING
static final long serialVersionUID
public static final byte OVERALL_RATING_KEY
public static final byte ACTION_RATING_KEY
public static final byte FUN_RATING_KEY
public static final byte EROTIC_RATING_KEY
public static final byte TENSION_RATING_KEY
public static final byte ENTITLEMENT_RATING_KEY
public static final String COUNT
public Rating()
public Rating(String title)
title
- Title of the Program this rating is aboutpublic Rating(String title, byte[] values)
title
- Title of the Program this rating is aboutvalues
- Values for the Ratingpublic String getTitle()
public void setTitle(String string)
string
- Title of the Programpublic String toString()
public int getIntValue(int key)
key
- Possible Keys are FUN, EROTIC...public int getRatingId()
public int getRatingCount()
public int getGenre()
public int getOverallRating()
public int getActionRating()
public int getEntitlementRating()
public int getFunRating()
public int getTensionRating()
public int getEroticRating()
public void setOverallRating(int overall)
public void setActionRating(int action)
public void setEntitlementRating(int entitlement)
public void setFunRating(int fun)
public void setTensionRating(int tension)
public void setEroticRating(int erotic)
public void setUserCount(int userCountArg)
public void setGenre(int genreArg)
public void setOnlineID(int onlineIDArg)
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)