Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IQuestionMetricsImmutable<Data>

The metrics for question handling, unchangeable

Type parameters

  • Data

Hierarchy

Index

Properties

attempts

attempts: ITallyImmutable

The tally of the question attempts. Contains the current attempts and the accumulated total attempts

correct

correct: number

The tally of the questions that were answered correctly.

incorrect

incorrect: number

The tally of the questions that were answered incorrectly.

multiplier

multiplier: number

The multiplier that is applied to the question points when completed successfully

off

off: Record extends object ? <E extends Exclude<keyof Record, number>>(event: E, listener: IEventEmitterFunction<Record, E>) => this : (event: EventEmitterEvent, listener: IEventEmitterListener<unknown[], unknown, never>) => this

on

on: Record extends object ? <E extends Exclude<keyof Record, number>>(event: E, listener: IEventEmitterFunction<Record, E>) => this : (event: EventEmitterEvent, listener: IEventEmitterListener<unknown[], unknown, never>) => this

once

once: Record extends object ? <E extends Exclude<keyof Record, number>>(event: E, listener: IEventEmitterFunction<Record, E>) => this : (event: EventEmitterEvent, listener: IEventEmitterListener<unknown[], unknown, never>) => this

points

points: ITallyImmutable

The tally of the question points. Contains the current points and the accumulated total points

processing

processing: boolean

Determines if a question is currently being processed

result

result: boolean | undefined

Determines the result of the last answered question

streak

streak: number

The number of questions that have been completed in a row

subscribe

subscribe: Record extends object ? <E extends Exclude<keyof Record, number>>(event: E, listener: IEventEmitterFunction<Record, E>) => IEventEmitterSubscriptionMutable : (event: EventEmitterEvent, listener: IEventEmitterListener<...>) => IEventEmitterSubscriptionMutable

Methods

bind

  • bind(generator: IEventEmitterListen<IEventRecord<Data>>): this
  • The generator that the listener will listen for events on. The events are processed to provide more information about the conversation tree formations. This will unbind from any current generator.

    Parameters

    Returns this

dispose

  • dispose(): this

unbind

  • unbind(): this