Ejemplo n.º 1
0
 public List<Track> getPlayedSongs(int from, int num, int locationId) {
   int to = from + Math.abs(num);
   return data.getPlayedTracks(locationId, from, to);
 }
Ejemplo n.º 2
0
 public List<Track> getSongs(int from, int num, String orderBy, long notPlayedIn, int locationId) {
   int to = from + Math.abs(num);
   Timestamp notPlayedSince = new Timestamp(System.currentTimeMillis() - notPlayedIn);
   return data.getSongs(locationId, from, to, orderBy, notPlayedSince);
 }