class SpotifySpeech {

	@Intent()
	public String playPlaylistId(Map<String, EntityData> entites) {
		PlaylistEntity playlist = null;
		switch (entites.get("type").getString()) {
		case "own":
		case "on":
			playlist = this.playerLogic.playPlaylist(entites.get("songid").getNumber(), SearchTypes.USER_PLAYLISTS);
			break;
		case "featured":
			playlist = this.playerLogic.playPlaylist(entites.get("songid").getNumber(), SearchTypes.FEATURED_PLAYLISTS);
			break;
		default:
			break;
		}
		return (playlist != null) ? playlist.toString() : ERROR_MESSAGE_ELEMENT;
	}

}