Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented the interface functions for frontend in desiPandora. All …
…the recommendation songs use YouTube's getRelatedFeed function.
- Loading branch information
unknown
authored and
unknown
committed
Dec 5, 2009
1 parent
d6085dd
commit 291107e
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* | ||
*/ | ||
package com.desipandora.sessionInfo; | ||
|
||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import com.desipandora.api.SongEntry; | ||
/** | ||
* @author abhishek | ||
* | ||
*/ | ||
public class PlayList { | ||
private List<SongEntry> playList; | ||
private int relatedFeedSeed; | ||
|
||
public PlayList(){ | ||
this.playList = new ArrayList<SongEntry>(); | ||
this.relatedFeedSeed = -1; | ||
} | ||
|
||
public List<SongEntry> getPlayList() { | ||
return playList; | ||
} | ||
|
||
public PlayList(List<SongEntry> playList, int relatedFeedSeed) { | ||
this.playList = new ArrayList<SongEntry>(); | ||
this.playList.addAll(playList); | ||
this.relatedFeedSeed = relatedFeedSeed; | ||
} | ||
public void setPlayList(List<SongEntry> playList) { | ||
this.playList.addAll(playList); | ||
} | ||
public int getRelatedFeedSeed() { | ||
return relatedFeedSeed; | ||
} | ||
public void setRelatedFeedSeed(int relatedFeedSeed) { | ||
this.relatedFeedSeed = relatedFeedSeed; | ||
} | ||
} |