-
public final class GoogleChatBuildersKt
-
-
Field Summary
Fields Modifier and Type Field Description private final ConnectorTypegoogleChatConnectorType
-
Method Summary
Modifier and Type Method Description final ConnectorTypegetGoogleChatConnectorType()final <T extends Bus<T>> TsendToGoogleChat(T $self, Long delay, Function1<T, GoogleChatConnectorMessage> messageProvider)Sends a Hangouts Chat message only if the ConnectorType of the current Bus is googleChatConnectorType. final <T extends Bus<T>> TendForGoogleChat(T $self, Long delay, Function1<T, GoogleChatConnectorMessage> messageProvider)Sends a Google Chat message as last bot answer, only if the ConnectorType of the current Bus is googleChatConnectorType. final <T extends Bus<T>> TwithGoogleChat(T $self, Function0<GoogleChatConnectorMessage> messageProvider)Adds a Google Chat ConnectorMessage if the current connector is googleChatConnectorType. final GoogleChatConnectorTextMessageOuttextMessage(I18nTranslator $self, CharSequence message, Object args)-
-
Method Detail
-
getGoogleChatConnectorType
final ConnectorType getGoogleChatConnectorType()
-
sendToGoogleChat
final <T extends Bus<T>> T sendToGoogleChat(T $self, Long delay, Function1<T, GoogleChatConnectorMessage> messageProvider)
Sends a Hangouts Chat message only if the ConnectorType of the current Bus is googleChatConnectorType.
-
endForGoogleChat
final <T extends Bus<T>> T endForGoogleChat(T $self, Long delay, Function1<T, GoogleChatConnectorMessage> messageProvider)
Sends a Google Chat message as last bot answer, only if the ConnectorType of the current Bus is googleChatConnectorType.
-
withGoogleChat
final <T extends Bus<T>> T withGoogleChat(T $self, Function0<GoogleChatConnectorMessage> messageProvider)
Adds a Google Chat ConnectorMessage if the current connector is googleChatConnectorType. You need to call Bus.send or Bus.end later to send this message.
-
textMessage
final GoogleChatConnectorTextMessageOut textMessage(I18nTranslator $self, CharSequence message, Object args)
-
-
-
-