-
Notifications
You must be signed in to change notification settings - Fork 0
HingeData
Wrapper class for Hinge Data
Stores a list of Interactions for data analysis and contains some methods for filtering Interactions.
- getDates
- getMatches
- getReceivedLikes
- getRejections
- getSentLikes
- getSentLikesWithComment
- getSentLikesWithoutComment
- totalInteractions
• new HingeData(data
): HingeData
Set up by converting raw data from matches.json to TS objects
Name | Type | Description |
---|---|---|
data |
any |
Imported data from matches.json |
• interactions: Interaction
[]
All imported Interactions
▸ getDates(): Interaction
[]
Gets all interactions with WeMet set to Yes
A list of interactions with WeMet set to Yes
▸ getMatches(): Interaction
[]
Gets all matches
A list of interactions with matches
▸ getReceivedLikes(): Interaction
[]
Gets all interactions not initiated by the user
A list of interactions with received likes
▸ getRejections(): Interaction
[]
Gets all rejections by the user
A list of interactions with rejections
▸ getSentLikes(): Interaction
[]
Gets all interactions initiated by the user
A list of interactions with sent likes
▸ getSentLikesWithComment(): Interaction
[]
Gets all sent likes with a comment
A list of interactions with likes including a comment
▸ getSentLikesWithoutComment(): Interaction
[]
Gets all sent likes without a comment
A list of interactions with likes without a comment
▸ totalInteractions(): number
Get the total number of interactions
number
Number of interactions