Skip to content

HingeData

ikcede edited this page Mar 19, 2024 · 3 revisions

Class: HingeData

Wrapper class for Hinge Data

Stores a list of Interactions for data analysis and contains some methods for filtering Interactions.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new HingeData(data): HingeData

Set up by converting raw data from matches.json to TS objects

Parameters

Name Type Description
data any Imported data from matches.json

Returns

HingeData

Defined in

hinge-wrapper.ts:18

Properties

interactions

interactions: Interaction[]

All imported Interactions

Defined in

hinge-wrapper.ts:11

Methods

getDates

getDates(): Interaction[]

Gets all interactions with WeMet set to Yes

Returns

Interaction[]

A list of interactions with WeMet set to Yes

Defined in

hinge-wrapper.ts:80


getMatches

getMatches(): Interaction[]

Gets all matches

Returns

Interaction[]

A list of interactions with matches

Defined in

hinge-wrapper.ts:60


getReceivedLikes

getReceivedLikes(): Interaction[]

Gets all interactions not initiated by the user

Returns

Interaction[]

A list of interactions with received likes

Defined in

hinge-wrapper.ts:50


getRejections

getRejections(): Interaction[]

Gets all rejections by the user

Returns

Interaction[]

A list of interactions with rejections

Defined in

hinge-wrapper.ts:70


getSentLikes

getSentLikes(): Interaction[]

Gets all interactions initiated by the user

Returns

Interaction[]

A list of interactions with sent likes

Defined in

hinge-wrapper.ts:40


getSentLikesWithComment

getSentLikesWithComment(): Interaction[]

Gets all sent likes with a comment

Returns

Interaction[]

A list of interactions with likes including a comment

Defined in

hinge-wrapper.ts:90


getSentLikesWithoutComment

getSentLikesWithoutComment(): Interaction[]

Gets all sent likes without a comment

Returns

Interaction[]

A list of interactions with likes without a comment

Defined in

hinge-wrapper.ts:100


totalInteractions

totalInteractions(): number

Get the total number of interactions

Returns

number

Number of interactions

Defined in

hinge-wrapper.ts:31