Package io.sendon.rcs.request
Class RcsBuilder
java.lang.Object
io.sendon.rcs.request.RcsBuilder
Builder class for constructing RCS message details.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetFallback(Fallback fallback) Sets the fallback message configuration.Sets the sender's phone number.setRbcConfig(RbcConfig rbcConfig) Sets the RCS business configuration.Sets the list of recipient phone numbers.setType(SendonRcs.MessageType type) Sets the RCS message type.setUseCredit(Boolean useCredit) Sets whether to use credit for sending.setUseFallback(Boolean useFallback) Sets whether to use fallback SMS when RCS fails.
-
Field Details
-
type
-
from
-
to
-
rbcConfig
-
useCredit
-
useFallback
-
fallback
-
-
Constructor Details
-
RcsBuilder
public RcsBuilder()
-
-
Method Details
-
setType
Sets the RCS message type.- Parameters:
type- The RCS message type (RcsTSM, RcsTLM, RcsTMM).- Returns:
- The current instance of
RcsBuilder.
-
setFrom
Sets the sender's phone number.- Parameters:
from- The sender's phone number.- Returns:
- The current instance of
RcsBuilder.
-
setTo
Sets the list of recipient phone numbers.- Parameters:
to- The list of recipient phone numbers.- Returns:
- The current instance of
RcsBuilder.
-
setRbcConfig
Sets the RCS business configuration.- Parameters:
rbcConfig- The RCS business configuration.- Returns:
- The current instance of
RcsBuilder.
-
setUseCredit
Sets whether to use credit for sending.- Parameters:
useCredit- Whether to use credit for sending.- Returns:
- The current instance of
RcsBuilder.
-
setUseFallback
Sets whether to use fallback SMS when RCS fails.- Parameters:
useFallback- Whether to use fallback SMS when RCS fails.- Returns:
- The current instance of
RcsBuilder.
-
setFallback
Sets the fallback message configuration.- Parameters:
fallback- The fallback message configuration.- Returns:
- The current instance of
RcsBuilder.
-