Package org.netxms.client.ai
Class AiMessage
java.lang.Object
org.netxms.client.ai.AiMessage
AI message
-
Constructor Summary
ConstructorsConstructorDescriptionAiMessage(NXCPMessage msg, long baseId) Create message object from NXCP message -
Method Summary
Modifier and TypeMethodDescriptiongetGuid()longgetId()longGet ID of the entity that created this message: AI task ID or AI operator instance ID, or chat ID for messages created from a chat.Get type of the entity that created this message: "chat", "task", or "operator" (empty string if not known).longgetText()getTitle()booleanCheck if message is an approval requestbooleanCheck if message is expiredtoString()
-
Constructor Details
-
AiMessage
Create message object from NXCP message- Parameters:
msg- NXCP messagebaseId- base ID for fields
-
-
Method Details
-
getId
public long getId()- Returns:
- the id
-
getGuid
- Returns:
- the guid
-
getMessageType
- Returns:
- the messageType
-
getCreationTime
- Returns:
- the creationTime
-
getExpirationTime
- Returns:
- the expirationTime
-
getOriginId
public long getOriginId()Get ID of the entity that created this message: AI task ID or AI operator instance ID, or chat ID for messages created from a chat.- Returns:
- origin ID
-
getOriginType
Get type of the entity that created this message: "chat", "task", or "operator" (empty string if not known).- Returns:
- origin type
-
getRelatedObjectId
public long getRelatedObjectId()- Returns:
- the relatedObjectId
-
getTitle
- Returns:
- the title
-
getText
- Returns:
- the text
-
getSpawnTaskData
- Returns:
- the spawnTaskData
-
getStatus
- Returns:
- the status
-
isApprovalRequest
public boolean isApprovalRequest()Check if message is an approval request- Returns:
- true if message is an approval request
-
isExpired
public boolean isExpired()Check if message is expired- Returns:
- true if message is expired
-
toString
-