using System; using System.Collections.Generic; using UnityEngine.Scripting; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; 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 { [Preserve] public ResponseMeta(string requestId, int status) { RequestId = requestId; Status = status; } [Preserve] [DataMember(Name = "request_id", IsRequired = true, EmitDefaultValue = true)] public string RequestId{ get; } [Preserve] [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] public int Status{ get; } } }