Event information. More...
Public Member Functions | |
EventInfo () | |
Initializes a new event. More... | |
EventInfo (String type) | |
Initializes a new event. More... | |
fm.liveswitch.ChannelInfo | getChannel () |
Gets the channel information. More... | |
fm.liveswitch.ClientInfo | getClient () |
Gets the client information. More... | |
fm.liveswitch.ConnectionInfo | getConnection () |
Gets the connection information. More... | |
boolean | getForced () |
Gets whether this event was forced. More... | |
fm.liveswitch.MessageInfo | getMessage () |
Gets the message information. More... | |
String | getOrigin () |
Gets the event origin. More... | |
long | getTimestamp () |
Gets the event timestamp in milliseconds since epoch. More... | |
String | getType () |
Gets the event type. More... | |
void | setChannel (fm.liveswitch.ChannelInfo value) |
Sets the channel information. More... | |
void | setClient (fm.liveswitch.ClientInfo value) |
Sets the client information. More... | |
void | setConnection (fm.liveswitch.ConnectionInfo value) |
Sets the connection information. More... | |
void | setForced (boolean value) |
Sets whether this event was forced. More... | |
void | setMessage (fm.liveswitch.MessageInfo value) |
Sets the message information. More... | |
void | setOrigin (String value) |
Sets the event origin. More... | |
void | setTimestamp (long value) |
Sets the event timestamp in milliseconds since epoch. More... | |
void | setType (String value) |
Sets the event type. More... | |
String | toJson () |
Serializes this instance to JSON. More... | |
Public Member Functions inherited from fm.liveswitch.Info | |
String | getId () |
Gets the identifier. More... | |
void | setId (String value) |
Sets the identifier. More... | |
Static Public Member Functions | |
static fm.liveswitch.EventInfo | fromJson (String eventJson) |
Deserializes an instance from JSON. More... | |
static fm.liveswitch.EventInfo[] | fromJsonArray (String eventJsons) |
Deserializes an array from JSON. More... | |
static String | toJson (fm.liveswitch.EventInfo evt) |
Serializes an instance to JSON. More... | |
static String | toJsonArray (fm.liveswitch.EventInfo[] events) |
Serializes an array to JSON. More... | |
Static Public Member Functions inherited from fm.liveswitch.Info | |
static< T extends fm.liveswitch.IEquivalent< T > T[] | processArray (T[] newValues, T[] oldValues) |
Processes an array for an info. More... | |
static fm.liveswitch.NullableBoolean | processBoolean (boolean newValue, boolean oldValue) |
Processes a boolean for an info. More... | |
static boolean[] | processBooleanArray (boolean[] newValues, boolean[] oldValues) |
Processes a boolean array for an info. More... | |
static fm.liveswitch.NullableDouble | processDouble (double newValue, double oldValue) |
Processes a double for an info. More... | |
static fm.liveswitch.NullableFloat | processFloat (float newValue, float oldValue) |
Processes a float for an info. More... | |
static float[] | processFloatArray (float[] newValues, float[] oldValues) |
Processes a float array for an info. More... | |
static double[] | processFloatArray (double[] newValues, double[] oldValues) |
Processes a double array for an info. More... | |
static fm.liveswitch.NullableInteger | processInteger (int newValue, int oldValue) |
Processes an integer for an info. More... | |
static int[] | processIntegerArray (int[] newValues, int[] oldValues) |
Processes a integer array for an info. More... | |
static fm.liveswitch.NullableLong | processLong (long newValue, long oldValue) |
Processes a long for an info. More... | |
static long[] | processLongArray (long[] newValues, long[] oldValues) |
Processes a long array for an info. More... | |
static< T extends Object &fm.liveswitch.IEquivalent< T > T | processObject (T newValue, T oldValue) |
Processes an object for an info. More... | |
static fm.liveswitch.NullableShort | processShort (short newValue, short oldValue) |
Processes a short for an info. More... | |
static short[] | processShortArray (short[] newValues, short[] oldValues) |
Processes a short array for an info. More... | |
static String | processString (String newValue, String oldValue) |
Processes a string for an info. More... | |
Protected Member Functions | |
void | deserializeProperties (String key, String valueJson) |
Deserializes the properties. More... | |
void | serializeProperties (java.util.HashMap< String, String > jsonObject) |
Serializes the properties. More... | |
Protected Member Functions inherited from fm.liveswitch.Info | |
Info () | |
Event information.
fm.liveswitch.EventInfo.EventInfo | ( | ) |
Initializes a new event.
fm.liveswitch.EventInfo.EventInfo | ( | String | type | ) |
Initializes a new event.
type | The type. |
|
protected |
Deserializes the properties.
key | The key. |
valueJson | The value in JSON format. |
Reimplemented from fm.liveswitch.Info.
|
static |
Deserializes an instance from JSON.
|
static |
Deserializes an array from JSON.
fm.liveswitch.ChannelInfo fm.liveswitch.EventInfo.getChannel | ( | ) |
Gets the channel information.
fm.liveswitch.ClientInfo fm.liveswitch.EventInfo.getClient | ( | ) |
Gets the client information.
fm.liveswitch.ConnectionInfo fm.liveswitch.EventInfo.getConnection | ( | ) |
Gets the connection information.
boolean fm.liveswitch.EventInfo.getForced | ( | ) |
Gets whether this event was forced.
fm.liveswitch.MessageInfo fm.liveswitch.EventInfo.getMessage | ( | ) |
Gets the message information.
String fm.liveswitch.EventInfo.getOrigin | ( | ) |
Gets the event origin.
long fm.liveswitch.EventInfo.getTimestamp | ( | ) |
Gets the event timestamp in milliseconds since epoch.
String fm.liveswitch.EventInfo.getType | ( | ) |
Gets the event type.
|
protected |
Serializes the properties.
jsonObject | The JSON object. |
Reimplemented from fm.liveswitch.Info.
void fm.liveswitch.EventInfo.setChannel | ( | fm.liveswitch.ChannelInfo | value | ) |
Sets the channel information.
void fm.liveswitch.EventInfo.setClient | ( | fm.liveswitch.ClientInfo | value | ) |
Sets the client information.
void fm.liveswitch.EventInfo.setConnection | ( | fm.liveswitch.ConnectionInfo | value | ) |
Sets the connection information.
void fm.liveswitch.EventInfo.setForced | ( | boolean | value | ) |
Sets whether this event was forced.
void fm.liveswitch.EventInfo.setMessage | ( | fm.liveswitch.MessageInfo | value | ) |
Sets the message information.
void fm.liveswitch.EventInfo.setOrigin | ( | String | value | ) |
Sets the event origin.
void fm.liveswitch.EventInfo.setTimestamp | ( | long | value | ) |
Sets the event timestamp in milliseconds since epoch.
void fm.liveswitch.EventInfo.setType | ( | String | value | ) |
Sets the event type.
String fm.liveswitch.EventInfo.toJson | ( | ) |
Serializes this instance to JSON.
|
static |
Serializes an instance to JSON.
|
static |
Serializes an array to JSON.