Package io.sendon.kakao.request
Class FriendtalkBuilder
java.lang.Object
io.sendon.kakao.request.FriendtalkBuilder
Builder class for constructing Friendtalk messages.
Use this class to set the required and optional parameters for sending a Friendtalk message.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetButtons(List<Button> buttons) Sets the list of buttons.setFallback(Fallback fallback) Sets the fallback options.Sets the image details.setIsAd(boolean isAd) Sets whether the message is an advertisement.setMessage(String message) Sets the message content.setMessageType(FriendtalkMessageType messageType) Sets the message type.setProfileId(String profileId) Sets the profile ID.setReservation(Reservation reservation) Sets the reservation details for scheduling.setTemplateId(String templateId) Sets the template ID.Sets the list of recipients.
-
Field Details
-
profileId
-
templateId
-
to
-
message
-
buttons
-
isAd
public boolean isAd -
reservation
-
fallback
-
image
-
messageType
-
-
Constructor Details
-
FriendtalkBuilder
public FriendtalkBuilder()
-
-
Method Details
-
setMessageType
Sets the message type.- Parameters:
messageType-- Returns:
- The current instance of
FriendtalkBuilder.
-
setProfileId
Sets the profile ID.- Parameters:
profileId- The profile ID.- Returns:
- The current instance of
FriendtalkBuilder.
-
setTemplateId
Sets the template ID.- Parameters:
templateId- The template ID.- Returns:
- The current instance of
FriendtalkBuilder.
-
setTo
Sets the list of recipients.- Parameters:
to- The list of recipients. Can beList<String>(phone numbers) orList<ToWithVariable>(recipients with variables).- Returns:
- The current instance of
FriendtalkBuilder.
-
setMessage
Sets the message content.- Parameters:
message- The message content.- Returns:
- The current instance of
FriendtalkBuilder.
-
setButtons
Sets the list of buttons.- Parameters:
buttons- The list of buttons. SeeButton.- Returns:
- The current instance of
FriendtalkBuilder.
-
setIsAd
Sets whether the message is an advertisement.- Parameters:
isAd-trueif the message is an advertisement,falseotherwise.- Returns:
- The current instance of
FriendtalkBuilder.
-
setReservation
Sets the reservation details for scheduling.- Parameters:
reservation- The reservation details. SeeReservation.- Returns:
- The current instance of
FriendtalkBuilder.
-
setFallback
Sets the fallback options.- Parameters:
fallback- The fallback options. SeeFallback.- Returns:
- The current instance of
FriendtalkBuilder.
-
setImage
Sets the image details.- Parameters:
image- The image details. SeeImage.- Returns:
- The current instance of
FriendtalkBuilder.
-