Class Context
- java.lang.Object
-
- com.wrapper.spotify.model_objects.AbstractModelObject
-
- com.wrapper.spotify.model_objects.specification.Context
-
- All Implemented Interfaces:
IModelObject
public class Context extends AbstractModelObject
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:
PlayHistory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContext.BuilderBuilder class for buildingContextinstances.static classContext.JsonUtilJsonUtil class for buildingContextinstances.-
Nested classes/interfaces inherited from interface com.wrapper.spotify.model_objects.IModelObject
IModelObject.IJsonUtil<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Context.Builderbuilder()Create a builder for building an instance of a model object.ExternalUrlgetExternalUrls()Get the external URLs of the context.StringgetHref()Get a link to the Spotify Web API endpoint providing full details of the track.ModelObjectTypegetType()Get the model object type of the context.StringgetUri()Get the Spotify URI for the context.
-
-
-
Method Detail
-
getType
public ModelObjectType getType()
Get the model object type of the context.- Returns:
- The
ModelObjectType.
-
getHref
public String 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
public ExternalUrl getExternalUrls()
Get the external URLs of the context.- Returns:
- An
ExternalUrlobject.
-
getUri
public String getUri()
Get the Spotify URI for the context.- Returns:
- The Spotify URI for the context.
-
builder
public Context.Builder builder()
Description copied from interface:IModelObjectCreate 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.
-
-