IModelObjectpublic class CurrentlyPlaying extends AbstractModelObject
| Modifier and Type | Class | Description |
|---|---|---|
static class |
CurrentlyPlaying.Builder |
Builder class for building
CurrentlyPlaying instances. |
static class |
CurrentlyPlaying.JsonUtil |
JsonUtil class for building
CurrentlyPlaying instances. |
IModelObject.IJsonUtil<T>| Modifier and Type | Method | Description |
|---|---|---|
CurrentlyPlaying.Builder |
builder() |
Create a builder for building an instance of a model object.
|
boolean |
equals(Object obj) |
Helper method to compare two
CurrentlyPlaying objects. |
Context |
getContext() |
Get the context the track was played from.
|
Boolean |
getIs_playing() |
Check if something is played at the moment.
|
Track |
getItem() |
Get the currently played track.
|
Integer |
getProgress_ms() |
Get the progress of the current played track.
|
Long |
getTimestamp() |
Get the timestamp when the recieved data was fetched.
|
public Context getContext()
null.public Long getTimestamp()
public Integer getProgress_ms()
null.public Boolean getIs_playing()
public Track getItem()
null.public CurrentlyPlaying.Builder builder()
IModelObjectpublic boolean equals(Object obj)
CurrentlyPlaying objects. Both objects only have to contain the same track URI
to be equal. (eg. the same track object)equals in class Objectobj - Another CurrentlyPlaying object.Copyright © 2018. All rights reserved.