public interface WeChatTemplateMessageBuilder
Modifier and Type | Method and Description |
---|---|
WeChatTemplateMessageBuilder |
addTemplateTextParameter(String key,
String value)
Add text parameter to the body.
|
WeChatTemplateMessageBuilder |
addTemplateTextParameters(Map<String,String> parameters)
Add text parameters to the body.
|
WeChatTemplateMessageBuilder |
businessAccountId(String businessAccountId)
The id of the business account that should be used when sending out the message.
|
WeChatTemplateMessageBuilder |
externalUserId(String externalUserId)
The id of the recipient of the message.
|
WeChatTemplateMessageBuilder |
messageId(String messageId)
The id of the reference message within the Engage system.
|
void |
send()
Perform the send of the template message.
|
WeChatTemplateMessageBuilder |
templateId(String templateId)
The id of the template that is registered on the WeChat side
|
WeChatTemplateMessageBuilder externalUserId(String externalUserId)
WeChatTemplateMessageBuilder addTemplateTextParameters(Map<String,String> parameters)
WeChatTemplateMessageBuilder addTemplateTextParameter(String key, String value)
key
- the key of the placeholder which is used within the template messagevalue
- the value of the placeholderWeChatTemplateMessageBuilder templateId(String templateId)
WeChatTemplateMessageBuilder messageId(String messageId)
WeChatTemplateMessageBuilder businessAccountId(String businessAccountId)
void send()