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.
      abstract boolean isLimited()
      Returns true if the action is limited in challenge mode, by the action cap.
      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
      • isLimited

        public abstract boolean isLimited()
        Returns true if the action is limited in challenge mode, by the action cap.
        Returns:
        if is limited
      • 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