Class ChangeRestaurantRequest

java.lang.Object
com.dzidzi.dto.restaurant.ChangeRestaurantRequest

public class ChangeRestaurantRequest extends Object
ChangeRestaurantRequest represents the DTO request containing the objects used to update an existing 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 new ChangeRestaurantRequest instance.
      Parameters:
      address - The new address of the restaurant. ChangeAddressRequest
      name - The new name of the restaurant
      contact - The new contact of the restaurant
      contact1 - The new second contact of the restaurant if needed
      avatar - The new profile image of the restaurant
      backgroundImage - The new background image of the restaurant
      bio - The new restaurants bio
      newPassword - The new password to set.
      password - The existing password.
      username - The new username to use.
  • Method Details

    • builder

      public static ChangeRestaurantRequest.Builder builder()
    • getAddress

      public ChangeAddressRequest getAddress()
      The new address of the restaurant. ChangeAddressRequest
    • getName

      public String getName()
      The new name of the restaurant
    • getContact

      public String getContact()
      The new contact of the restaurant
    • getContact1

      public String 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

      public String getBio()
      The new restaurants bio
    • getNewPassword

      public String getNewPassword()
      The new password to set.
    • getPassword

      public String getPassword()
      The existing password.
    • getUsername

      public String 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