public class CocoMediaClient
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
CocoMediaClient.AuthListener
The listener for authentication.
|
static class |
CocoMediaClient.CommandId
An enum representing the possible commands of
sendCommand(Command, CommandStatusListener). |
static interface |
CocoMediaClient.CommandStatusListener<T extends CommandResponse<CocoMediaClient.CommandId>>
The listener for status updates of sent commands
sendCommand(Command, CommandStatusListener). |
static class |
CocoMediaClient.Configurator
The configuration builder used to initialize the SDK.
|
static class |
CocoMediaClient.CreateNetwork
The command for creating a network in the current user's id.
|
static class |
CocoMediaClient.CreateNetworkResponse
Response for
CocoMediaClient.CreateNetwork command. |
static class |
CocoMediaClient.DeleteNetwork
The command for deleting a network of the current user.
|
static class |
CocoMediaClient.DeleteNetworkResponse
Response for
CocoMediaClient.DeleteNetwork command. |
static class |
CocoMediaClient.GetAllNetworks
The command for getting the Networks of the current user.
|
static class |
CocoMediaClient.GetAllNetworksResponse
Response to the
CocoMediaClient.GetAllNetworks command. |
static class |
CocoMediaClient.GetUsers
The command for getting the users of a network.
|
static class |
CocoMediaClient.GetUsersResponse
Response for
CocoMediaClient.GetUsers command. |
static class |
CocoMediaClient.InviteExternalUser
Invite an external user into the specified network.
|
static class |
CocoMediaClient.InviteExternalUserResponse
Response for
CocoMediaClient.InviteExternalUser command. |
static class |
CocoMediaClient.InviteUser
Invite a user into the specified network.
|
static class |
CocoMediaClient.InviteUserResponse
Response for
CocoMediaClient.InviteUser command. |
static class |
CocoMediaClient.RemoveUser
Remove a user from the specified network.
|
static class |
CocoMediaClient.RemoveUserResponse
Response for
CocoMediaClient.RemoveUser command. |
| Modifier and Type | Method and Description |
|---|---|
static CocoMediaClient |
getInstance()
Get the singleton Object of
CocoMediaClient. |
<V extends CommandResponse<CocoMediaClient.CommandId>,U extends Command<CocoMediaClient.CommandId,V>> |
sendCommand(U command,
CocoMediaClient.CommandStatusListener<V> listener)
Send the commands specified by
CocoMediaClient.CommandId. |
void |
setTokens(java.lang.String tokens)
Set the access tokens which will be used in the upcoming api calls.
|
java.lang.String |
toString() |
public static CocoMediaClient getInstance()
CocoMediaClient.CocoMediaClient.Configurator.configure().public void setTokens(java.lang.String tokens)
tokens - The access token json which was gotten using login HTTP apis.public <V extends CommandResponse<CocoMediaClient.CommandId>,U extends Command<CocoMediaClient.CommandId,V>> void sendCommand(U command, CocoMediaClient.CommandStatusListener<V> listener)
CocoMediaClient.CommandId.V - The capture for CommandResponseU - The capture for Commandcommand - The command which will be executedlistener - The Listener which will be invoked with
the status after the command is executedpublic java.lang.String toString()
toString in class java.lang.Object