@FunctionalInterface public interface ChatTypeMessageReceiver
Modifier and Type | Method and Description |
---|---|
void |
sendMessage(ChatType type,
Text message)
Sends a message with the specified
ChatType to this receiver. |
default void |
sendMessage(ChatType type,
TextTemplate template)
Sends a message constructed from the
TextTemplate with the
specified ChatType to this receiver. |
default void |
sendMessage(ChatType type,
TextTemplate template,
Map<String,TextElement> parameters)
Sends a message constructed from the
TextTemplate and
parameters with the specified ChatType to this receiver. |
default void |
sendMessages(ChatType type,
Iterable<Text> messages)
Sends the message(s) with the specified
ChatType to this receiver. |
default void |
sendMessages(ChatType type,
Text... messages)
Sends the message(s) with the specified
ChatType to this receiver. |
void sendMessage(ChatType type, Text message)
ChatType
to this receiver.
If text formatting is not supported in the implementation it will be displayed as plain text.
type
- The chat type to send the messages tomessage
- The message to senddefault void sendMessage(ChatType type, TextTemplate template)
TextTemplate
with the
specified ChatType
to this receiver.
If text formatting is not supported in the implementation it will be displayed as plain text.
type
- The chat type to send the messages totemplate
- The text templatedefault void sendMessage(ChatType type, TextTemplate template, Map<String,TextElement> parameters)
TextTemplate
and
parameters
with the specified ChatType
to this receiver.
If text formatting is not supported in the implementation it will be displayed as plain text.
type
- The chat type to send the messages totemplate
- The text templateparameters
- The parameters to apply to the templatedefault void sendMessages(ChatType type, Text... messages)
ChatType
to this receiver.
If text formatting is not supported in the implementation it will be displayed as plain text.
type
- The chat type to send the messages tomessages
- The message(s) to senddefault void sendMessages(ChatType type, Iterable<Text> messages)
ChatType
to this receiver.
If text formatting is not supported in the implementation it will be displayed as plain text.
type
- The chat type to send the messages tomessages
- The message(s) to send