public final class EventFactory extends Object
fromTCP(org.json.JSONObject)
and common event enumeration(s).Modifier and Type | Class and Description |
---|---|
static class |
EventFactory.Type
Enumeration of the general types of events that can be sent by the WVA.
|
Modifier and Type | Method and Description |
---|---|
static com.digi.wva.internal.AbstractEvent<?> |
fromTCP(JSONObject obj)
This method is the preferred way of creating an event object.
|
public static com.digi.wva.internal.AbstractEvent<?> fromTCP(JSONObject obj) throws JSONException
EventChannel
's object queue
and transforms it into an event consumable by anything registered to the client.
Any JSONObject
can be sent through this method, but only objects
of the correct format will produce a non-null object.obj
- JSONObject to be used in constructing a new Event objectJSONException
- if obj is of a recognized format but has bad values