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

cz.mmsparams.api.websocket.model.smsc.SmscSendModel Maven / Gradle / Ivy

The newest version!
package cz.mmsparams.api.websocket.model.smsc;

import java.io.Serializable;
import java.util.ArrayList;

import cz.mmsparams.api.websocket.WebSocketModelBase;

public class SmscSendModel extends WebSocketModelBase implements Serializable
{
    private SmscAddressModel senderAddress;
    private SmscAddressModel recipientAddress;
    private String shortMessage;
    private boolean deliveryReport;
    private ArrayList optionalParameters;

    public SmscAddressModel getSenderAddress()
    {
        return senderAddress;
    }

    public void setSenderAddress(SmscAddressModel senderAddress)
    {
        this.senderAddress = senderAddress;
    }

    public SmscAddressModel getRecipientAddress()
    {
        return recipientAddress;
    }

    public void setRecipientAddress(SmscAddressModel recipientAddress)
    {
        this.recipientAddress = recipientAddress;
    }

    public String getShortMessage()
    {
        return shortMessage;
    }

    public void setShortMessage(String shortMessage)
    {
        this.shortMessage = shortMessage;
    }

    public boolean isDeliveryReport()
    {
        return deliveryReport;
    }

    public void setDeliveryReport(boolean deliveryReport)
    {
        this.deliveryReport = deliveryReport;
    }

    public boolean getDeliveryReport()
    {
        return deliveryReport;
    }

    public ArrayList getOptionalParameters()
    {
        return optionalParameters;
    }

    public void setOptionalParameters(ArrayList optionalParameters)
    {
        this.optionalParameters = optionalParameters;
    }

    public void addOptionalParameters(TlvModel optionalParameter)
    {
        if (this.optionalParameters == null)
            this.optionalParameters = new ArrayList<>();
        this.optionalParameters.add(optionalParameter);
    }

    @Override
    public String toString()
    {
        return "SmscSendSmsModel{" +
                "senderAddress=" + senderAddress +
                ", recipientAddress=" + recipientAddress +
                ", shortMessage='" + shortMessage + '\'' +
                ", deliveryReport=" + deliveryReport +
                "} " + super.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy