Skip to content

Commit

Permalink
Implemented the interface functions for frontend in desiPandora. All …
Browse files Browse the repository at this point in the history
…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.
42 changes: 42 additions & 0 deletions src/java/com/desipandora/sessionInfo/PlayList.java
@@ -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;
}
}

0 comments on commit 291107e

Please sign in to comment.