com.google.gdata.data.youtube
Class YtRating
java.lang.Object
com.google.gdata.data.AbstractExtension
com.google.gdata.data.youtube.YtRating
- All Implemented Interfaces:
- Extension
public class YtRating
- extends AbstractExtension
Object representation for the yt:rating tag.
Nested Class Summary |
static class |
YtRating.Value
Value of this rating element. |
Constructor Summary |
YtRating()
Creates an empty tag. |
YtRating(int numLikes,
int numDislikes)
Creates a rating tag with the given attributes. |
YtRating(java.lang.String value)
Creates a rating tag with the given value. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
YtRating
public YtRating()
- Creates an empty tag.
YtRating
public YtRating(int numLikes,
int numDislikes)
- Creates a rating tag with the given attributes.
- Parameters:
numLikes
- number of like votes.numDislikes
- number of dislike votes.
YtRating
public YtRating(java.lang.String value)
- Creates a rating tag with the given value.
- Parameters:
value
- rating value, one of YtRating.Value
.
getNumLikes
public int getNumLikes()
- Returns:
- the numLikes
setNumLikes
public void setNumLikes(int numLikes)
- Parameters:
numLikes
- the numLikes to set
getNumDislikes
public int getNumDislikes()
- Returns:
- the numDislikes
setNumDislikes
public void setNumDislikes(int numDislikes)
- Parameters:
numDislikes
- the numDislikes to set
getValue
public java.lang.String getValue()
- Returns:
- the value
setValue
public void setValue(java.lang.String value)
- Parameters:
value
- the value to set, one of YtRating.Value
.