@Immutable @LevelUpApi(contract=PUBLIC) public final class LocationRequestFactory extends AbstractRequestFactory
Location
related web service endpoints.Constructor and Description |
---|
LocationRequestFactory(Context context) |
Modifier and Type | Method and Description |
---|---|
AbstractRequest |
buildGetAppLocationsListRequest(long appId,
Location location)
Deprecated.
|
AbstractRequest |
buildGetLocationDetailsRequest(long locationWebServiceId) |
AbstractRequest |
buildGetLocationImageRequest(Context context,
long locationWebServiceId) |
getAccessTokenRetriever, getContext
public LocationRequestFactory(Context context)
context
- the Application context.@Deprecated public AbstractRequest buildGetAppLocationsListRequest(long appId, Location location)
appId
- the ID of the App on the web service.location
- the location of the user. Used to sort the returned locations by distance.public AbstractRequest buildGetLocationDetailsRequest(long locationWebServiceId)
locationWebServiceId
- the ID of the Location
on
the web service.AbstractRequest
that represents a request to the web service to get the
details of the Location
with the ID passed.public AbstractRequest buildGetLocationImageRequest(Context context, long locationWebServiceId)
context
- the Application context.locationWebServiceId
- the web service ID of the
Location
to get the image for.AbstractRequest
that represents a request to the web service to get the
image for a Location
with the web service ID
passed.