Package org.localify.user.dto
Class UserCityPatchRequest
java.lang.Object
org.localify.user.dto.UserCityPatchRequest
Represents a request to patch a user's city.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the custom end date.Gets the custom start date.Gets the radius.Gets whether the city is selected.Gets the time frame.voidsetCustomEndDate(Optional<Instant> customEndDate) Sets the custom end date.voidsetCustomStartDate(Optional<Instant> customStartDate) Sets the custom start date.voidSets the radius.voidsetSelected(Optional<Boolean> selected) Sets whether the city is selected.voidsetTimeFrame(Optional<CitySelectionTimeFrame> timeFrame) Sets the time frame.
-
Constructor Details
-
UserCityPatchRequest
public UserCityPatchRequest()
-
-
Method Details
-
getCustomStartDate
Gets the custom start date.- Returns:
- The custom start date.
-
setCustomStartDate
Sets the custom start date.- Parameters:
customStartDate- The custom start date.
-
getCustomEndDate
Gets the custom end date.- Returns:
- The custom end date.
-
setCustomEndDate
Sets the custom end date.- Parameters:
customEndDate- The custom end date.
-
getTimeFrame
Gets the time frame.- Returns:
- The time frame.
-
setTimeFrame
Sets the time frame.- Parameters:
timeFrame- The time frame.
-
getRadius
Gets the radius.- Returns:
- The radius.
-
setRadius
Sets the radius.- Parameters:
radius- The radius.
-
getSelected
Gets whether the city is selected.- Returns:
- Whether the city is selected.
-
setSelected
Sets whether the city is selected.- Parameters:
selected- Whether the city is selected.
-