Package com.dzidzi.dto.customerReview
Class AddCustomerReviewRequest
java.lang.Object
com.dzidzi.dto.customerReview.AddCustomerReviewRequest
AddCustomerReviewRequest represents the DTO request containing the objects used to create a new review.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAddCustomerReviewRequest(UUID restaurant, UUID courier, Integer rating, String comment) Creates a newAddCustomerReviewRequestinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The comment you'd like to addThe id of the courier that the user wants to reviewThe rating for the restaurant/courierThe id of the restaurant that the user wants to review
-
Constructor Details
-
AddCustomerReviewRequest
public AddCustomerReviewRequest() -
AddCustomerReviewRequest
@ConstructorProperties({"restaurant","courier","rating","comment"}) public AddCustomerReviewRequest(UUID restaurant, UUID courier, Integer rating, String comment) Creates a newAddCustomerReviewRequestinstance.- Parameters:
restaurant- The id of the restaurant that the user wants to reviewcourier- The id of the courier that the user wants to reviewrating- The rating for the restaurant/couriercomment- The comment you'd like to add
-
-
Method Details
-
builder
-
getRestaurant
The id of the restaurant that the user wants to review -
getCourier
The id of the courier that the user wants to review -
getRating
The rating for the restaurant/courier -
getComment
The comment you'd like to add
-