Package cronapi.chatbot.cronchat
Class CronchatMessenger
- java.lang.Object
-
- cronapi.chatbot.cronchat.CronchatMessenger
-
-
Constructor Summary
Constructors Constructor Description CronchatMessenger(String token, String url, String urlCallCronchat, String botName, String botGender, String startPostMessage, String title, String subtitle, String urlAvatar, String titleColor, String titleFont, String titleFontSize, String titleFontColor, String subtitleFont, String subtitleFontSize, String subtitleFontColor, String carouselQrButtonColor, String carouselQrButtonFontColor, String carouselQrButtonColorHover, String carouselQrButtonFontColorHover, String carouselQrButtonClickedColor, String carouselQrButtonFontClickedColor, String ballonFont, String ballonFontSize, String ballonFontColor, String ballonColor, String buttonStartChatColor, String buttonSendMsgColor, String inputFont, String inputFontSize, String chatColor, String carouselTitleFont, String carouselTitleFontSize, String carouselsubtitleFont, String carouselSubtitleFontSize, String carouselQrButtonFontSize, String carouselQrButtonFont, String carouselQrButtonFontSizeHover, String carouselQrButtonFontHover, String carouselQrButtonClickedFontSize, String carouselQrButtonClickedFont, String ballonUserColor, String ballonUserFontColor, String buttonStartImageBackground, String buttonStartImageBackgroundSize, String buttonStartWidth, String buttonStartHeight, Boolean typingIndicator, String buttonStartBorderRadius)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPlatform()StringgetUrlFromLocation(Location location, TypeUrl typeUrl)voidsendButtonMessage(String conversationId, GroupedButton groupedButton)voidsendCarousel(String conversationId, List<Carousel> carouselList)voidsendFileMessage(String conversationId, List<LabelUrl> labelUrlList)voidsendImageMessage(String conversationId, List<LabelUrl> labelUrlList)voidsendLocation(String conversationId, Location location)voidsendQuickReply(String conversationId, String text, List<QuickReply> quickReply)voidsendTextMessage(String conversationId, String text)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cronapi.chatbot.Messenger
sendTypingOff, sendTypingOn, sendWatsonMessage
-
-
-
-
Constructor Detail
-
CronchatMessenger
@Autowired public CronchatMessenger(@Value("${chatbot.cronchat.token}") String token, @Value("${chatbot.cronchat.url}") String url, @Value("${chatbot.cronchat.urlCronchatApi}") String urlCallCronchat, @Value("${chatbot.cronchat.botName}") String botName, @Value("${chatbot.cronchat.botGender}") String botGender, @Value("${chatbot.cronchat.startPostMessage}") String startPostMessage, @Value("${chatbot.cronchat.title}") String title, @Value("${chatbot.cronchat.subtitle}") String subtitle, @Value("${chatbot.cronchat.urlAvatar}") String urlAvatar, @Value("${chatbot.cronchat.titleColor}") String titleColor, @Value("${chatbot.cronchat.titleFont}") String titleFont, @Value("${chatbot.cronchat.titleFontSize}") String titleFontSize, @Value("${chatbot.cronchat.titleFontColor}") String titleFontColor, @Value("${chatbot.cronchat.subtitleFont}") String subtitleFont, @Value("${chatbot.cronchat.subtitleFontSize}") String subtitleFontSize, @Value("${chatbot.cronchat.subtitleFontColor}") String subtitleFontColor, @Value("${chatbot.cronchat.carouselQrButtonColor}") String carouselQrButtonColor, @Value("${chatbot.cronchat.carouselQrButtonFontColor}") String carouselQrButtonFontColor, @Value("${chatbot.cronchat.carouselQrButtonColorHover}") String carouselQrButtonColorHover, @Value("${chatbot.cronchat.carouselQrButtonFontColorHover}") String carouselQrButtonFontColorHover, @Value("${chatbot.cronchat.carouselQrButtonClickedColor}") String carouselQrButtonClickedColor, @Value("${chatbot.cronchat.carouselQrButtonFontClickedColor}") String carouselQrButtonFontClickedColor, @Value("${chatbot.cronchat.ballonFont}") String ballonFont, @Value("${chatbot.cronchat.ballonFontSize}") String ballonFontSize, @Value("${chatbot.cronchat.ballonFontColor}") String ballonFontColor, @Value("${chatbot.cronchat.ballonColor}") String ballonColor, @Value("${chatbot.cronchat.buttonStartChatColor}") String buttonStartChatColor, @Value("${chatbot.cronchat.buttonSendMsgColor}") String buttonSendMsgColor, @Value("${chatbot.cronchat.inputFont}") String inputFont, @Value("${chatbot.cronchat.inputFontSize}") String inputFontSize, @Value("${chatbot.cronchat.chatColor}") String chatColor, @Value("${chatbot.cronchat.carouselTitleFont}") String carouselTitleFont, @Value("${chatbot.cronchat.carouselTitleFontSize}") String carouselTitleFontSize, @Value("${chatbot.cronchat.carouselsubtitleFont}") String carouselsubtitleFont, @Value("${chatbot.cronchat.carouselSubtitleFontSize}") String carouselSubtitleFontSize, @Value("${chatbot.cronchat.carouselQrButtonFontSize}") String carouselQrButtonFontSize, @Value("${chatbot.cronchat.carouselQrButtonFont}") String carouselQrButtonFont, @Value("${chatbot.cronchat.carouselQrButtonFontSizeHover}") String carouselQrButtonFontSizeHover, @Value("${chatbot.cronchat.carouselQrButtonFontHover}") String carouselQrButtonFontHover, @Value("${chatbot.cronchat.carouselQrButtonClickedFontSize}") String carouselQrButtonClickedFontSize, @Value("${chatbot.cronchat.carouselQrButtonClickedFont}") String carouselQrButtonClickedFont, @Value("${chatbot.cronchat.ballonUserColor}") String ballonUserColor, @Value("${chatbot.cronchat.ballonUserFontColor}") String ballonUserFontColor, @Value("${chatbot.cronchat.buttonStartImageBackground}") String buttonStartImageBackground, @Value("${chatbot.cronchat.buttonStartImageBackgroundSize}") String buttonStartImageBackgroundSize, @Value("${chatbot.cronchat.buttonStartWidth}") String buttonStartWidth, @Value("${chatbot.cronchat.buttonStartHeight}") String buttonStartHeight, @Value("${chatbot.cronchat.typingIndicator}") Boolean typingIndicator, @Value("${chatbot.cronchat.buttonStartBorderRadius}") String buttonStartBorderRadius)
-
-
Method Detail
-
getPlatform
public String getPlatform()
- Specified by:
getPlatformin interfaceMessenger
-
sendLocation
public void sendLocation(String conversationId, Location location)
- Specified by:
sendLocationin interfaceMessenger
-
sendCarousel
public void sendCarousel(String conversationId, List<Carousel> carouselList)
- Specified by:
sendCarouselin interfaceMessenger
-
sendQuickReply
public void sendQuickReply(String conversationId, String text, List<QuickReply> quickReply)
- Specified by:
sendQuickReplyin interfaceMessenger
-
sendTextMessage
public void sendTextMessage(String conversationId, String text)
- Specified by:
sendTextMessagein interfaceMessenger
-
getUrlFromLocation
public String getUrlFromLocation(Location location, TypeUrl typeUrl)
- Specified by:
getUrlFromLocationin interfaceMessenger
-
sendButtonMessage
public void sendButtonMessage(String conversationId, GroupedButton groupedButton)
- Specified by:
sendButtonMessagein interfaceMessenger
-
sendFileMessage
public void sendFileMessage(String conversationId, List<LabelUrl> labelUrlList)
- Specified by:
sendFileMessagein interfaceMessenger
-
sendImageMessage
public void sendImageMessage(String conversationId, List<LabelUrl> labelUrlList)
- Specified by:
sendImageMessagein interfaceMessenger
-
-