| 1 | // This file was @generated with LibOVRPlatform/codegen/main. Do not modify it! |
| 2 | |
| 3 | #pragma warning disable 0618 |
| 4 | |
| 5 | namespace Oculus.Platform.Models |
| 6 | { |
| 7 | using System; |
| 8 | using System.Collections; |
| 9 | using Oculus.Platform.Models; |
| 10 | using System.Collections.Generic; |
| 11 | using UnityEngine; |
| 12 | |
| 13 | public class MatchmakingEnqueueResult |
| 14 | { |
| 15 | // May be null. Check before using. |
| 16 | public readonly MatchmakingAdminSnapshot AdminSnapshotOptional; |
| 17 | [Obsolete("Deprecated in favor of AdminSnapshotOptional")] |
| 18 | public readonly MatchmakingAdminSnapshot AdminSnapshot; |
| 19 | public readonly uint AverageWait; |
| 20 | public readonly uint MatchesInLastHourCount; |
| 21 | public readonly uint MaxExpectedWait; |
| 22 | public readonly string Pool; |
| 23 | public readonly uint RecentMatchPercentage; |
| 24 | public readonly string RequestHash; |
| 25 | |
| 26 | |
| 27 | public MatchmakingEnqueueResult(IntPtr o) |
| 28 | { |
| 29 | { |
| 30 | var pointer = CAPI.ovr_MatchmakingEnqueueResult_GetAdminSnapshot(o); |
| 31 | AdminSnapshot = new MatchmakingAdminSnapshot(pointer); |
| 32 | if (pointer == IntPtr.Zero) { |
| 33 | AdminSnapshotOptional = null; |
| 34 | } else { |
| 35 | AdminSnapshotOptional = AdminSnapshot; |
| 36 | } |
| 37 | } |
| 38 | AverageWait = CAPI.ovr_MatchmakingEnqueueResult_GetAverageWait(o); |
| 39 | MatchesInLastHourCount = CAPI.ovr_MatchmakingEnqueueResult_GetMatchesInLastHourCount(o); |
| 40 | MaxExpectedWait = CAPI.ovr_MatchmakingEnqueueResult_GetMaxExpectedWait(o); |
| 41 | Pool = CAPI.ovr_MatchmakingEnqueueResult_GetPool(o); |
| 42 | RecentMatchPercentage = CAPI.ovr_MatchmakingEnqueueResult_GetRecentMatchPercentage(o); |
| 43 | RequestHash = CAPI.ovr_MatchmakingEnqueueResult_GetRequestHash(o); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | } |