Package com.alfresco.content.models
Class RatingBody
-
- All Implemented Interfaces:
@JsonClass(generateAdapter = true) public final class RatingBody
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumRatingBody.IdEnumThe rating scheme type. Possible values are likes and fiveStar. Values: LIKES, FIVESTAR
-
Field Summary
Fields Modifier and Type Field Description private RatingBody.IdEnumidprivate StringmyRating
-
Constructor Summary
Constructors Constructor Description RatingBody(RatingBody.IdEnum id, String myRating)
-
Method Summary
Modifier and Type Method Description final RatingBody.IdEnumgetId()The rating scheme type. final UnitsetId(@Json(name = "id") RatingBody.IdEnum id)The rating scheme type. final StringgetMyRating()The rating. final UnitsetMyRating(@Json(name = "myRating") String myRating)The rating. -
-
Constructor Detail
-
RatingBody
RatingBody(RatingBody.IdEnum id, String myRating)
-
-
Method Detail
-
getId
final RatingBody.IdEnum getId()
The rating scheme type. Possible values are likes and fiveStar.
-
setId
final Unit setId(@Json(name = "id") RatingBody.IdEnum id)
The rating scheme type. Possible values are likes and fiveStar.
-
getMyRating
final String getMyRating()
The rating. The type is specific to the rating scheme, boolean for the likes and an integer for the fiveStar
-
setMyRating
final Unit setMyRating(@Json(name = "myRating") String myRating)
The rating. The type is specific to the rating scheme, boolean for the likes and an integer for the fiveStar
-
-
-
-