Reaction

@objc(SBDReaction)
public class Reaction : NSObject, Codable
extension Reaction: Mappable

A object represents the reaction info.

The BaseMessage object can have the Reaction object in reactions property.

Since

3.0.169
  • key

    The reaction key.

    Declaration

    Swift

    @objc
    public let key: String
  • List of user who has been reacted.

    Declaration

    Swift

    @objc
    public var userIds: [String] { get }
  • The users who add the reaction.

    Declaration

    Swift

    @objc
    public var getUserIds: [String] { get }
  • The timestamp when the reaction is updated.

    Declaration

    Swift

    @objc
    public internal(set) var updatedAt: Int64 { get }
  • Default constructor.

    Declaration

    Swift

    public required init(from decoder: Decoder) throws

    Parameters

    decoder

    Decoder instance

  • Encodes this object.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    Encoder instance

  • Compares this object with given other object..

    Declaration

    Swift

    public override func isEqual(_ object: Any?) -> Bool

    Parameters

    object

    Any instance.

    Return Value

    true if same otherwise false.

  • hash

    Declaration

    Swift

    public override var hash: Int { get }
  • Initialize with json dictionary

    Declaration

    Swift

    @objc
    public func initWithDictionary(_ json: [String : Any]) -> `Self`?
  • Converts the object into dictionary

    Declaration

    Swift

    @objc
    public func _toDictionary() -> [String : Any]