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;
|
private long sizeInByte;
|
||||||
|
|
||||||
public static enum State {
|
public static enum State {
|
||||||
RECORDING,
|
RECORDING("recording"),
|
||||||
GENERATING_PLAYLIST,
|
STOPPED("stopped"),
|
||||||
STOPPED,
|
GENERATING_PLAYLIST("generating playlist"),
|
||||||
FINISHED,
|
POST_PROCESSING("post-processing"),
|
||||||
DOWNLOADING,
|
FINISHED("finished"),
|
||||||
POST_PROCESSING,
|
DOWNLOADING("downloading"),
|
||||||
UNKNOWN
|
UNKNOWN("unknown");
|
||||||
|
|
||||||
|
private String desc;
|
||||||
|
|
||||||
|
State(String desc) {
|
||||||
|
this.desc = desc;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return desc;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Recording() {}
|
public Recording() {}
|
||||||
|
|
|
@ -7,18 +7,18 @@ public abstract class Event {
|
||||||
* This event is fired every time the OnlineMonitor sees a model online
|
* 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".
|
* 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.
|
* 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.
|
* 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;
|
private String desc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue