org.stanwood.media.model
Class Rating

java.lang.Object
  extended by org.stanwood.media.model.Rating
All Implemented Interfaces:
java.io.Serializable

public class Rating
extends java.lang.Object
implements java.io.Serializable

Used to store information on video ratings

See Also:
Serialized Form

Constructor Summary
Rating(float rating, int numberOfVotes)
          The constructor used to create a instance of the rating class
 
Method Summary
 int getNumberOfVotes()
          Used to get the number of votes the thing been rated had
 float getRating()
          Used to get the rating value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rating

public Rating(float rating,
              int numberOfVotes)
The constructor used to create a instance of the rating class

Parameters:
rating - The value of the rating
numberOfVotes - the number of votes the thing been rated had
Method Detail

getRating

public float getRating()
Used to get the rating value

Returns:
the rating value

getNumberOfVotes

public int getNumberOfVotes()
Used to get the number of votes the thing been rated had

Returns:
the number of votes the thing been rated had