using System; using System.Collections.Generic; using UnityEngine.Scripting; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Unity.Services.Relay.Http; namespace Unity.Services.Relay.Models { /// /// Metadata for a response returned from an API call /// Unique ID for this request that triggered this response /// Indicates the HTTP status code of the response /// [Preserve] [DataContract(Name = "ResponseMeta")] public class ResponseMeta { /// /// Metadata for a response returned from an API call /// /// Unique ID for this request that triggered this response /// Indicates the HTTP status code of the response [Preserve] public ResponseMeta(string requestId, int status) { RequestId = requestId; Status = status; } /// /// Unique ID for this request that triggered this response /// [Preserve] [DataMember(Name = "requestId", IsRequired = true, EmitDefaultValue = true)] public string RequestId{ get; } /// /// Indicates the HTTP status code of the response /// [Preserve] [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] public int Status{ get; } } }