Package com.dzidzi.dto.restaurant
Class AddRestaurantRequest
java.lang.Object
com.dzidzi.dto.restaurant.AddRestaurantRequest
AddRestaurantRequest represents the DTO request containing the objects used to create a new restaurant.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAddRestaurantRequest(AddAddressRequest address, String name, String contact, String contact1, org.springframework.web.multipart.MultipartFile avatar, org.springframework.web.multipart.MultipartFile backgroundImage, String bio, String newPassword, String repeatPass, String username) Creates a newAddRestaurantRequestinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic AddRestaurantRequest.Builderbuilder()The address of the restaurant.org.springframework.web.multipart.MultipartFileThe profile image of the restaurantorg.springframework.web.multipart.MultipartFileThe background image of the restaurantgetBio()The restaurants bioThe contact of the restaurantThe second contact of the restaurant if neededgetName()The name of the restaurantThe new password to use.The same password typed in newPassThe new username to use for your accountvoidsetAddress(AddAddressRequest address) The address of the restaurant.voidsetAvatar(org.springframework.web.multipart.MultipartFile avatar) The profile image of the restaurantvoidsetBackgroundImage(org.springframework.web.multipart.MultipartFile backgroundImage) The background image of the restaurantvoidsetContact(String contact) The contact of the restaurantvoidsetContact1(String contact1) The second contact of the restaurant if neededvoidThe name of the restaurantvoidsetNewPassword(String newPassword) The new password to use.voidsetRepeatPass(String repeatPass) The same password typed in newPassvoidsetUsername(String username) The new username to use for your account
-
Constructor Details
-
AddRestaurantRequest
public AddRestaurantRequest() -
AddRestaurantRequest
@ConstructorProperties({"address","name","contact","contact1","avatar","backgroundImage","bio","newPassword","repeatPass","username"}) public AddRestaurantRequest(AddAddressRequest address, String name, String contact, String contact1, org.springframework.web.multipart.MultipartFile avatar, org.springframework.web.multipart.MultipartFile backgroundImage, String bio, String newPassword, String repeatPass, String username) Creates a newAddRestaurantRequestinstance.- Parameters:
address- The address of the restaurant.AddAddressRequestname- The name of the restaurantcontact- The contact of the restaurantcontact1- The second contact of the restaurant if neededavatar- The profile image of the restaurantbackgroundImage- The background image of the restaurantbio- The restaurants bionewPassword- The new password to use. Password should contain lowercase, uppercase, number, special character and at least 12 characters.repeatPass- The same password typed in newPassusername- The new username to use for your account
-
-
Method Details
-
builder
-
getAddress
The address of the restaurant.AddAddressRequest -
getName
The name of the restaurant -
getContact
The contact of the restaurant -
getContact1
The second contact of the restaurant if needed -
getAvatar
public org.springframework.web.multipart.MultipartFile getAvatar()The profile image of the restaurant -
getBackgroundImage
public org.springframework.web.multipart.MultipartFile getBackgroundImage()The background image of the restaurant -
getBio
The restaurants bio -
getNewPassword
The new password to use. Password should contain lowercase, uppercase, number, special character and at least 12 characters. -
getRepeatPass
The same password typed in newPass -
getUsername
The new username to use for your account -
setAddress
The address of the restaurant.AddAddressRequest -
setName
The name of the restaurant -
setContact
The contact of the restaurant -
setContact1
The second contact of the restaurant if needed -
setAvatar
public void setAvatar(org.springframework.web.multipart.MultipartFile avatar) The profile image of the restaurant -
setBackgroundImage
public void setBackgroundImage(org.springframework.web.multipart.MultipartFile backgroundImage) The background image of the restaurant -
setNewPassword
The new password to use. Password should contain lowercase, uppercase, number, special character and at least 12 characters. -
setRepeatPass
The same password typed in newPass -
setUsername
The new username to use for your account
-