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

java.lang.Object
  extended by eg.com.espace.wenear.client.WeNearClient.AnnouncerService
Enclosing class:
WeNearClient

public static class WeNearClient.AnnouncerService
extends java.lang.Object

Service interface for operations on announcer accounts.


Nested Class Summary
static class WeNearClient.AnnouncerService.TAnnouncer
           
static class WeNearClient.AnnouncerService.TRegion
           
 
Constructor Summary
WeNearClient.AnnouncerService(WeNearClient client)
           
 
Method Summary
 void createAnnouncer(java.lang.String login, java.lang.String password, java.lang.String fullName, java.lang.String email, java.lang.String secretQuestion, java.lang.String secretQuestionAnswer)
          Creates a new announcer account.
 WeNearClient.AnnouncerService.TAnnouncer getAnnouncer()
          Retrieves the announcer object associated with the logged-in announcer.
 WeNearClient.AnnouncerService.TRegion[] getAnnouncerRegions()
          Retrieves the regions spanned by the logged-in announcer.
 WeNearClient.AnnouncerService.TAnnouncer[] getAnnouncers(int page)
          Retrieves all announcer objects within the specified page.
 void setAnnouncerRegions(WeNearClient.AnnouncerService.TRegion[] regions)
          Sets the regions spanned by the logged-in announcer.
 void updateAnnouncer(java.lang.String oldPassword, java.lang.String newPassword, java.lang.String fullName, java.lang.String email)
          Updates the account information of the logged-in announcer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeNearClient.AnnouncerService

public WeNearClient.AnnouncerService(WeNearClient client)
Method Detail

getAnnouncer

public WeNearClient.AnnouncerService.TAnnouncer getAnnouncer()
                                                      throws WeNearClient.UnknownErrorException,
                                                             WeNearClient.BadResponseException,
                                                             WeNearClient.BadRequestException,
                                                             WeNearClient.NoSuchClientException
Retrieves the announcer object associated with the logged-in announcer.

Throws:
WeNearClient.UnknownErrorException
WeNearClient.BadResponseException
WeNearClient.BadRequestException
WeNearClient.NoSuchClientException

getAnnouncers

public WeNearClient.AnnouncerService.TAnnouncer[] getAnnouncers(int page)
                                                         throws WeNearClient.UnknownErrorException,
                                                                WeNearClient.BadResponseException,
                                                                WeNearClient.BadRequestException
Retrieves all announcer objects within the specified page. Requires administrator privilege.

Throws:
WeNearClient.UnknownErrorException
WeNearClient.BadResponseException
WeNearClient.BadRequestException

createAnnouncer

public void createAnnouncer(java.lang.String login,
                            java.lang.String password,
                            java.lang.String fullName,
                            java.lang.String email,
                            java.lang.String secretQuestion,
                            java.lang.String secretQuestionAnswer)
                     throws WeNearClient.UnknownErrorException,
                            WeNearClient.BadResponseException,
                            WeNearClient.BadRequestException,
                            WeNearClient.DuplicateNameException
Creates a new announcer account.

Throws:
WeNearClient.UnknownErrorException
WeNearClient.BadResponseException
WeNearClient.BadRequestException
WeNearClient.DuplicateNameException

updateAnnouncer

public void updateAnnouncer(java.lang.String oldPassword,
                            java.lang.String newPassword,
                            java.lang.String fullName,
                            java.lang.String email)
                     throws WeNearClient.UnknownErrorException,
                            WeNearClient.BadResponseException,
                            WeNearClient.BadRequestException,
                            WeNearClient.NoSuchClientException,
                            WeNearClient.NotAllowedException
Updates the account information of the logged-in announcer.

Throws:
WeNearClient.UnknownErrorException
WeNearClient.BadResponseException
WeNearClient.BadRequestException
WeNearClient.NoSuchClientException
WeNearClient.NotAllowedException

getAnnouncerRegions

public WeNearClient.AnnouncerService.TRegion[] getAnnouncerRegions()
                                                            throws WeNearClient.UnknownErrorException,
                                                                   WeNearClient.BadResponseException,
                                                                   WeNearClient.BadRequestException,
                                                                   WeNearClient.NoSuchClientException
Retrieves the regions spanned by the logged-in announcer.

Throws:
WeNearClient.UnknownErrorException
WeNearClient.BadResponseException
WeNearClient.BadRequestException
WeNearClient.NoSuchClientException

setAnnouncerRegions

public void setAnnouncerRegions(WeNearClient.AnnouncerService.TRegion[] regions)
                         throws WeNearClient.UnknownErrorException,
                                WeNearClient.BadResponseException,
                                WeNearClient.BadRequestException,
                                WeNearClient.NoSuchClientException,
                                WeNearClient.InvalidArgumentsException
Sets the regions spanned by the logged-in announcer.

Throws:
WeNearClient.UnknownErrorException
WeNearClient.BadResponseException
WeNearClient.BadRequestException
WeNearClient.NoSuchClientException
WeNearClient.InvalidArgumentsException