| 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 Party |
| 14 | { |
| 15 | public readonly UInt64 ID; |
| 16 | // May be null. Check before using. |
| 17 | public readonly UserList InvitedUsersOptional; |
| 18 | [Obsolete("Deprecated in favor of InvitedUsersOptional")] |
| 19 | public readonly UserList InvitedUsers; |
| 20 | // May be null. Check before using. |
| 21 | public readonly User LeaderOptional; |
| 22 | [Obsolete("Deprecated in favor of LeaderOptional")] |
| 23 | public readonly User Leader; |
| 24 | // May be null. Check before using. |
| 25 | public readonly Room RoomOptional; |
| 26 | [Obsolete("Deprecated in favor of RoomOptional")] |
| 27 | public readonly Room Room; |
| 28 | // May be null. Check before using. |
| 29 | public readonly UserList UsersOptional; |
| 30 | [Obsolete("Deprecated in favor of UsersOptional")] |
| 31 | public readonly UserList Users; |
| 32 | |
| 33 | |
| 34 | public Party(IntPtr o) |
| 35 | { |
| 36 | ID = CAPI.ovr_Party_GetID(o); |
| 37 | { |
| 38 | var pointer = CAPI.ovr_Party_GetInvitedUsers(o); |
| 39 | InvitedUsers = new UserList(pointer); |
| 40 | if (pointer == IntPtr.Zero) { |
| 41 | InvitedUsersOptional = null; |
| 42 | } else { |
| 43 | InvitedUsersOptional = InvitedUsers; |
| 44 | } |
| 45 | } |
| 46 | { |
| 47 | var pointer = CAPI.ovr_Party_GetLeader(o); |
| 48 | Leader = new User(pointer); |
| 49 | if (pointer == IntPtr.Zero) { |
| 50 | LeaderOptional = null; |
| 51 | } else { |
| 52 | LeaderOptional = Leader; |
| 53 | } |
| 54 | } |
| 55 | { |
| 56 | var pointer = CAPI.ovr_Party_GetRoom(o); |
| 57 | Room = new Room(pointer); |
| 58 | if (pointer == IntPtr.Zero) { |
| 59 | RoomOptional = null; |
| 60 | } else { |
| 61 | RoomOptional = Room; |
| 62 | } |
| 63 | } |
| 64 | { |
| 65 | var pointer = CAPI.ovr_Party_GetUsers(o); |
| 66 | Users = new UserList(pointer); |
| 67 | if (pointer == IntPtr.Zero) { |
| 68 | UsersOptional = null; |
| 69 | } else { |
| 70 | UsersOptional = Users; |
| 71 | } |
| 72 | } |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | } |