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 Throwable
getThrowable()
Returns theThrowable
associated with the notification operation.boolean
isResponseOk()
Returns whether the notification operation was successful.String
toString()
-
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, otherwisefalse
-
getThrowable
Returns theThrowable
associated with the notification operation.- Returns:
- a
Throwable
if there was an error, orMotorNoExceptionThrown
if the operation was successful
-
toString
-