Annotation Type CustomChatChannel
-
@Retention(RUNTIME) @Target(ANNOTATION_TYPE) public @interface CustomChatChannel
Runtime annotation used to specify custom chat channels.
- Since:
- 12.20
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String
name
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
displayName
CustomChatChannelMessageFormat
format
The CustomChatChannelMessageFormat which the MessengerTextMessage of this CustomChatChannel uses (TEXT by default).CustomChatChannelMessageFormatElement[]
formatElements
The CustomChatChannelMessageFormatElements which the CustomChatChannel supports (none by default).java.lang.String
pngIconResourcePath
The method may return the resource path to the optional PNG icon resource of the CustomChatChannel.
-
-
-
-
pngIconResourcePath
java.lang.String pngIconResourcePath
The method may return the resource path to the optional PNG icon resource of the CustomChatChannel. The image resource must be a PNG icon and should have the dimension of 30 x 30 pixel. Please specify the resource path relative to your MessengerConnectorPlugin class or absolute to the plugin JAR file of the app. e.g. "/META-INF/resources/images/myicon.png"- Returns:
- the resource path to the optional PNG icon resource of the CustomChatChannel
- Since:
- 12.20
- Default:
- ""
-
-
-
format
CustomChatChannelMessageFormat format
The CustomChatChannelMessageFormat which the MessengerTextMessage of this CustomChatChannel uses (TEXT by default).
- Returns:
- the
CustomChatChannelMessageFormat
which theMessengerTextMessage
s of thisCustomChatChannel
will use. - Since:
- 12.20
- Default:
- com.novomind.ecom.api.iagent.messenger.connector.CustomChatChannelMessageFormat.TEXT
-
-
-
formatElements
CustomChatChannelMessageFormatElement[] formatElements
The CustomChatChannelMessageFormatElements which the CustomChatChannel supports (none by default). Has no effect, if the format of the CustomChatChannel is TEXT.
If the HTML format is chosen,
MessengerTextMessage
s will implicitly include <br> tags instead of new lines and the additionally definedCustomChatChannelMessageFormatElement
s.- Returns:
- an array of
CustomChatChannelMessageFormatElement
that theCustomChatChannel
supports. - Since:
- 12.20
- Default:
- {}
-
-