eg.com.espace.wenear.client
Class WeNearClient.UserLocationService
java.lang.Object
eg.com.espace.wenear.client.WeNearClient.UserLocationService
- Enclosing class:
- WeNearClient
public static class WeNearClient.UserLocationService
- extends java.lang.Object
Service interface for managing user location information.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WeNearClient.UserLocationService
public WeNearClient.UserLocationService(WeNearClient client)
getLastKnownLocation
public WeNearClient.UserLocationService.TGpsLocation getLastKnownLocation()
throws WeNearClient.UnknownErrorException,
WeNearClient.BadResponseException,
WeNearClient.BadRequestException,
WeNearClient.NoSuchClientException
- Retrieves the logged-in user's last known location.
- Throws:
WeNearClient.UnknownErrorException
WeNearClient.BadResponseException
WeNearClient.BadRequestException
WeNearClient.NoSuchClientException
setGpsLocation
public WeNearClient.UserLocationService.TGpsLocation setGpsLocation(WeNearClient.UserLocationService.TGpsLocation location)
throws WeNearClient.UnknownErrorException,
WeNearClient.BadResponseException,
WeNearClient.BadRequestException,
WeNearClient.NoSuchClientException
- Sets the current location of the logged-in user in GPS coordinates. (The return value can be ignored).
- Throws:
WeNearClient.UnknownErrorException
WeNearClient.BadResponseException
WeNearClient.BadRequestException
WeNearClient.NoSuchClientException
setGsmLocation
public WeNearClient.UserLocationService.TGpsLocation setGsmLocation(WeNearClient.UserLocationService.TGsmLocation location)
throws WeNearClient.UnknownErrorException,
WeNearClient.BadResponseException,
WeNearClient.BadRequestException,
WeNearClient.NoSuchClientException,
WeNearClient.DataConversionErrorException
- Sets the currrent location of the logged-in user using GSM cell information. The approximate GPS location is calculated and returned.
- Throws:
WeNearClient.UnknownErrorException
WeNearClient.BadResponseException
WeNearClient.BadRequestException
WeNearClient.NoSuchClientException
WeNearClient.DataConversionErrorException