@ConfigurationProperties(value="twitter.geo") @Validated public class TwitterGeoFunctionProperties extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TwitterGeoFunctionProperties.GeoType |
static class |
TwitterGeoFunctionProperties.Location |
static class |
TwitterGeoFunctionProperties.Search |
Constructor and Description |
---|
TwitterGeoFunctionProperties() |
Modifier and Type | Method and Description |
---|---|
String |
getAccuracy() |
String |
getGranularity() |
TwitterGeoFunctionProperties.Location |
getLocation() |
int |
getMaxResults() |
TwitterGeoFunctionProperties.Search |
getSearch() |
TwitterGeoFunctionProperties.GeoType |
getType() |
@AssertTrue(message="Either the IP or the Location must be set") boolean |
isAtLeastOne() |
@AssertTrue(message="The IP parameter is applicable only for \'Search\' GeoType") boolean |
isIpUsedWithSearchGeoType() |
void |
setAccuracy(String accuracy) |
void |
setGranularity(String granularity) |
void |
setLocation(TwitterGeoFunctionProperties.Location location) |
void |
setMaxResults(int maxResults) |
void |
setSearch(TwitterGeoFunctionProperties.Search search) |
void |
setType(TwitterGeoFunctionProperties.GeoType type) |
public TwitterGeoFunctionProperties.Search getSearch()
public void setSearch(TwitterGeoFunctionProperties.Search search)
public TwitterGeoFunctionProperties.GeoType getType()
public void setType(TwitterGeoFunctionProperties.GeoType type)
public TwitterGeoFunctionProperties.Location getLocation()
public void setLocation(TwitterGeoFunctionProperties.Location location)
public int getMaxResults()
public void setMaxResults(int maxResults)
public String getAccuracy()
public void setAccuracy(String accuracy)
public String getGranularity()
public void setGranularity(String granularity)
@AssertTrue(message="Either the IP or the Location must be set") public @AssertTrue(message="Either the IP or the Location must be set") boolean isAtLeastOne()
@AssertTrue(message="The IP parameter is applicable only for \'Search\' GeoType") public @AssertTrue(message="The IP parameter is applicable only for \'Search\' GeoType") boolean isIpUsedWithSearchGeoType()
Copyright © 2022. All rights reserved.