Package io.sendon.sms.request
Class MmsBuilder
java.lang.Object
io.sendon.sms.request.MmsBuilder
Builder class for constructing MMS message details.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the sender's phone number.Sets the list of image URLs to include in the MMS.setIsAd(boolean isAd) Sets whether the message is an advertisement.setMessage(String message) Sets the message content.setReservation(Reservation reservation) Sets the reservation details for scheduling.Sets the title of the message.Sets the list of recipients.
-
Field Details
-
from
-
to
-
title
-
message
-
isAd
public boolean isAd -
reservation
-
images
-
-
Constructor Details
-
MmsBuilder
public MmsBuilder()
-
-
Method Details
-
setFrom
Sets the sender's phone number.- Parameters:
from- The sender's phone number.- Returns:
- The current instance of
MmsBuilder.
-
setTo
Sets the list of recipients.- Parameters:
to- The list of recipients. Can beList<String>,List<ToWithName>, orList<ToWithBucket>.- Returns:
- The current instance of
MmsBuilder.
-
setTitle
Sets the title of the message.- Parameters:
title- The title of the message.- Returns:
- The current instance of
MmsBuilder.
-
setMessage
Sets the message content.- Parameters:
message- The message content.- Returns:
- The current instance of
MmsBuilder.
-
setIsAd
Sets whether the message is an advertisement.- Parameters:
isAd-trueif the message is an advertisement, otherwisefalse.- Returns:
- The current instance of
MmsBuilder.
-
setReservation
Sets the reservation details for scheduling.- Parameters:
reservation- The reservation details.- Returns:
- The current instance of
MmsBuilder.
-
setImages
Sets the list of image URLs to include in the MMS.- Parameters:
images- The list of image URLs.- Returns:
- The current instance of
MmsBuilder.
-