Class ResponseMeta
The metadata for the response returned from an API call.
Inherited Members
Namespace: Unity.Services.Apis.Relay
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "ResponseMeta")]
[Preserve]
public class ResponseMeta
Constructors
ResponseMeta(string, int)
Initializes a new instance of the Response
Declaration
[Preserve]
public ResponseMeta(string requestId = null, int status = 0)
Parameters
Type | Name | Description |
---|---|---|
string | requestId | The unique ID of the request that triggered this response. (required). |
int | status | Indicates the HTTP status code of the response. (required). |
Properties
RequestId
The unique ID of the request that triggered this response.
Declaration
[DataMember(Name = "requestId", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string RequestId { get; set; }
Property Value
Type | Description |
---|---|
string | The unique ID of the request that triggered this response. |
Status
Indicates the HTTP status code of the response.
Declaration
[DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public int Status { get; set; }
Property Value
Type | Description |
---|---|
int | Indicates the HTTP status code of the response. |