Home > borogove > Reaction

Reaction class

Signature:

export class Reaction 

Constructors

Constructor Modifiers Description
(constructor)(senderId, timestamp, text, envelopeId, key) protected Constructs a new instance of the Reaction class

Properties

Property Modifiers Type Description
key string Key for grouping reactions
senderId string ID of who sent this Reaction
timestamp string Date and time when this Reaction was sent, in format YYYY-MM-DDThh:mm:ss[.sss]+00:00

Methods

Method Modifiers Description
render(forText, forImage) Create a new Unicode reaction to send
unicode(unicode) static Create a new Unicode reaction to send