Class: GeneralQuestion

GeneralQuestion(data)

A GeneralQuestion is associated with a GeneralRecording, and is created when the user: - Mobile: taps the GeneralQuestion button while recording a GeneralRecording - Desktop: right-clicks and adds a question on the recording For convenience, the id of the CultureEvent that the GeneralRecording is associated with is included in the GeneralQuestion, so we don't have to trace back through the GeneralRecording to get to the CultureEvent.

Constructor

new GeneralQuestion(data)

Creates a GeneralQuestion object
Parameters:
Name Type Description
data GeneralQuestion | Object
Source:

Members

_id :string

Unique ID for the GeneralQuestion
Type:
  • string
Default Value:
  • ''
Source:

cultureEvent :string

ID of the CultureEvent this question is associated with, for convenience
Type:
  • string
Default Value:
  • ''
Source:

filename :string

On Mobile, user can tap a Question marker when reviewing a CultureEvent to record a question. filename does not include a path, but does include extension.
Type:
  • string
Default Value:
  • ''
Source:

startTime :number

Time of the question marker, in seconds (with decimals), from the beginning of the GeneralRecording that this question is on (see GeneralRecording.questions)
Type:
  • number
Default Value:
  • 0
Source:

text :string

On Desktop, user can click a Question marker when reviewing a CultureEvent and type their question
Type:
  • string
Default Value:
  • ''
Source:

Methods

set(data) → {GeneralQuestion}

Creates an updated GeneralQuestion object
Parameters:
Name Type Description
data GeneralQuestion | Object
Source:
Returns:
Type
GeneralQuestion