Class SearchResult
- java.lang.Object
-
- com.wrapper.spotify.model_objects.AbstractModelObject
-
- com.wrapper.spotify.model_objects.special.SearchResult
-
- All Implemented Interfaces:
IModelObject,IArtistTrackModelObject,ISearchModelObject
public class SearchResult extends AbstractModelObject implements IArtistTrackModelObject, ISearchModelObject
Retrieve information about Search Result objects by building instances from this class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSearchResult.BuilderBuilder class for buildingSearchResultinstances.static classSearchResult.JsonUtilJsonUtil class for buildingSearchResultinstances.-
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 SearchResult.Builderbuilder()Create a builder for building an instance of a model object.Paging<AlbumSimplified>getAlbums()Get the album objects contained in the search result object.Paging<Artist>getArtists()Get the artist objects contained in the search result object.Paging<PlaylistSimplified>getPlaylists()Get the playlist objects contained in the search result object.Paging<Track>getTracks()Get the track objects contained in the search result object.
-
-
-
Method Detail
-
getAlbums
public Paging<AlbumSimplified> getAlbums()
Get the album objects contained in the search result object.
Note: The serch result only contains album objects when thealbumparameter has been specified in the request.- Returns:
- Albums from the search result.
-
getArtists
public Paging<Artist> getArtists()
Get the artist objects contained in the search result object.
Note: The serch result only contains artist objects when theartistparameter has been specified in the request.- Returns:
- Artists from the search result.
-
getPlaylists
public Paging<PlaylistSimplified> getPlaylists()
Get the playlist objects contained in the search result object.
Note: The serch result only contains playlist objects when theplaylisparameter has been specified in the request.- Returns:
- Playlists from the search result.
-
getTracks
public Paging<Track> getTracks()
Get the track objects contained in the search result object.
Note: The serch result only contains track objects when thetrackparameter has been specified in the request.- Returns:
- Tracks from the search result.
-
builder
public SearchResult.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.- Specified by:
builderin interfaceIModelObject- Returns:
- A builder object.
-
-