All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.robertograham.fortnite2.xmpp.listener.OnChatMessageReceivedListener Maven / Gradle / Ivy

package io.github.robertograham.fortnite2.xmpp.listener;

/**
 * Registered using {@link io.github.robertograham.fortnite2.xmpp.implementation.DefaultFortniteXmpp.Builder#setOnChatMessageReceivedListener(OnChatMessageReceivedListener)}
 *
 * @since 1.0.0
 */
@FunctionalInterface
public interface OnChatMessageReceivedListener {

    /**
     * called when an incoming chat message is intercepted
     *
     * @param accountId   ID of the account that sent this message
     * @param messageBody the body of this message
     * @since 1.0.0
     */
    void onChatMessageReceived(final String accountId, final String messageBody);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy