public class UserInput extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
UserInput.UserInputID |
| Constructor and Description |
|---|
UserInput(UserInput.UserInputID id,
int index,
String answer)
Creates a UserInput object with only the fields that's needed for submitting
a user input in the request.
|
UserInput(UserInput.UserInputID id,
int index,
String query,
String answer)
Creates a UserInput object with all of its info.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getAnswer()
returns the UserInput that must be submitted.
|
UserInput.UserInputID |
getId()
returns the id of this UserInput, which is the type of input required.
|
int |
getIndex()
returns the index of this UserInput, starting from 0.
|
Optional<String> |
getQuery()
returns the textual description of what is required from the user side by this UserInput.
|
public UserInput(UserInput.UserInputID id, int index, String query, String answer)
id - type of input required.index - the index of this UserInput object, starting from 0.
it's used in case more than one user input is requested.
will always be 0 if only one input is requested.query - textual description of what is required from the user side.answer - user input that must be submitted.
in the response it will always be empty.public UserInput(UserInput.UserInputID id, int index, String answer)
id - type of input required.index - the index of this UserInput object, starting from 0.
it's used in case more than one user input is requested.
will always be 0 if only one input is requested.answer - user input that must be submitted.public UserInput.UserInputID getId()
public int getIndex()
public Optional<String> getQuery()
Copyright © 2021 Dapi. All rights reserved.