Class UserInputResponse
java.lang.Object
com.github.copilot.rpc.UserInputResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the user's answer.booleanReturns whether the answer was freeform (not from the provided choices).Sets the user's answer.setWasFreeform(boolean wasFreeform) Sets whether the answer was freeform.
-
Constructor Details
-
UserInputResponse
public UserInputResponse()
-
-
Method Details
-
getAnswer
-
setAnswer
Sets the user's answer.- Parameters:
answer- the answer text- Returns:
- this instance for method chaining
-
isWasFreeform
public boolean isWasFreeform()Returns whether the answer was freeform (not from the provided choices).- Returns:
trueif the answer was freeform
-
setWasFreeform
Sets whether the answer was freeform.- Parameters:
wasFreeform-trueif the answer was freeform- Returns:
- this instance for method chaining
-