implements Request
Request used by PlacesClient.isOpen(IsOpenRequest)
.
Nested Class Summary
class | IsOpenRequest.Builder | Builder for IsOpenRequest . |
Public Constructor Summary
Public Method Summary
static IsOpenRequest.Builder | |
static IsOpenRequest.Builder | |
static IsOpenRequest.Builder | |
static IsOpenRequest.Builder | |
abstract CancellationToken |
getCancellationToken()
Returns the
CancellationToken used by PlacesClient to cancel any queued
requests. |
abstract Place | |
abstract String |
getPlaceId()
Returns the
Place.getId() of the place for which isOpen is to be determined. |
abstract long |
getUtcTimeMillis()
Returns the milliseconds from 1970-01-01T00:00:00Z for when isOpen is to be determined.
|
static IsOpenRequest | |
static IsOpenRequest | |
static IsOpenRequest | |
static IsOpenRequest |
Inherited Method Summary
Public Constructors
public IsOpenRequest ()
Public Methods
public static IsOpenRequest.Builder builder (String placeId, long utcTimeMillis)
Returns an IsOpenRequest.Builder
.
Parameters
placeId | The Place.getId() of the place for which isOpen is to be determined. |
---|---|
utcTimeMillis | The milliseconds from 1970-01-01T00:00:00Z. |
public static IsOpenRequest.Builder builder (Place place)
Returns an IsOpenRequest.Builder
using the device's current time.
Parameters
place | The Place for which isOpen is to be determined. * @throws |
---|
Throws
IllegalArgumentException | if Place does not have a Place.getId()
associated with it.
|
---|
public static IsOpenRequest.Builder builder (Place place, long utcTimeMillis)
Returns an IsOpenRequest.Builder
.
Parameters
place | The Place for which isOpen is to be determined. |
---|---|
utcTimeMillis | The milliseconds from 1970-01-01T00:00:00Z. |
Throws
IllegalArgumentException | if Place does not have a Place.getId()
associated with it.
|
---|
public static IsOpenRequest.Builder builder (String placeId)
Returns an IsOpenRequest.Builder
using the device's current time.
Parameters
placeId | The Place.getId() of the place for which isOpen is to be determined.
|
---|
public abstract CancellationToken getCancellationToken ()
Returns the CancellationToken
used by PlacesClient
to cancel any queued
requests.
public abstract Place getPlace ()
Returns the Place
for which isOpen is to be determined.
Returns null if a placeId
was used to create the IsOpenRequest.
public abstract String getPlaceId ()
Returns the Place.getId()
of the place for which isOpen is to be determined.
Returns null if a place
was used to create the IsOpenRequest.
public abstract long getUtcTimeMillis ()
Returns the milliseconds from 1970-01-01T00:00:00Z for when isOpen is to be determined.
public static IsOpenRequest newInstance (Place place)
Returns an IsOpenRequest
using the device's current time.
Parameters
place | The Place for which isOpen is to be determined. * @throws |
---|
Throws
IllegalArgumentException | if Place does not have a Place.getId()
associated with it.
|
---|
public static IsOpenRequest newInstance (String placeId, long utcTimeMillis)
Returns an IsOpenRequest
.
Parameters
placeId | The Place.getId() of the place for which isOpen is to be determined. |
---|---|
utcTimeMillis | The milliseconds from 1970-01-01T00:00:00Z. |
public static IsOpenRequest newInstance (String placeId)
Returns an IsOpenRequest
using the device's current time.
Parameters
placeId | The Place.getId() of the place for which isOpen is to be determined.
|
---|
public static IsOpenRequest newInstance (Place place, long utcTimeMillis)
Returns an IsOpenRequest
.
Parameters
place | The Place for which isOpen is to be determined. |
---|---|
utcTimeMillis | The milliseconds from 1970-01-01T00:00:00Z. * @throws |
Throws
IllegalArgumentException | if Place does not have a Place.getId()
associated with it.
|
---|