using System; using System.Collections.Generic; using UnityEngine.Scripting; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Unity.Services.Lobbies.Http; namespace Unity.Services.Lobbies.Models { /// /// The body that will be returned for any failing request. We are using the [RFC 7807 Error Format](https://www.rfc-editor.org/rfc/rfc7807.html#section-3.1). /// status param /// title param /// details param /// [Preserve] [DataContract(Name = "ErrorStatus")] public class ErrorStatus { /// /// The body that will be returned for any failing request. We are using the [RFC 7807 Error Format](https://www.rfc-editor.org/rfc/rfc7807.html#section-3.1). /// /// status param /// title param /// details param [Preserve] public ErrorStatus(int status = default, string title = default, List details = default) { Status = status; Title = title; Details = details; } [Preserve] [DataMember(Name = "status", EmitDefaultValue = false)] public int Status{ get; } [Preserve] [DataMember(Name = "title", EmitDefaultValue = false)] public string Title{ get; } [Preserve] [DataMember(Name = "details", EmitDefaultValue = false)] public List Details{ get; } } }