QuizQuestion

QuizQuestion

Represents a question on a quiz on SMHW.


Constructor

new QuizQuestion(client, response)

Instantiate a QuizQuestion object.

Parameters:
Name Type Description
client Client

The client that is instantiating this object.

response Object

The data for the object.

Members

(private) _client :Client

The client that instantiated this object.

Type:
  • Client

correct_answer :String

The correct answer to the question.

Type:
  • String

created_at :Number

The timestamp of when the question was created.

Type:
  • Number

description :String

The description of the question.

Type:
  • String

id :Number

The ID of the question.

Type:
  • Number

image_file_name :String

The file name of the question image.

Type:
  • String

image_large_url :String

The URL of a large version of the question image.

Type:
  • String

image_small_url :String

The URL of a small version of the question image.

Type:
  • String

image_url :String

The URl of the question image.

Type:
  • String

image_xsmall_url :String

The URL of an extra small version of the question image.

Type:
  • String

incorrect_answers :Array.<String>

An array of incorrect answers to the question.

Type:
  • Array.<String>

is_preparing :Boolean

Type:
  • Boolean

options :Array.<String>

The different options for the question.

Type:
  • Array.<String>

updated_at :Number

The timestamp of when the question was last updated.

Type:
  • Number