Back to project page pequeno-android-spotify.
The source code is released under:
Apache License
If you think the Android project pequeno-android-spotify listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * Copyright 2015 ze-pequeno/* www. j av a 2 s . c o 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 com.pequeno.android.spotify.api.business; import com.pequeno.android.spotify.api.business.enums.SpotifyType; import com.pequeno.android.spotify.api.business.enums.UrlType; public class SpotifyUri extends Value { /** * Spotify Uri Id */ protected String id; /** * Spotify Uri Spotify type */ protected SpotifyType spotifyType; /** * Spotify Uri url type */ protected UrlType urlType; /** * Consructor * @param value Playlist value */ public SpotifyUri(String value) { super(value); } /** * Get Spotify Uri Id * @return Spotify Uri Id */ public String getId() { return id; } /** * Get Spotify Uri url type * @return Url type */ public UrlType getUrlType() { return urlType; } /** * Get Spotify Spotify type * @return Spotify type */ public SpotifyType getSpotifyType() { return spotifyType; } /** * Parse Spotify Uri value */ @Override protected void parse() { String[] parts = value.split(":"); this.urlType = UrlType.create(parts[0]); this.spotifyType = SpotifyType.create(parts[1]); this.id = parts[2]; } }