Class Action

    • Constructor Summary

      Constructors 
      Constructor Description
      Action()
      Empty default constructor
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract java.lang.String getName()
      Name of the action in the json package.
      org.json.JSONObject serialize()
      Serialize a sendable Action package.
      abstract java.lang.Object serializeData()
      Serializes the data of the Action.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Action

        public Action()
        Empty default constructor
    • Method Detail

      • getName

        public abstract java.lang.String getName()
        Name of the action in the json package.
        Returns:
        API name of this Action
      • serializeData

        public abstract java.lang.Object serializeData()
        Serializes the data of the Action. This may returns a JSONObject or String or an other supported datatype.
        Returns:
        JSONObject or String
      • serialize

        public final org.json.JSONObject serialize()
        Serialize a sendable Action package.
        Returns:
        JSONObject