Class Context
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject
se.michaelthelin.spotify.model_objects.specification.Context
- All Implemented Interfaces:
Serializable
,IModelObject
Retrieve information about
Context objects by building instances from this class. Context objects contain information from where a
specific track has been played by a user.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder class for buildingContext
instances.static final class
JsonUtil class for buildingContext
instances.Nested classes/interfaces inherited from interface se.michaelthelin.spotify.model_objects.IModelObject
IModelObject.IJsonUtil<T>
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder for building an instance of a model object.boolean
Get the external URLs of the context.getHref()
Get a link to the Spotify Web API endpoint providing full details of the track.getType()
Get the model object type of the context.getUri()
Get the Spotify URI for the context.int
hashCode()
toString()
Returns a String representation of this model object in the style:
-
Method Details
-
getType
Get the model object type of the context.- Returns:
- The
ModelObjectType
.
-
getHref
Get a link to the Spotify Web API endpoint providing full details of the track.- Returns:
- A link to the Spotify Web API endpoint providing full details of the track.
-
getExternalUrls
Get the external URLs of the context.- Returns:
- An
ExternalUrl
object.
-
getUri
Get the Spotify URI for the context.- Returns:
- The Spotify URI for the context.
-
toString
Description copied from class:AbstractModelObject
Returns a String representation of this model object in the style:ModelObject(attr1=value1, attr2=value2, ...)
- Specified by:
toString
in classAbstractModelObject
-
builder
Description copied from interface:IModelObject
Create a builder for building an instance of a model object.
The type of the builder and its methods depend on its corresponding implementation.- Returns:
- A builder object.
-
equals
-
hashCode
public int hashCode()
-