public class Rating extends Object
| Constructor and Description |
|---|
Rating() |
| Modifier and Type | Method and Description |
|---|---|
double |
getAverageScore()
Calculate the score (min : 1 - max : 4).
|
double |
getAverageScoreRoundToHalf() |
String |
getExtendableResourceType() |
String |
getIdExtendableResource() |
int |
getIdRating() |
int |
getScoreNegativesVotes() |
int |
getScorePositifsVotes() |
double |
getScoreValue() |
int |
getVoteCount() |
void |
setExtendableResourceType(String strExtendableResourceType) |
void |
setIdExtendableResource(String strIdExtendableResource) |
void |
setIdRating(int nIdRating) |
void |
setScoreNegativesVotes(int nScoreNegativeVotes) |
void |
setScorePositifsVotes(int _nScorePositifVotes) |
void |
setScoreValue(double dScoreValue) |
void |
setVoteCount(int nVoteCount) |
public int getIdRating()
public void setIdRating(int nIdRating)
nIdRating - the nIdRating to setpublic String getIdExtendableResource()
public void setIdExtendableResource(String strIdExtendableResource)
strIdExtendableResource - the strIdExtendableResource to setpublic String getExtendableResourceType()
public void setExtendableResourceType(String strExtendableResourceType)
strExtendableResourceType - the extendableResourceType to setpublic int getVoteCount()
public void setVoteCount(int nVoteCount)
nVoteCount - the nVoteCount to setpublic double getScoreValue()
public void setScoreValue(double dScoreValue)
dScoreValue - the dScoreValue to setpublic int getScorePositifsVotes()
public void setScorePositifsVotes(int _nScorePositifVotes)
_nScorePositifVotes - public int getScoreNegativesVotes()
public void setScoreNegativesVotes(int nScoreNegativeVotes)
public double getAverageScore()
public double getAverageScoreRoundToHalf()
Copyright © 2022 City of Paris. All rights reserved.