ThreadInfo

@objc(SBDThreadInfo)
public class ThreadInfo : NSObject, Codable

An object that represents the information about threaded messages, whose properties show how many replies the thread has received, who left the replies, and when the last reply was added.

Since

3.0.181
  • The total number of replies in a specific thread. A value of 0 indicates there is no reply in the thread.

    Declaration

    Swift

    @objc
    public let replyCount: Int
  • Users who left most replies in the thread. The order of users is based on the number of replies they made in the thread and the maximum size of the array can be adjusted per request.

    Declaration

    Swift

    @objc
    public let mostRepliedUsers: [User]
  • The time that the last reply was created, in Unix milliseconds format. A value of 0 indicates there is no reply in the thread.

    Declaration

    Swift

    @objc
    public let lastRepliedAt: Int64
  • Encodes this object.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    Encoder instance

  • Default constructor.

    Declaration

    Swift

    public required init(from decoder: Decoder) throws

    Parameters

    decoder

    Decoder instance