Android Open Source - spotify-web-api-android Artist Albums Request






From Project

Back to project page spotify-web-api-android.

License

The source code is released under:

Apache License

If you think the Android project spotify-web-api-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
 * Copyright (C) 2014 Siegenthaler Solutions.
 *//from   w  w w.  j  a v a  2s.  co m
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package me.siegenthaler.spotify.webapi.android.request;

import android.text.TextUtils;

import java.util.Locale;

import me.siegenthaler.spotify.webapi.android.model.SimpleAlbum;

/**
 * (non-doc)
 */
public final class ArtistAlbumsRequest extends AbstractPageRequest<ArtistAlbumsRequest, SimpleAlbum> {
    private final static AbstractRequest.PageType PARAMETER_TYPE = new AbstractRequest.PageType(SimpleAlbum.class);

    /**
     * (non-doc)
     */
    public ArtistAlbumsRequest() {
        super(PARAMETER_TYPE, "albums");
    }

    /**
     * (non-doc)
     */
    public ArtistAlbumsRequest setArtist(String id) {
        return setPath(String.format(Locale.ENGLISH, "/v1/artists/%s/albums", id));
    }

    /**
     * (non-doc)
     */
    public ArtistAlbumsRequest setAlbumType(String... type) {
        return addParameter("album_type", TextUtils.join(",", type));
    }

    /**
     * (non-doc)
     */
    public ArtistAlbumsRequest setMarket(String market) {
        return addParameter("market", market);
    }
}




Java Source Code List

me.siegenthaler.spotify.webapi.android.ClientRestAPI.java
me.siegenthaler.spotify.webapi.android.example.ExampleActivity.java
me.siegenthaler.spotify.webapi.android.model.Album.java
me.siegenthaler.spotify.webapi.android.model.Artist.java
me.siegenthaler.spotify.webapi.android.model.Followers.java
me.siegenthaler.spotify.webapi.android.model.Image.java
me.siegenthaler.spotify.webapi.android.model.Page.java
me.siegenthaler.spotify.webapi.android.model.Playlist.java
me.siegenthaler.spotify.webapi.android.model.SimpleAlbum.java
me.siegenthaler.spotify.webapi.android.model.SimpleArtist.java
me.siegenthaler.spotify.webapi.android.model.SimplePlaylistBase.java
me.siegenthaler.spotify.webapi.android.model.SimplePlaylist.java
me.siegenthaler.spotify.webapi.android.model.SimpleTrack.java
me.siegenthaler.spotify.webapi.android.model.SimpleUser.java
me.siegenthaler.spotify.webapi.android.model.Snapshot.java
me.siegenthaler.spotify.webapi.android.model.Token.java
me.siegenthaler.spotify.webapi.android.model.Track.java
me.siegenthaler.spotify.webapi.android.model.User.java
me.siegenthaler.spotify.webapi.android.request.AbstractPageRequest.java
me.siegenthaler.spotify.webapi.android.request.AbstractRequest.java
me.siegenthaler.spotify.webapi.android.request.AlbumListRequest.java
me.siegenthaler.spotify.webapi.android.request.AlbumRequest.java
me.siegenthaler.spotify.webapi.android.request.AlbumTracksRequest.java
me.siegenthaler.spotify.webapi.android.request.ArtistAlbumsRequest.java
me.siegenthaler.spotify.webapi.android.request.ArtistListRequest.java
me.siegenthaler.spotify.webapi.android.request.ArtistRelatedRequest.java
me.siegenthaler.spotify.webapi.android.request.ArtistRequest.java
me.siegenthaler.spotify.webapi.android.request.ArtistTopTrackRequest.java
me.siegenthaler.spotify.webapi.android.request.AuthoriseClientFlowRequest.java
me.siegenthaler.spotify.webapi.android.request.AuthoriseRefreshRequest.java
me.siegenthaler.spotify.webapi.android.request.PlaylistAddTracksRequest.java
me.siegenthaler.spotify.webapi.android.request.PlaylistChangeDetailsRequest.java
me.siegenthaler.spotify.webapi.android.request.PlaylistCreateRequest.java
me.siegenthaler.spotify.webapi.android.request.PlaylistListRequest.java
me.siegenthaler.spotify.webapi.android.request.PlaylistReplaceTracksRequest.java
me.siegenthaler.spotify.webapi.android.request.PlaylistRequest.java
me.siegenthaler.spotify.webapi.android.request.PlaylistTrackRequest.java
me.siegenthaler.spotify.webapi.android.request.SearchAlbumRequest.java
me.siegenthaler.spotify.webapi.android.request.SearchArtistRequest.java
me.siegenthaler.spotify.webapi.android.request.SearchPlaylistRequest.java
me.siegenthaler.spotify.webapi.android.request.SearchRequest.java
me.siegenthaler.spotify.webapi.android.request.SearchTrackRequest.java
me.siegenthaler.spotify.webapi.android.request.TrackListRequest.java
me.siegenthaler.spotify.webapi.android.request.TrackRequest.java
me.siegenthaler.spotify.webapi.android.request.browse.BrowseAlbumRequest.java
me.siegenthaler.spotify.webapi.android.request.browse.BrowsePlaylistRequest.java
me.siegenthaler.spotify.webapi.android.request.follow.FollowAddRequest.java
me.siegenthaler.spotify.webapi.android.request.follow.FollowCheckRequest.java
me.siegenthaler.spotify.webapi.android.request.follow.FollowRemoveRequest.java
me.siegenthaler.spotify.webapi.android.request.music.MusicAddRequest.java
me.siegenthaler.spotify.webapi.android.request.music.MusicRemoveRequest.java
me.siegenthaler.spotify.webapi.android.request.music.MusicTrackCheckRequest.java
me.siegenthaler.spotify.webapi.android.request.music.MusicTrackRequest.java
me.siegenthaler.spotify.webapi.android.request.profile.UserElseRequest.java
me.siegenthaler.spotify.webapi.android.request.profile.UserRequest.java