Reaction
public final class Reaction: NSObject, Codable, Injectable
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-
The reaction key.
Declaration
Swift
public let key: String -
A list of userIds that have reacted to this Reaction.
Declaration
Swift
@available(*, deprecated, renamed: "sampledUserIds") public internal(set) var userIds: [String] -
Gets a list of userIds that have reacted to this Reaction.
Declaration
Swift
@available(*, deprecated, renamed: "sampledUserIds") public var getUserIds: [String] -
The timestamp when the reaction is updated.
Declaration
Swift
public internal(set) var updatedAt: Int64 -
A list of sampled userIds that have reacted to this Reaction.
Since
4.22.0Declaration
Swift
public private(set) var sampledUserIds: [String] -
A count of the number of users who have reacted to this.
Since
4.22.0Declaration
Swift
public private(set) var count: UInt -
A flag indicating whether the current user has reacted to this.
Since
4.22.0Declaration
Swift
public var hasCurrentUserReacted: Bool -
Undocumented
Declaration
Swift
override public var description: String -
Default constructor.
Declaration
Swift
public required init(from decoder: Decoder) throwsParameters
decoderDecoderinstance -
Encodes this object.
Declaration
Swift
public func encode(to encoder: Encoder) throwsParameters
encoderEncoderinstance -
Compares this object with the other given object.
Declaration
Swift
public override func isEqual(_ object: Any?) -> BoolParameters
objectAnyinstance.Return Value
trueif same otherwisefalse. -
hash
Declaration
Swift
public override var hash: Int -
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]
View on GitHub
Install in Dash