-
Notifications
You must be signed in to change notification settings - Fork 0
Interaction
Wrapper class for interactions (likes, matches)
• new Interaction(matchDate
, removeDate
, like
, chats
, weMet
): Interaction
Name | Type |
---|---|
matchDate |
null | Date
|
removeDate |
null | Date
|
like |
null | Like
|
chats |
Message [] |
weMet |
null | WeMet
|
• chats: Message
[]
Messages the user sent (does not include comment from Like)
• like: null
| Like
Set if the user sent a like
• matchDate: null
| Date
The timestamp when either user matched
• removeDate: null
| Date
The timestamp when the user hit X or unmatched
• weMet: null
| WeMet
An option the user marked using the We Met feature
▸ isDate(): boolean
Checks if the user notes that they met.
boolean
True if weMet is set with a flag of 'Yes'
▸ isMatch(): boolean
Checks if the user matched with another user.
boolean
True if matchDate is set
▸ isRejection(): boolean
Checks if the user hit the X or unmatched.
boolean
True if removeDate is set
▸ isSentLike(): boolean
Checks if this interaction started with a like sent by the user
boolean
True if the interaction includes a like
▸ fromRaw(data
): Interaction
Builds an Interaction from raw object data in matches.json
Name | Type |
---|---|
data |
any |
A built Interaction object