public class SystemMessage extends Object implements ChatMessage
Constructor and Description |
---|
SystemMessage(String text)
Creates a new system message.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static SystemMessage |
from(String text)
Creates a new system message.
|
int |
hashCode() |
static SystemMessage |
systemMessage(String text)
Creates a new system message.
|
String |
text()
Returns the message text.
|
String |
toString() |
ChatMessageType |
type()
The type of the message.
|
public SystemMessage(String text)
text
- the message text.public String text()
text
in interface ChatMessage
public ChatMessageType type()
ChatMessage
type
in interface ChatMessage
public static SystemMessage from(String text)
text
- the message text.public static SystemMessage systemMessage(String text)
text
- the message text.Copyright © 2024. All rights reserved.