Class FindExtraRequest

java.lang.Object
com.dzidzi.dto.merge.AbstractFindRequest
com.dzidzi.dto.extra.FindExtraRequest

public class FindExtraRequest extends AbstractFindRequest
FindExtrasRequest represents the DTO request containing the objects used to filter extras.
  • Constructor Details

    • FindExtraRequest

      public FindExtraRequest()
  • Method Details

    • getExtraIds

      public List<UUID> getExtraIds()
    • getMinimumPrice

      public BigDecimal getMinimumPrice()
      The minimum price to filter on
    • getMaximumPrice

      public BigDecimal getMaximumPrice()
      The maximum price to filter on
    • getName

      public String getName()
      The name of the extra to filter on
    • getRating

      public Float getRating()
      The average rating of restaurants to filter on
    • getRestaurantId

      public UUID getRestaurantId()
      The restaurant id to filter on
    • getParentRestaurantId

      public UUID getParentRestaurantId()
      The parent restaurant id to filter on
    • getVisible

      public Boolean getVisible()
      A flag to filter extras on if they are visible to users or not
    • getDistance

      public Integer getDistance()
      The distance to filter extra on. This is only taken into action when a user with UserRole.USER is logged in.
    • getLatitude

      public double getLatitude()
      The latitude
    • getLongitude

      public double getLongitude()
      The longitude
    • setMinimumPrice

      public void setMinimumPrice(BigDecimal minimumPrice)
      The minimum price to filter on
    • setMaximumPrice

      public void setMaximumPrice(BigDecimal maximumPrice)
      The maximum price to filter on
    • setName

      public void setName(String name)
      The name of the extra to filter on
    • setRating

      public void setRating(Float rating)
      The average rating of restaurants to filter on
    • setRestaurantId

      public void setRestaurantId(UUID restaurantId)
      The restaurant id to filter on
    • setParentRestaurantId

      public void setParentRestaurantId(UUID parentRestaurantId)
      The parent restaurant id to filter on
    • setVisible

      public void setVisible(Boolean visible)
      A flag to filter extras on if they are visible to users or not
    • setDistance

      public void setDistance(Integer distance)
      The distance to filter extra on. This is only taken into action when a user with UserRole.USER is logged in.
    • setLatitude

      public void setLatitude(double latitude)
      The latitude
    • setLongitude

      public void setLongitude(double longitude)
      The longitude
    • setExtraIds

      public void setExtraIds(List<UUID> extraIds)
      The extra ids to filter on
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object