|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttvraterplugin.Rating
public class Rating
Representation of a rating
all rating values are represented by integer values 0 to 5, where 0 means worst and 5 means best in the respective category
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
Rating()
Creates an empty rating |
|
Rating(String title)
Creates a empty Rating |
|
Rating(String title,
byte[] values)
Creates a Rating |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public Rating()
public Rating(String title)
title - Title of the Program this rating is about
public Rating(String title,
byte[] values)
title - Title of the Program this rating is aboutvalues - Values for the Rating| Method Detail |
|---|
public String getTitle()
public void setTitle(String string)
string - Title of the Programpublic String toString()
toString in class Objectpublic 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.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||