forked from j62/ctbrec
1
0
Fork 0

Add new event property OLD

This commit is contained in:
0xboobface 2018-12-05 21:00:19 +01:00
parent 1970f08700
commit 022997f6b6
1 changed files with 15 additions and 0 deletions

View File

@ -8,11 +8,26 @@ import com.google.common.eventbus.EventBus;
public class EventBusHolder { public class EventBusHolder {
public static final String EVENT = "event"; public static final String EVENT = "event";
public static final String OLD = "old";
public static final String STATUS = "status"; public static final String STATUS = "status";
public static final String MODEL = "model"; public static final String MODEL = "model";
public static enum EVENT_TYPE { public static enum EVENT_TYPE {
/**
* 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,
/**
* This event is fired whenever the model's online state (Model.STATUS) changes.
*/
MODEL_STATUS_CHANGED, MODEL_STATUS_CHANGED,
/**
* This event is fired whenever the state of a recording changes.
*/
RECORDING_STATUS_CHANGED RECORDING_STATUS_CHANGED
} }