Query
A class in Alta.Api.DataTransferModels, Alta.Api.DataTransferModels.Models.Responses.
One question on a web API form page (Page.Queries).
- Listed in Alta.Api.DataTransferModels
Constructors
| Member | What it is |
|---|---|
Query() | Creates a Query with default values. |
Properties
| Member | What it is |
|---|---|
string Context { get; set; } | Extra context string for the question. |
string DefaultValue { get; set; } | Value filled in before the user answers. |
string Description { get; set; } | Longer help text under the title. |
int Id { get; set; } | The question's numeric ID, matched by QueryResponse.Id. |
bool IsRequired { get; set; } | True when the question must be answered. |
int MaxLength { get; set; } | Maximum answer length, 20 unless the API sends another value. |
List<Option> Options { get; set; } | Choices for choice-type questions. |
string Title { get; set; } | The question text. |
FormQueryType Type { get; set; } | What kind of answer the question takes (FormQueryType). |
Used in
Members of other types that take, return or hold a Query: