Package com.sinch.sdk.domains.sms.models
Class DeliveryReportBatch
- java.lang.Object
-
- com.sinch.sdk.domains.sms.models.BaseDeliveryReport
-
- com.sinch.sdk.domains.sms.models.DeliveryReportBatch
-
- All Implemented Interfaces:
WebhooksEvent
- Direct Known Subclasses:
DeliveryReportBatchMMS
,DeliveryReportBatchSMS
public abstract class DeliveryReportBatch extends BaseDeliveryReport
Common Definition to Delivery Report- Since:
- 1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeliveryReportBatch.Builder<B extends DeliveryReportBatch.Builder<B>>
-
Constructor Summary
Constructors Constructor Description DeliveryReportBatch(String batchId, String clientReference, Collection<DeliveryReportStatusDetails> statuses, Integer totalMessageCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<DeliveryReportStatusDetails>
getStatuses()
Integer
getTotalMessageCount()
String
toString()
-
Methods inherited from class com.sinch.sdk.domains.sms.models.BaseDeliveryReport
getBatchId, getClientReference
-
-
-
-
Constructor Detail
-
DeliveryReportBatch
public DeliveryReportBatch(String batchId, String clientReference, Collection<DeliveryReportStatusDetails> statuses, Integer totalMessageCount)
- Parameters:
batchId
-Required.
The ID of the batch this delivery report belongs to.clientReference
- The client identifier of the batch this delivery report belongs to, if set when submitting batch.statuses
-Required.
Array with status objects. Only status codes with at least one recipient will be listed.totalMessageCount
-Required.
The total number of messages in the batch.
-
-
Method Detail
-
getStatuses
public Collection<DeliveryReportStatusDetails> getStatuses()
-
getTotalMessageCount
public Integer getTotalMessageCount()
-
toString
public String toString()
- Overrides:
toString
in classBaseDeliveryReport
-
-