cz.mmsparams.api.websocket.model.smsc.SmscSendModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of MmsParamsAPI Show documentation
Show all versions of MmsParamsAPI Show documentation
Common library for MmsParams system
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