eg.com.espace.wenear.client
Class WeNearClient.UserLocationService

java.lang.Object
  extended by 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.


Nested Class Summary
static class WeNearClient.UserLocationService.TGpsLocation
           
static class WeNearClient.UserLocationService.TGsmLocation
           
 
Constructor Summary
WeNearClient.UserLocationService(WeNearClient client)
           
 
Method Summary
 WeNearClient.UserLocationService.TGpsLocation getLastKnownLocation()
          Retrieves the logged-in user's last known location.
 WeNearClient.UserLocationService.TGpsLocation setGpsLocation(WeNearClient.UserLocationService.TGpsLocation location)
          Sets the current location of the logged-in user in GPS coordinates.
 WeNearClient.UserLocationService.TGpsLocation setGsmLocation(WeNearClient.UserLocationService.TGsmLocation location)
          Sets the currrent location of the logged-in user using GSM cell information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeNearClient.UserLocationService

public WeNearClient.UserLocationService(WeNearClient client)
Method Detail

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