public class Mirror extends AbstractGoogleJsonClient
API for interacting with Glass users via the timeline.
For more information about this service, see the API Documentation
This service uses MirrorRequestInitializer to initialize global parameters via its
Mirror.Builder.
| Modifier and Type | Class and Description |
|---|---|
static class |
Mirror.Builder
Builder for
Mirror. |
class |
Mirror.Contacts
The "contacts" collection of methods.
|
class |
Mirror.Locations
The "locations" collection of methods.
|
class |
Mirror.Subscriptions
The "subscriptions" collection of methods.
|
class |
Mirror.Timeline
The "timeline" collection of methods.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_BASE_URL
The default encoded base URL of the service.
|
static String |
DEFAULT_ROOT_URL
The default encoded root URL of the service.
|
static String |
DEFAULT_SERVICE_PATH
The default encoded service path of the service.
|
| Constructor and Description |
|---|
Mirror(HttpTransport transport,
JsonFactory jsonFactory,
HttpRequestInitializer httpRequestInitializer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Mirror.Contacts |
contacts()
An accessor for creating requests from the Contacts collection.
|
protected void |
initialize(AbstractGoogleClientRequest<?> httpClientRequest) |
Mirror.Locations |
locations()
An accessor for creating requests from the Locations collection.
|
Mirror.Subscriptions |
subscriptions()
An accessor for creating requests from the Subscriptions collection.
|
Mirror.Timeline |
timeline()
An accessor for creating requests from the Timeline collection.
|
getJsonFactory, getObjectParserbatch, batch, getApplicationName, getBaseUrl, getGoogleClientRequestInitializer, getRequestFactory, getRootUrl, getServicePath, getSuppressPatternChecks, getSuppressRequiredParameterCheckspublic static final String DEFAULT_ROOT_URL
public static final String DEFAULT_SERVICE_PATH
public static final String DEFAULT_BASE_URL
public Mirror(HttpTransport transport, JsonFactory jsonFactory, HttpRequestInitializer httpRequestInitializer)
Use Mirror.Builder if you need to specify any of the optional parameters.
transport - HTTP transport, which should normally be:
com.google.api.client.extensions.appengine.http.UrlFetchTransportnewCompatibleTransport from
com.google.api.client.extensions.android.http.AndroidHttpGoogleNetHttpTransport
jsonFactory - JSON factory, which may be:
com.google.api.client.json.jackson2.JacksonFactorycom.google.api.client.json.gson.GsonFactorycom.google.api.client.extensions.android.json.AndroidJsonFactoryhttpRequestInitializer - HTTP request initializer or null for noneprotected void initialize(AbstractGoogleClientRequest<?> httpClientRequest) throws IOException
initialize in class AbstractGoogleClientIOExceptionpublic Mirror.Contacts contacts()
The typical use is:
Mirror mirror = new Mirror(...);Mirror.Contacts.List request = mirror.contacts().list(parameters ...)
public Mirror.Locations locations()
The typical use is:
Mirror mirror = new Mirror(...);Mirror.Locations.List request = mirror.locations().list(parameters ...)
public Mirror.Subscriptions subscriptions()
The typical use is:
Mirror mirror = new Mirror(...);Mirror.Subscriptions.List request = mirror.subscriptions().list(parameters ...)
public Mirror.Timeline timeline()
The typical use is:
Mirror mirror = new Mirror(...);Mirror.Timeline.List request = mirror.timeline().list(parameters ...)