// // /*=============================================================================== // // Copyright (C) 2024 PhantomsXR Ltd. All Rights Reserved. // // // // This file is part of the Phantom.XRMOD.PhotonModule.Runtime. // // // // The AVPPlatform cannot be copied, distributed, or made available to // // third-parties for commercial purposes without written permission of PhantomsXR Ltd. // // // // Contact info@phantomsxr.com for licensing requests. // // ===============================================================================*/ using System.Threading.Tasks; namespace Phantom.XRMOD.PhotonModule.Runtime { public partial class ConnectResult { /// /// Is successful /// public bool Success; /// /// The fail reason code /// public int FailReason; /// /// Another custom code that can be filled by out by RealtimeClient.DisconnectCause for example. /// public int DisconnectCause; /// /// A debug message. /// public string DebugMessage; /// /// Set to true to disable all error handling by the menu. /// public bool CustomResultHandling; /// /// An optional task to signal the menu to wait until cleanup operation have completed (e.g. level unloading). /// public Task WaitForCleanup; } public partial class ConnectFailReason { /// /// No reason code available. /// public const int None = 0; /// /// User requested cancellation or disconnect. /// public const int UserRequest = 1; /// /// App or Editor closed /// public const int ApplicationQuit = 2; /// /// Connection disconnected. /// public const int Disconnect = 3; } }