|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRecordings
A list of recordings.
This interface represents a list of recordings
Method Summary | |
---|---|
IProgramInfoList |
getProgramInfoList()
Gets a list of contained recordings. |
IProgramInfoList |
getProgramInfoList(IProgramInfoFilter filter)
Gets the list of contained recordings. |
boolean |
isEmpty()
Checks if the recordings-list contains a recording. |
Iterator<IProgramInfo> |
iterator()
Gets an iterator to loop through all available recordings. |
Iterator<IProgramInfo> |
iterator(IProgramInfoFilter filter)
Gets an iterator to loop through all recordings matching the given filter. |
int |
size()
Gets the amount of recordings contained in the list. |
Methods inherited from interface org.jmythapi.IVersionable |
---|
getVersionNr |
Method Detail |
---|
IProgramInfoList getProgramInfoList()
IProgramInfoList getProgramInfoList(IProgramInfoFilter filter)
WILL_RECORD
.
// query pending recordings IRecordingsPending pendingRecords = backend.queryAllPending(); // creating the program filter IProgramInfoFilter filter = ProgramInfoFilters.recordingStatus(IProgramRecordingStatus.Status.WILL_RECORD); // loop through the filtered list for (IProgramInfo program : pendingRecords.getProgramInfoList(filter)) { System.out.println(String.format( "%1$tF %1$tT- %2$s (%3$s)", program.getStartTime(), program.getTitle(), program.getChannelSign() )); }
This function internally uses IProgramInfoList.filter(IProgramInfoFilter)
to filter the programs.
filter
- the filter that should be applied, or null
if no filtering should be done.
Iterator<IProgramInfo> iterator()
iterator
in interface Iterable<IProgramInfo>
Iterable.iterator()
Iterator<IProgramInfo> iterator(IProgramInfoFilter filter)
filter
- the filter that should be applied or null
if no filtering should be done.
int size()
boolean isEmpty()
false
if there is at least one recording
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |