com.ibm.wiotp.sdk

Interface CustomAction

  • All Known Implementing Classes:
    ConcreteCustomAction


    public interface CustomAction
    This class encapsulates the custom actions.
    • Method Detail

      • setStatus

        void setStatus(CustomAction.Status status)

        Set the failure status of the current custom action
        The Custom Action handler must use this method to report the failure status back to IBM Watson IoT Platform whenever there is a failure.

        Parameters:
        status - Failure status of the current custom action
      • setStatus

        void setStatus(CustomAction.Status status,
                       String message)

        Set the failure status of the current custom action
        The Custom Action handler must use this method to report the failure status back to IBM Watson IoT Platform whenever there is a failure.

        Parameters:
        status - Failure status of the current custom action
        message - Failure message to be reported
      • getTypeId

        String getTypeId()
      • getDeviceId

        String getDeviceId()
      • getBundleId

        String getBundleId()
      • getPayload

        com.google.gson.JsonObject getPayload()
      • getActionId

        String getActionId()

Copyright © 2019. All rights reserved.