SmsSendResult Class
- java.
lang. Object - com.
azure. communication. sms. models. SmsSendResult
- com.
public final class SmsSendResult
The SmsSendResult model.
Constructor Summary
| Constructor | Description |
|---|---|
| SmsSendResult(String to, String messageId, int httpStatusCode, boolean isSuccessful, String errorMessage) |
Constructor to wrap the sms |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
getErrorMessage()
Get the error |
| int |
getHttpStatusCode()
Get the http |
| String |
getMessageId()
Get the message |
| String |
getTo()
Get the to property: The recipient's phone number in E.164 format. |
| boolean |
isSuccessful()
Get the successful property: Indicates if the message is processed successfully or not. |
Methods inherited from java.lang.Object
Constructor Details
SmsSendResult
public SmsSendResult(String to, String messageId, int httpStatusCode, boolean isSuccessful, String errorMessage)
Constructor to wrap the smsSendResponseItem
Parameters:
Method Details
getErrorMessage
public String getErrorMessage()
Get the errorMessage property: Optional error message in case of 4xx/5xx/repeatable errors.
Returns:
getHttpStatusCode
public int getHttpStatusCode()
Get the httpStatusCode property: HTTP Status code.
Returns:
getMessageId
public String getMessageId()
Get the messageId property: The identifier of the outgoing Sms message. Only present if message processed.
Returns:
getTo
public String getTo()
Get the to property: The recipient's phone number in E.164 format.
Returns:
isSuccessful
public boolean isSuccessful()
Get the successful property: Indicates if the message is processed successfully or not.
Returns: