Skip to content
ikcede edited this page Mar 19, 2024 · 1 revision

Class: Like

Wrapper class for a like interaction

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Like(comment, timestamp): Like

Parameters

Name Type
comment string
timestamp null | Date

Returns

Like

Defined in

hinge-wrapper.ts:248

Properties

comment

comment: string

Any comment the user sent with the like

Defined in

hinge-wrapper.ts:241


timestamp

timestamp: null | Date

The recorded time of the Like being sent

Defined in

hinge-wrapper.ts:246

Methods

fromRaw

fromRaw(data): Like

Builds a Like from raw object data in matches.json

Note that these are only likes sent by the user as received likes are implied

Parameters

Name Type
data any

Returns

Like

A build Like object

Defined in

hinge-wrapper.ts:262