Class Event

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Event.EventType
      Type of incoming events.
    • Constructor Summary

      Constructors 
      Constructor Description
      Event()
      abstract Event constructor
    • Constructor Detail

      • Event

        public Event()
        abstract Event constructor
    • Method Detail

      • getEventType

        public Event.EventType getEventType()
        Get EventType from Event object.
        Returns:
        event type
      • deserialize

        public static Event deserialize​(org.json.JSONObject json)
        Deserializes an Event. Takes a JSONObject as argument and tries to parse it. Returns null on error.
        Parameters:
        json - json data
        Returns:
        Event or null on error.