Package com.dzidzi.dto.restaurant
Class ChangeRestaurantRequest
java.lang.Object
com.dzidzi.dto.restaurant.ChangeRestaurantRequest
ChangeRestaurantRequest represents the DTO request containing the objects used to update an existing restaurant.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionChangeRestaurantRequest(ChangeAddressRequest address, String name, String contact, String contact1, org.springframework.web.multipart.MultipartFile avatar, org.springframework.web.multipart.MultipartFile backgroundImage, String bio, String newPassword, String password, String username) Creates a newChangeRestaurantRequestinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The new address of the restaurant.org.springframework.web.multipart.MultipartFileThe new profile image of the restaurantorg.springframework.web.multipart.MultipartFileThe new background image of the restaurantgetBio()The new restaurants bioThe new contact of the restaurantThe new second contact of the restaurant if neededgetName()The new name of the restaurantThe new password to set.The existing password.The new username to use.voidsetAvatar(org.springframework.web.multipart.MultipartFile avatar) The new profile image of the restaurantvoidsetBackgroundImage(org.springframework.web.multipart.MultipartFile backgroundImage) The new background image of the restaurant
-
Constructor Details
-
ChangeRestaurantRequest
public ChangeRestaurantRequest() -
ChangeRestaurantRequest
@ConstructorProperties({"address","name","contact","contact1","avatar","backgroundImage","bio","newPassword","password","username"}) public ChangeRestaurantRequest(ChangeAddressRequest address, String name, String contact, String contact1, org.springframework.web.multipart.MultipartFile avatar, org.springframework.web.multipart.MultipartFile backgroundImage, String bio, String newPassword, String password, String username) Creates a newChangeRestaurantRequestinstance.- Parameters:
address- The new address of the restaurant.ChangeAddressRequestname- The new name of the restaurantcontact- The new contact of the restaurantcontact1- The new second contact of the restaurant if neededavatar- The new profile image of the restaurantbackgroundImage- The new background image of the restaurantbio- The new restaurants bionewPassword- The new password to set.password- The existing password.username- The new username to use.
-
-
Method Details
-
builder
-
getAddress
The new address of the restaurant.ChangeAddressRequest -
getName
The new name of the restaurant -
getContact
The new contact of the restaurant -
getContact1
The new second contact of the restaurant if needed -
getAvatar
public org.springframework.web.multipart.MultipartFile getAvatar()The new profile image of the restaurant -
getBackgroundImage
public org.springframework.web.multipart.MultipartFile getBackgroundImage()The new background image of the restaurant -
getBio
The new restaurants bio -
getNewPassword
The new password to set. -
getPassword
The existing password. -
getUsername
The new username to use. -
setAvatar
public void setAvatar(org.springframework.web.multipart.MultipartFile avatar) The new profile image of the restaurant -
setBackgroundImage
public void setBackgroundImage(org.springframework.web.multipart.MultipartFile backgroundImage) The new background image of the restaurant
-