Package com.openmeet.shared.data.rating
Class Rating
java.lang.Object
com.openmeet.shared.data.rating.Rating
- All Implemented Interfaces:
IEntity
This class represents the Rating Entity.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the creation date of the Rating.intgetId()Returns the id of the Rating.intReturns the id of the meeter who is rated.intReturns the id of the meeter who created the Rating.booleanisType()Returns the type of the Rating.voidsetCreationDate(Timestamp creationDate) Sets the creation date of the Rating.voidsetId(int id) Sets the id of the Rating.voidsetMeeterRated(int meeterRated) Sets the id of the meeter who is rated.voidsetMeeterRater(int meeterRater) Sets the id of the meeter who created the Rating.voidsetType(boolean type) Sets the type of the Rating.Returns the Rating as an hashMap.Returns the Rating as an hashMap.toString()
-
Field Details
-
RATING
- See Also:
-
RATING_ID
- See Also:
-
RATING_MEETER_RATER
- See Also:
-
RATING_MEETER_RATED
- See Also:
-
RATING_TYPE
- See Also:
-
RATING_CREATION_DATE
- See Also:
-
-
Constructor Details
-
Rating
public Rating()
-
-
Method Details
-
toHashMap
Returns the Rating as an hashMap. -
toHashMap
Returns the Rating as an hashMap. -
toString
-
getId
public int getId()Returns the id of the Rating.- Returns:
- the id of the Rating.
-
setId
public void setId(int id) Sets the id of the Rating.- Parameters:
id- the id of the Rating.
-
getMeeterRater
public int getMeeterRater()Returns the id of the meeter who created the Rating.- Returns:
- the id of the meeter who created the Rating.
-
setMeeterRater
public void setMeeterRater(int meeterRater) Sets the id of the meeter who created the Rating.- Parameters:
meeterRater- the id of the meeter who created the Rating.
-
getMeeterRated
public int getMeeterRated()Returns the id of the meeter who is rated.- Returns:
- the id of the meeter who is rated.
-
setMeeterRated
public void setMeeterRated(int meeterRated) Sets the id of the meeter who is rated.- Parameters:
meeterRated- the id of the meeter who is rated.
-
isType
public boolean isType()Returns the type of the Rating.- Returns:
- the type of the Rating, true if the meeter is liked, false otherwise.
-
setType
public void setType(boolean type) Sets the type of the Rating.- Parameters:
type- the type of the Rating, true if the meeter is liked, false otherwise.
-
getCreationDate
Returns the creation date of the Rating.- Returns:
- the creation date of the Rating.
-
setCreationDate
Sets the creation date of the Rating.- Parameters:
creationDate- the creation date of the Rating.
-