-
public class ThreadInfo
Represents a thread info of a message.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<User>
mostRepliedUsers
private long
lastRepliedAt
private int
replyCount
-
Method Summary
Modifier and Type Method Description List<User>
getMostRepliedUsers()
Users who left a reply in the thread, based on the time the reply was added. long
getLastRepliedAt()
The time that the last reply was created, in Unix milliseconds format.A value of 0 indicates there is no reply in the thread. int
getReplyCount()
The total number of replies in a specific thread. static ThreadInfo
buildFromSerializedData(Array<byte> data)
Builds ThreadInfo
instance from serialized data generated by serialize.Array<byte>
serialize()
Serializes the ThreadInfo
instance.This byte array can be stored in the database in your application.boolean
equals(Object o)
int
hashCode()
String
toString()
-
-
Method Detail
-
getMostRepliedUsers
List<User> getMostRepliedUsers()
Users who left a reply in the thread, based on the time the reply was added.
-
getLastRepliedAt
long getLastRepliedAt()
The time that the last reply was created, in Unix milliseconds format.A value of 0 indicates there is no reply in the thread.
-
getReplyCount
int getReplyCount()
The total number of replies in a specific thread. A value of 0 indicates there is no reply in the thread.
-
buildFromSerializedData
static ThreadInfo buildFromSerializedData(Array<byte> data)
Builds
ThreadInfo
instance from serialized data generated by serialize.- Parameters:
data
- SerializedThreadInfo
data.
-
serialize
Array<byte> serialize()
Serializes the
ThreadInfo
instance.This byte array can be stored in the database in your application.The instance can be restored by buildFromSerializedData.
-
hashCode
int hashCode()
-
-
-
-