@digitalpersona/core
Version:
DigitalPersona Web Access Core library
39 lines (26 loc) • 1.65 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@digitalpersona/core](./core.md) > [Question](./core.question.md)
## Question class
Security question data.
<b>Signature:</b>
```typescript
export declare class Question
```
## Constructors
| Constructor | Modifiers | Description |
| --- | --- | --- |
| [(constructor)(number, lang\_id, sublang\_id, keyboard\_layout, text)](./core.question.(constructor).md) | | Constructs a security question. |
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [keyboard\_layout](./core.question.keyboard_layout.md) | | <code>number</code> | A keyboard layout for the answer. |
| [lang\_id](./core.question.lang_id.md) | | <code>number</code> | A question language ID. |
| [number](./core.question.number.md) | | <code>QuestionNumber</code> | An index of a question in a question list. |
| [sublang\_id](./core.question.sublang_id.md) | | <code>number</code> | A question sublanguage ID. |
| [text](./core.question.text.md) | | <code>string | undefined</code> | A text of the security question (only when === [QuestionType.Custom](./core.questiontype.custom.md)<!-- -->) |
| [type](./core.question.type.md) | | <code>QuestionType</code> | Security question type |
| [version](./core.question.version.md) | | <code></code> | Version info. |
## Methods
| Method | Modifiers | Description |
| --- | --- | --- |
| [fromJson(json)](./core.question.fromjson.md) | <code>static</code> | Creates a security question from a plain JSON object. |