Class
UserInputResponse
Represents a response to a user input prompt.
Inheritance
- Object
- UserInputResponse
Constructors
public UserInputResponse(IReadOnlyList<String> answers, IReadOnlyDictionary<String, IReadOnlyList<String>> answersById, JsonObject raw, JsonObject additional) #Initializes a new user input response.
Parameters
- answers System.Collections.Generic.IReadOnlyList{System.String}
- answersById System.Collections.Generic.IReadOnlyDictionary{System.String,System.Collections.Generic.IReadOnlyList{System.String}}
- raw IntelligenceX.Json.JsonObject
- additional IntelligenceX.Json.JsonObject
Methods
public static UserInputResponse FromJson(JsonObject obj) #Returns:
UserInputResponseParses a user input response from JSON.
Parameters
- obj IntelligenceX.Json.JsonObject
- Source JSON object.
Returns
The parsed response.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public IReadOnlyList<String> Answers { get; } #Gets the answers as a flat list.
public IReadOnlyDictionary<String, IReadOnlyList<String>> AnswersById { get; } #Gets answers grouped by id when provided.
public JsonObject Raw { get; } #Gets the raw JSON object.
public JsonObject Additional { get; } #Gets unrecognized fields from the payload.