All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sinch.sdk.domains.sms.models.DeliveryReportBatchSMS Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.sinch.sdk.domains.sms.models;

import java.util.Collection;

/**
 * SMS delivery Report
 *
 * @since 1.0
 */
public class DeliveryReportBatchSMS extends DeliveryReportBatch {

  /**
   * @param batchId Required. The ID of the batch this delivery report belongs to.
   * @param clientReference The client identifier of the batch this delivery report belongs to, if
   *     set when submitting batch.
   * @param statuses Required. Array with status objects. Only status codes with at
   *     least one recipient will be listed.
   * @param totalMessageCount Required. The total number of messages in the batch.
   */
  public DeliveryReportBatchSMS(
      String batchId,
      String clientReference,
      Collection statuses,
      Integer totalMessageCount) {
    super(batchId, clientReference, statuses, totalMessageCount);
  }

  @Override
  public String toString() {
    return "DeliveryReportBatchSMS{} " + super.toString();
  }

  public static Builder builder() {
    return new Builder();
  }

  public static class Builder extends DeliveryReportBatch.Builder {

    private Builder() {
      super();
    }

    public DeliveryReportBatchSMS build() {
      return new DeliveryReportBatchSMS(batchId, clientReference, statuses, totalMessageCount);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy