Package cronapi.chatbot.facebook
Class FacebookMessenger
- java.lang.Object
-
- cronapi.chatbot.facebook.FacebookMessenger
-
-
Constructor Summary
Constructors Constructor Description FacebookMessenger(com.github.messenger4j.Messenger messenger, Boolean typingIndicator)
-
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> quickReplyList)voidsendTextMessage(String conversationId, String text)voidsendTypingOff(String conversationId)voidsendTypingOn(String conversationId)-
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
sendWatsonMessage
-
-
-
-
Constructor Detail
-
FacebookMessenger
@Autowired public FacebookMessenger(com.github.messenger4j.Messenger messenger, @Value("${chatbot.facebook.typingIndicator}") Boolean typingIndicator)
-
-
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> quickReplyList)
- 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
-
sendTypingOn
public void sendTypingOn(String conversationId)
- Specified by:
sendTypingOnin interfaceMessenger
-
sendTypingOff
public void sendTypingOff(String conversationId)
- Specified by:
sendTypingOffin 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
-
-