Add javadoc
This commit is contained in:
parent
9791427aeb
commit
45e493a35a
|
@ -14,33 +14,71 @@ import ctbrec.sites.Site;
|
||||||
|
|
||||||
public interface Model {
|
public interface Model {
|
||||||
public String getUrl();
|
public String getUrl();
|
||||||
|
|
||||||
public void setUrl(String url);
|
public void setUrl(String url);
|
||||||
|
|
||||||
public String getDisplayName();
|
public String getDisplayName();
|
||||||
|
|
||||||
public void setDisplayName(String name);
|
public void setDisplayName(String name);
|
||||||
|
|
||||||
public String getName();
|
public String getName();
|
||||||
|
|
||||||
public void setName(String name);
|
public void setName(String name);
|
||||||
|
|
||||||
public String getPreview();
|
public String getPreview();
|
||||||
|
|
||||||
public void setPreview(String preview);
|
public void setPreview(String preview);
|
||||||
|
|
||||||
public List<String> getTags();
|
public List<String> getTags();
|
||||||
|
|
||||||
public void setTags(List<String> tags);
|
public void setTags(List<String> tags);
|
||||||
|
|
||||||
public String getDescription();
|
public String getDescription();
|
||||||
|
|
||||||
public void setDescription(String description);
|
public void setDescription(String description);
|
||||||
|
|
||||||
public int getStreamUrlIndex();
|
public int getStreamUrlIndex();
|
||||||
|
|
||||||
public void setStreamUrlIndex(int streamUrlIndex);
|
public void setStreamUrlIndex(int streamUrlIndex);
|
||||||
|
|
||||||
public boolean isOnline() throws IOException, ExecutionException, InterruptedException;
|
public boolean isOnline() throws IOException, ExecutionException, InterruptedException;
|
||||||
|
|
||||||
public boolean isOnline(boolean ignoreCache) throws IOException, ExecutionException, InterruptedException;
|
public boolean isOnline(boolean ignoreCache) throws IOException, ExecutionException, InterruptedException;
|
||||||
|
|
||||||
public String getOnlineState(boolean failFast) throws IOException, ExecutionException;
|
public String getOnlineState(boolean failFast) throws IOException, ExecutionException;
|
||||||
|
|
||||||
public List<StreamSource> getStreamSources() throws IOException, ExecutionException, ParseException, PlaylistException;
|
public List<StreamSource> getStreamSources() throws IOException, ExecutionException, ParseException, PlaylistException;
|
||||||
|
|
||||||
public void invalidateCacheEntries();
|
public void invalidateCacheEntries();
|
||||||
|
|
||||||
public void receiveTip(int tokens) throws IOException;
|
public void receiveTip(int tokens) throws IOException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determines the stream resolution for this model
|
||||||
|
*
|
||||||
|
* @param failFast
|
||||||
|
* If set to true, the method returns emmediately, even if the resolution is unknown. If
|
||||||
|
* the resolution is unknown, the array contains 0,0
|
||||||
|
*
|
||||||
|
* @return a tupel of width and height represented by an int[2]
|
||||||
|
* @throws ExecutionException
|
||||||
|
*/
|
||||||
public int[] getStreamResolution(boolean failFast) throws ExecutionException;
|
public int[] getStreamResolution(boolean failFast) throws ExecutionException;
|
||||||
|
|
||||||
public boolean follow() throws IOException;
|
public boolean follow() throws IOException;
|
||||||
|
|
||||||
public boolean unfollow() throws IOException;
|
public boolean unfollow() throws IOException;
|
||||||
|
|
||||||
public void setSite(Site site);
|
public void setSite(Site site);
|
||||||
|
|
||||||
public Site getSite();
|
public Site getSite();
|
||||||
|
|
||||||
public void writeSiteSpecificData(JsonWriter writer) throws IOException;
|
public void writeSiteSpecificData(JsonWriter writer) throws IOException;
|
||||||
|
|
||||||
public void readSiteSpecificData(JsonReader reader) throws IOException;
|
public void readSiteSpecificData(JsonReader reader) throws IOException;
|
||||||
|
|
||||||
public boolean isSuspended();
|
public boolean isSuspended();
|
||||||
|
|
||||||
public void setSuspended(boolean suspended);
|
public void setSuspended(boolean suspended);
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue