Package com.sendly.models
Class BatchMessageResponse
java.lang.Object
com.sendly.models.BatchMessageResponse
Response from a batch send operation.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBatchMessageResponse(com.google.gson.JsonObject json) Create a BatchMessageResponse from a JSON object. -
Method Summary
-
Field Details
-
STATUS_PROCESSING
- See Also:
-
STATUS_COMPLETED
- See Also:
-
STATUS_PARTIAL_FAILURE
- See Also:
-
STATUS_FAILED
- See Also:
-
-
Constructor Details
-
BatchMessageResponse
public BatchMessageResponse(com.google.gson.JsonObject json) Create a BatchMessageResponse from a JSON object.
-
-
Method Details
-
getBatchId
-
getStatus
-
getTotal
public int getTotal() -
getQueued
public int getQueued() -
getFailed
public int getFailed() -
getCreditsUsed
public int getCreditsUsed() -
getMessages
-
getCreatedAt
-
getCompletedAt
-
isProcessing
public boolean isProcessing()Check if the batch is still processing. -
isCompleted
public boolean isCompleted()Check if the batch completed successfully. -
isPartialFailure
public boolean isPartialFailure()Check if the batch completed with some failures. -
isFailed
public boolean isFailed()Check if all messages in the batch failed. -
toString
-