Class Restrictions
- java.lang.Object
-
- com.wrapper.spotify.model_objects.AbstractModelObject
-
- com.wrapper.spotify.model_objects.miscellaneous.Restrictions
-
- All Implemented Interfaces:
IModelObject
public class Restrictions extends AbstractModelObject
Retrieve information about Restriction objects by building instances from this class.
Part of the response when Track Relinking is applied, the original track is not available in the given market, and Spotify did not have any tracks to relink it with. The track response will still contain metadata for the original track, and a restrictions object containing the reason why the track is not available
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRestrictions.BuilderBuilder class for buildingRestrictionsinstances.static classRestrictions.JsonUtilJSonUtil class for buildingRestrictionsinstances.-
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 Restrictions.Builderbuilder()Create a builder for building an instance of a model object.StringgetReason()Get the reason why the track is not available.
-
-
-
Method Detail
-
getReason
public String getReason()
Get the reason why the track is not available.- Returns:
- The track restriction reason.
-
builder
public Restrictions.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.
-
-