Package com.bytedesk.core.thread
Class ThreadEntity
java.lang.Object
com.bytedesk.core.base.BaseEntity
com.bytedesk.core.thread.AbstractThreadEntity
com.bytedesk.core.thread.ThreadEntity
- All Implemented Interfaces:
Serializable
Conversation thread entity for managing chat sessions
Represents a series of related messages arranged chronologically to form a coherent communication thread
Used for online forums, email threads, social media, and customer service conversations
Database Table: bytedesk_core_thread
Purpose: Stores conversation threads, participant information, and message history
Note: Each visitor to agent thread should be unique, with history records stored in thread_log table
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<MessageEntity>
Messages associated with this conversation thread One-to-many relationship: one thread can have multiple messagesprivate static final long
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.bytedesk.core.base.BaseEntity
getCreatedAtString, getUpdatedAtString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
messages
Messages associated with this conversation thread One-to-many relationship: one thread can have multiple messages
-
-
Constructor Details
-
ThreadEntity
public ThreadEntity()
-
-
Method Details
-
isNew
-
isRoboting
-
isQueuing
-
isOffline
-
isChatting
-
isTimeout
-
isClosed
-
isCustomerService
-
isNoticeAccount
-
isAssistant
-
isMember
-
isGroup
-
isRobotType
-
isWorkgroupType
-
isAgentType
-
isUnifiedType
-
isWeChatMp
-
isWeChatMini
-
setRoboting
-
setOffline
-
setQueuing
-
setChatting
-
setTimeout
-
setClose
-
toProtobuf
-
getUserProtobuf
-
getAgentProtobuf
-
getRobotProtobuf
-
getWorkgroupProtobuf
-
getTransferProtobuf
-
getThreadExtra
-
isRobotToAgent
-
getAllMessageCount
-
getVisitorMessageCount
-
getAgentMessageCount
-
getSystemMessageCount
-
getRobotMessageCount
-
getUnreadCount
-
getVisitorUnreadCount
-
isValid
-
toString
重写toString方法避免循环引用
-