forked from j62/ctbrec
Add descriptions for events and states
This commit is contained in:
parent
65f7c0d85e
commit
5bb51b6a85
|
@ -15,13 +15,24 @@ public class Recording {
|
|||
private long sizeInByte;
|
||||
|
||||
public static enum State {
|
||||
RECORDING,
|
||||
GENERATING_PLAYLIST,
|
||||
STOPPED,
|
||||
FINISHED,
|
||||
DOWNLOADING,
|
||||
POST_PROCESSING,
|
||||
UNKNOWN
|
||||
RECORDING("recording"),
|
||||
STOPPED("stopped"),
|
||||
GENERATING_PLAYLIST("generating playlist"),
|
||||
POST_PROCESSING("post-processing"),
|
||||
FINISHED("finished"),
|
||||
DOWNLOADING("downloading"),
|
||||
UNKNOWN("unknown");
|
||||
|
||||
private String desc;
|
||||
|
||||
State(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return desc;
|
||||
}
|
||||
}
|
||||
|
||||
public Recording() {}
|
||||
|
|
|
@ -7,18 +7,18 @@ public abstract class Event {
|
|||
* This event is fired every time the OnlineMonitor sees a model online
|
||||
* It is also fired, if the model was online before. You can see it as a "still online ping".
|
||||
*/
|
||||
MODEL_ONLINE("Model is online"),
|
||||
MODEL_ONLINE("model is online"),
|
||||
|
||||
/**
|
||||
* This event is fired whenever the model's online state (Model.STATUS) changes.
|
||||
*/
|
||||
MODEL_STATUS_CHANGED("Model status changed"),
|
||||
MODEL_STATUS_CHANGED("model status changed"),
|
||||
|
||||
|
||||
/**
|
||||
* This event is fired whenever the state of a recording changes.
|
||||
*/
|
||||
RECORDING_STATUS_CHANGED("Recording status changed");
|
||||
RECORDING_STATUS_CHANGED("recording status changed");
|
||||
|
||||
private String desc;
|
||||
|
||||
|
|
Loading…
Reference in New Issue