Add a default implementation.

This commit is contained in:
Michael Bayne
2025-02-05 10:51:56 -08:00
parent 5b01edc885
commit 4c98299580
@@ -46,7 +46,9 @@ public interface SpeakObject
/** /**
* Returns an identifier for what type of chat this speak object represents based on the message. * Returns an identifier for what type of chat this speak object represents based on the message.
*/ */
String getChatIdentifier (UserMessage message); default String getChatIdentifier (UserMessage message) {
return DEFAULT_IDENTIFIER;
}
/** /**
* The speak service will call this every time a chat message is delivered on this speak object * The speak service will call this every time a chat message is delivered on this speak object