public class WebServiceCoordinator
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
WebServiceCoordinator.Listener
Monitors when the instance data is ready or there is an error using the WebServiceCoordinator
|
| Constructor and Description |
|---|
WebServiceCoordinator(android.content.Context context,
WebServiceCoordinator.Listener delegate)
Use this constructor to create a WebServiceCoordinator instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createCelebrityToken(java.lang.String celebrity_url)
Create the OpenTok token for the Celebrity role
|
void |
createFanToken(java.lang.String fan_url)
Create the OpenTok token for the Fan role
|
void |
createHostToken(java.lang.String host_url)
Create the OpenTok token for the Host role
|
void |
getEventsByAdmin()
Returns the events list filtering by Admin
|
void |
getInstanceById()
Returns the InstanceData filtering by ID
|
java.lang.String |
getUserId() |
java.lang.Boolean |
isConnected()
Whether the Session is connected or not.
|
public WebServiceCoordinator(android.content.Context context,
WebServiceCoordinator.Listener delegate)
context - The Android application context associated with this process.delegate - The WebServiceCoordinator delegatepublic java.lang.Boolean isConnected()
public void getInstanceById()
throws org.json.JSONException
org.json.JSONExceptionpublic void getEventsByAdmin()
throws org.json.JSONException
org.json.JSONExceptionpublic void createCelebrityToken(java.lang.String celebrity_url)
throws org.json.JSONException
org.json.JSONExceptionpublic void createHostToken(java.lang.String host_url)
throws org.json.JSONException
org.json.JSONExceptionpublic void createFanToken(java.lang.String fan_url)
throws org.json.JSONException
org.json.JSONExceptionpublic java.lang.String getUserId()