|
GData JavaScript Client 2.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--google.gdata.Rating
Describes a rating.
Defined in gdata.js
Field Summary | |
{string|undefined} |
average
Average rating. |
{string|undefined} |
max
Rating scale's maximum value. |
{string|undefined} |
min
Rating scale's minimum value. |
{string|undefined} |
numRaters
Number of ratings taken into account when computing the average value. |
{string|undefined} |
rel
Programmatic value that describes the aspect that's being rated, if not specified, the rating is an overall rating. |
{string|undefined} |
value
Rating value. |
<static> <final> {string} |
REL_OVERALL
Overall rating, higher values mean better ratings. |
<static> <final> {string} |
REL_PRICE
Price rating, higher values mean better ratings. |
<static> <final> {string} |
REL_QUALITY
Quality rating, higher values mean better ratings. |
Constructor Summary | |
google.gdata.Rating(<Object> opt_params)
Constructs a rating using an object parameter whose property names match the setter method to use for each property. |
Method Summary | |
number|undefined
|
getAverage()
Returns the average rating. |
number|undefined
|
getMax()
Returns the rating scale's maximum value. |
number|undefined
|
getMin()
Returns the rating scale's minimum value. |
number|undefined
|
getNumRaters()
Returns the number of ratings taken into account when computing the average value. |
string|undefined
|
getRel()
Returns the programmatic value that describes the aspect that's being rated, if not specified, the rating is an overall rating. |
number|undefined
|
getValue()
Returns the rating value. |
void
|
setAverage(<number|undefined> average)
Sets the average rating. |
void
|
setMax(<number|undefined> max)
Sets the rating scale's maximum value. |
void
|
setMin(<number|undefined> min)
Sets the rating scale's minimum value. |
void
|
setNumRaters(<number|undefined> numRaters)
Sets the number of ratings taken into account when computing the average value. |
void
|
setRel(<string|undefined> rel)
Sets the programmatic value that describes the aspect that's being rated, if not specified, the rating is an overall rating. |
void
|
setValue(<number|undefined> value)
Sets the rating value. |
Field Detail |
{string|undefined} average
{string|undefined} max
{string|undefined} min
{string|undefined} numRaters
{string|undefined} rel
{string|undefined} value
<static> <final> {string} REL_OVERALL
<static> <final> {string} REL_PRICE
<static> <final> {string} REL_QUALITY
Constructor Detail |
google.gdata.Rating(<Object> opt_params)
opt_params
- Optional parameters, each of which is used as the sole parameter to the associated setter method: average, max, min, numRaters, rel, and value.
Method Detail |
number|undefined getAverage()
number|undefined getMax()
number|undefined getMin()
number|undefined getNumRaters()
string|undefined getRel()
number|undefined getValue()
void setAverage(<number|undefined> average)
average
- Average rating or undefined for none.
void setMax(<number|undefined> max)
max
- Rating scale's maximum value or undefined for none.
void setMin(<number|undefined> min)
min
- Rating scale's minimum value or undefined for none.
void setNumRaters(<number|undefined> numRaters)
numRaters
- Number of ratings taken into account when computing the average value or undefined for none.
void setRel(<string|undefined> rel)
rel
- Programmatic value that describes the aspect that's being rated, if not specified, the rating is an overall rating or undefined for none.
void setValue(<number|undefined> value)
value
- Rating value or undefined for none.
|
GData JavaScript Client 2.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |