Package com.dzidzi.dto.customerReview
Class CustomerReview
java.lang.Object
com.dzidzi.dto.merge.EntityId
com.dzidzi.dto.customerReview.CustomerReviewEntityApi
com.dzidzi.dto.customerReview.CustomerReview
Represent a customer review of the Api.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCustomerReview(UUID id, int rating, RestaurantEntityApi restaurant, EntityComposition user, EntityComposition courier, String comment, long createdOn) -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomerReview.Builderbuilder()The comment givenTheCourierthe review was made forlongThe date the review was created on, inTheRestaurantthe review was made for.getUser()TheUserwho made the reviewvoidsetCourier(EntityComposition courier) TheCourierthe review was made forvoidsetRestaurant(RestaurantEntityApi restaurant) TheRestaurantthe review was made for.voidsetUser(EntityComposition user) TheUserwho made the reviewMethods inherited from class com.dzidzi.dto.customerReview.CustomerReviewEntityApi
getRating
-
Constructor Details
-
CustomerReview
public CustomerReview(UUID id, int rating, RestaurantEntityApi restaurant, EntityComposition user, EntityComposition courier, String comment, long createdOn)
-
-
Method Details
-
builder
-
getRestaurant
TheRestaurantthe review was made for. -
getCreatedOn
public long getCreatedOn()The date the review was created on, in -
getUser
TheUserwho made the review -
getCourier
TheCourierthe review was made for -
getComment
The comment given -
setRestaurant
TheRestaurantthe review was made for. -
setUser
TheUserwho made the review -
setCourier
TheCourierthe review was made for
-