Class MotorNotifyResponse

java.lang.Object
com.chatmotorapi.api.notify.MotorNotifyResponse

public class MotorNotifyResponse
extends Object
The MotorNotifyResponse class encapsulates the result of a notification action in the ChatMotor API. It provides information about whether the notification was successful and, if not, contains details of the error encountered.

This class is used to represent the outcome of operations like sending notifications or alerts via various communication channels (e.g., email, SMS, Slack).

Since:
1.2
  • Constructor Details

    • MotorNotifyResponse

      public MotorNotifyResponse()
  • Method Details

    • isResponseOk

      public boolean isResponseOk()
      Returns whether the notification operation was successful.
      Returns:
      true if the response was successful, otherwise false
    • getThrowable

      public Throwable getThrowable()
      Returns the Throwable associated with the notification operation.
      Returns:
      a Throwable if there was an error, or MotorNoExceptionThrown if the operation was successful
    • toString

      public String toString()
      Overrides:
      toString in class Object