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

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

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

Service interface for broadcaster operations.


Nested Class Summary
static class WeNearClient.BroadcasterService.TPost
           
 
Constructor Summary
WeNearClient.BroadcasterService(WeNearClient client)
           
 
Method Summary
 void createPost(java.lang.String title, java.lang.String body, long lifetime, int[] interestIds)
          Creates a new post with the given title, body, lifetime (in seconds), and interest IDs.
 void expirePost(int postId)
          Forces the post having the specified ID to expire immediately regardless of its designated lifetime.
 WeNearClient.BroadcasterService.TPost getPost(int postId)
          Retrieves the post having the specified ID.
 WeNearClient.BroadcasterService.TPost[] getPosts()
          Retrieves all posts created by the logged-in broadcaster.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeNearClient.BroadcasterService

public WeNearClient.BroadcasterService(WeNearClient client)
Method Detail

createPost

public void createPost(java.lang.String title,
                       java.lang.String body,
                       long lifetime,
                       int[] interestIds)
                throws WeNearClient.UnknownErrorException,
                       WeNearClient.BadResponseException,
                       WeNearClient.BadRequestException,
                       WeNearClient.NoSuchClientException
Creates a new post with the given title, body, lifetime (in seconds), and interest IDs.

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

getPost

public WeNearClient.BroadcasterService.TPost getPost(int postId)
                                              throws WeNearClient.UnknownErrorException,
                                                     WeNearClient.BadResponseException,
                                                     WeNearClient.BadRequestException,
                                                     WeNearClient.NoSuchClientException,
                                                     WeNearClient.NoSuchPostException
Retrieves the post having the specified ID. The post has to had been created previously by the logged-in broadcaster.

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

getPosts

public WeNearClient.BroadcasterService.TPost[] getPosts()
                                                 throws WeNearClient.UnknownErrorException,
                                                        WeNearClient.BadResponseException,
                                                        WeNearClient.BadRequestException,
                                                        WeNearClient.NoSuchClientException
Retrieves all posts created by the logged-in broadcaster.

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

expirePost

public void expirePost(int postId)
                throws WeNearClient.UnknownErrorException,
                       WeNearClient.BadResponseException,
                       WeNearClient.BadRequestException,
                       WeNearClient.NoSuchClientException,
                       WeNearClient.NoSuchPostException
Forces the post having the specified ID to expire immediately regardless of its designated lifetime. The post has to had been created previously by the logged-in broadcaster.

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