Class ThreadEntity

All Implemented Interfaces:
Serializable

@Entity public class ThreadEntity extends AbstractThreadEntity
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 Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • messages

      private List<MessageEntity> 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

      public Boolean isNew()
    • isRoboting

      public Boolean isRoboting()
    • isQueuing

      public Boolean isQueuing()
    • isOffline

      public Boolean isOffline()
    • isChatting

      public Boolean isChatting()
    • isTimeout

      public Boolean isTimeout()
    • isClosed

      public Boolean isClosed()
    • isCustomerService

      public Boolean isCustomerService()
    • isNoticeAccount

      public Boolean isNoticeAccount()
    • isAssistant

      public Boolean isAssistant()
    • isMember

      public Boolean isMember()
    • isGroup

      public Boolean isGroup()
    • isRobotType

      public Boolean isRobotType()
    • isWorkgroupType

      public Boolean isWorkgroupType()
    • isAgentType

      public Boolean isAgentType()
    • isUnifiedType

      public Boolean isUnifiedType()
    • isWeChatMp

      public Boolean isWeChatMp()
    • isWeChatMini

      public Boolean isWeChatMini()
    • setRoboting

      public ThreadEntity setRoboting()
    • setOffline

      public ThreadEntity setOffline()
    • setQueuing

      public ThreadEntity setQueuing()
    • setChatting

      public ThreadEntity setChatting()
    • setTimeout

      public ThreadEntity setTimeout()
    • setClose

      public ThreadEntity setClose()
    • toProtobuf

      public ThreadProtobuf toProtobuf()
    • getUserProtobuf

      public UserProtobuf getUserProtobuf()
    • getAgentProtobuf

      public UserProtobuf getAgentProtobuf()
    • getRobotProtobuf

      public UserProtobuf getRobotProtobuf()
    • getWorkgroupProtobuf

      public UserProtobuf getWorkgroupProtobuf()
    • getTransferProtobuf

      public UserProtobuf getTransferProtobuf()
    • getThreadExtra

      public ThreadExtra getThreadExtra()
    • isRobotToAgent

      public Boolean isRobotToAgent()
    • getAllMessageCount

      public Integer getAllMessageCount()
    • getVisitorMessageCount

      public Integer getVisitorMessageCount()
    • getAgentMessageCount

      public Integer getAgentMessageCount()
    • getSystemMessageCount

      public Integer getSystemMessageCount()
    • getRobotMessageCount

      public Integer getRobotMessageCount()
    • getUnreadCount

      public Integer getUnreadCount()
    • getVisitorUnreadCount

      public Integer getVisitorUnreadCount()
    • isValid

      public Boolean isValid()
    • toString

      public String toString()
      重写toString方法避免循环引用
      Overrides:
      toString in class Object