Struct Response
Response to a REST Call.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Utilities
Assembly: cs.temp.dll.dll
Syntax
public struct Response
Constructors
Response(Boolean, Func<String>, Func<Byte[]>, Int64)
Declaration
public Response(bool successful, Func<string> responseBodyAction, Func<byte[]> responseDataAction, long responseCode)
Parameters
Type | Name | Description |
---|---|---|
Boolean | successful | |
Func<String> | responseBodyAction | |
Func<Byte[]> | responseDataAction | |
Int64 | responseCode |
Response(Boolean, String, Byte[], Int64)
Constructor.
Declaration
public Response(bool successful, string responseBody, byte[] responseData, long responseCode)
Parameters
Type | Name | Description |
---|---|---|
Boolean | successful | |
String | responseBody | |
Byte[] | responseData | |
Int64 | responseCode |
Response(Boolean, String, Byte[], Int64)
Constructor.
Declaration
public Response(bool successful, string responseBody, byte[] responseData, long responseCode)
Parameters
Type | Name | Description |
---|---|---|
Boolean | successful | |
String | responseBody | |
Byte[] | responseData | |
Int64 | responseCode |
Properties
ResponseBody
Response body from the resource.
Declaration
public string ResponseBody { get; }
Property Value
Type | Description |
---|---|
String |
ResponseBody
Response body from the resource.
Declaration
public string ResponseBody { get; }
Property Value
Type | Description |
---|---|
String |
ResponseCode
Response code from the resource.
Declaration
public long ResponseCode { get; }
Property Value
Type | Description |
---|---|
Int64 |
ResponseCode
Response code from the resource.
Declaration
public long ResponseCode { get; }
Property Value
Type | Description |
---|---|
Int64 |
ResponseData
Response data from the resource.
Declaration
public byte[] ResponseData { get; }
Property Value
Type | Description |
---|---|
Byte[] |
ResponseData
Response data from the resource.
Declaration
public byte[] ResponseData { get; }
Property Value
Type | Description |
---|---|
Byte[] |
Successful
Was the REST call successful?
Declaration
public bool Successful { get; }
Property Value
Type | Description |
---|---|
Boolean |
Successful
Was the REST call successful?
Declaration
public bool Successful { get; }
Property Value
Type | Description |
---|---|
Boolean |