No Description

b1cfcb08dc5b52a3c56fbdaf64b89527e4a76821.svn-base 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package com.rdlze.radializebase.interfaces;
  2. import java.io.Serializable;
  3. import java.rmi.Remote;
  4. import java.rmi.RemoteException;
  5. import java.util.List;
  6. import java.util.Map;
  7. import com.rdlze.radializeutils.objects.ArtistIdAndTimestamp;
  8. import com.rdlze.radializeutils.objects.Radio;
  9. import com.rdlze.radializeutils.objects.RadioStreamingMetadata;
  10. public interface InterfacePlayingNowServer extends Remote, Serializable
  11. {
  12. /**
  13. * @return List of Radios playing the given artist
  14. */
  15. public List<Radio> artistPlayingNow(int artistID)throws RemoteException;
  16. /**
  17. * @return List of Radios playing the given song
  18. */
  19. public List<Radio> musicPlayingNow(int musicID)throws RemoteException;
  20. /**
  21. * Gets playing media of the given radio
  22. */
  23. public RadioStreamingMetadata getRadioPlayNow(int radioId)throws RemoteException;
  24. /**
  25. * Gets map of artists playing at the moment
  26. */
  27. public Map<Integer, ArtistIdAndTimestamp> getRadioArtistMap() throws RemoteException;
  28. /**
  29. * Gets map of songs playing at the moment
  30. */
  31. public Map<Integer, Integer> getRadioSongMap() throws RemoteException;
  32. /**
  33. * Gets what is playing in a given radio
  34. */
  35. public RadioStreamingMetadata getPlayingMedia(int radioId) throws RemoteException;
  36. }