TV-Browser 2.7.5 API

tvraterplugin
Class Rating

java.lang.Object
  extended by tvraterplugin.Rating
All Implemented Interfaces:
Serializable

public class Rating
extends Object
implements Serializable

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

Author:
bodo tasche
See Also:
Serialized Form

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

BEST_RATING

public static final int BEST_RATING
See Also:
Constant Field Values

serialVersionUID

static final long serialVersionUID
Used to serialize this Object

See Also:
Constant Field Values

OVERALL_RATING_KEY

public static final byte OVERALL_RATING_KEY
overall rating

See Also:
Constant Field Values

ACTION_RATING_KEY

public static final byte ACTION_RATING_KEY
action rating

See Also:
Constant Field Values

FUN_RATING_KEY

public static final byte FUN_RATING_KEY
fun rating

See Also:
Constant Field Values

EROTIC_RATING_KEY

public static final byte EROTIC_RATING_KEY
erotic rating

See Also:
Constant Field Values

TENSION_RATING_KEY

public static final byte TENSION_RATING_KEY
tension rating

See Also:
Constant Field Values

ENTITLEMENT_RATING_KEY

public static final byte ENTITLEMENT_RATING_KEY
entitlement rating

See Also:
Constant Field Values

COUNT

public static final String COUNT
Deprecated. 
user count of online rating

See Also:
Constant Field Values
Constructor Detail

Rating

public Rating()
Creates an empty rating


Rating

public Rating(String title)
Creates a empty Rating

Parameters:
title - Title of the Program this rating is about

Rating

public Rating(String title,
              byte[] values)
Creates a Rating

Parameters:
title - Title of the Program this rating is about
values - Values for the Rating
Method Detail

getTitle

public String getTitle()
Gets the Title

Returns:
title

setTitle

public void setTitle(String string)
Sets the Title

Parameters:
string - Title of the Program

toString

public String toString()
Returns a String-Representation of this Object

Overrides:
toString in class Object

getIntValue

public int getIntValue(int key)
Gets an Int-Value from this Rating

Parameters:
key - Possible Keys are FUN, EROTIC...
Returns:
Int-Value

getRatingId

public int getRatingId()

getRatingCount

public int getRatingCount()

getGenre

public int getGenre()

getOverallRating

public int getOverallRating()

getActionRating

public int getActionRating()

getEntitlementRating

public int getEntitlementRating()

getFunRating

public int getFunRating()

getTensionRating

public int getTensionRating()

getEroticRating

public int getEroticRating()

setOverallRating

public void setOverallRating(int overall)

setActionRating

public void setActionRating(int action)

setEntitlementRating

public void setEntitlementRating(int entitlement)

setFunRating

public void setFunRating(int fun)

setTensionRating

public void setTensionRating(int tension)

setEroticRating

public void setEroticRating(int erotic)

setUserCount

public void setUserCount(int userCountArg)

setGenre

public void setGenre(int genreArg)

setOnlineID

public void setOnlineID(int onlineIDArg)

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)