| 1 | // This file was @generated with LibOVRPlatform/codegen/main. Do not modify it! |
| 2 | |
| 3 | namespace Oculus.Platform.Models |
| 4 | { |
| 5 | using System; |
| 6 | using System.Collections; |
| 7 | using Oculus.Platform.Models; |
| 8 | using System.Collections.Generic; |
| 9 | using UnityEngine; |
| 10 | |
| 11 | public class SdkAccount |
| 12 | { |
| 13 | public readonly SdkAccountType AccountType; |
| 14 | public readonly UInt64 UserId; |
| 15 | |
| 16 | |
| 17 | public SdkAccount(IntPtr o) |
| 18 | { |
| 19 | AccountType = CAPI.ovr_SdkAccount_GetAccountType(o); |
| 20 | UserId = CAPI.ovr_SdkAccount_GetUserId(o); |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | public class SdkAccountList : DeserializableList<SdkAccount> { |
| 25 | public SdkAccountList(IntPtr a) { |
| 26 | var count = (int)CAPI.ovr_SdkAccountArray_GetSize(a); |
| 27 | _Data = new List<SdkAccount>(count); |
| 28 | for (int i = 0; i < count; i++) { |
| 29 | _Data.Add(new SdkAccount(CAPI.ovr_SdkAccountArray_GetElement(a, (UIntPtr)i))); |
| 30 | } |
| 31 | |
| 32 | } |
| 33 | |
| 34 | } |
| 35 | } |