Reaction

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

An object that 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
  • A list of userIds that have reacted to this Reaction.

    Declaration

    Swift

    @objc
    public internal(set) var userIds: [String] { get }
  • Gets a list of userIds that have reacted to this 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 the other given 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

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

    Declaration

    Swift

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