Package com.chatmotorapi.api.notify
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 Summary
Constructors Constructor Description MotorNotifyResponse() -
Method Summary
Modifier and Type Method Description ThrowablegetThrowable()Returns theThrowableassociated with the notification operation.booleanisResponseOk()Returns whether the notification operation was successful.StringtoString()
-
Constructor Details
-
MotorNotifyResponse
public MotorNotifyResponse()
-
-
Method Details
-
isResponseOk
public boolean isResponseOk()Returns whether the notification operation was successful.- Returns:
trueif the response was successful, otherwisefalse
-
getThrowable
Returns theThrowableassociated with the notification operation.- Returns:
- a
Throwableif there was an error, orMotorNoExceptionThrownif the operation was successful
-
toString
-