TypedInvokeResponse<T> Class
- java.
lang. Object - com.
microsoft. bot. builder. InvokeResponse - com.
microsoft. bot. builder. TypedInvokeResponse<T>
- com.
- com.
Type Parameters
- T
The type for the body of the TypedInvokeResponse.
public class TypedInvokeResponse<T>
extends InvokeResponse
Tuple class containing an HTTP Status Code and a JSON Serializable object. The HTTP Status code is, in the invoke activity scenario, what will be set in the resulting POST. The Body of the resulting POST will be the JSON Serialized content from the Body property.
Constructor Summary
| Constructor | Description |
|---|---|
| TypedInvokeResponse(int withStatus, T withBody) |
Initializes new instance of Invoke |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| T |
getTypedBody()
Gets the body content for the response. |
| void |
setTypedBody(T withBody)
Sets the body with a typed value. |
Methods inherited from InvokeResponse
Methods inherited from java.lang.Object
Constructor Details
TypedInvokeResponse
public TypedInvokeResponse(int withStatus, T withBody)
Initializes new instance of InvokeResponse.
Parameters:
Method Details
getTypedBody
public T getTypedBody()
Gets the body content for the response.
Returns:
setTypedBody
public void setTypedBody(T withBody)
Sets the body with a typed value.
Parameters: