| 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 AssetDetails |
| 14 | { |
| 15 | public readonly UInt64 AssetId; |
| 16 | public readonly string AssetType; |
| 17 | public readonly string DownloadStatus; |
| 18 | public readonly string Filepath; |
| 19 | public readonly string IapStatus; |
| 20 | // May be null. Check before using. |
| 21 | public readonly LanguagePackInfo LanguageOptional; |
| 22 | [Obsolete("Deprecated in favor of LanguageOptional")] |
| 23 | public readonly LanguagePackInfo Language; |
| 24 | public readonly string Metadata; |
| 25 | |
| 26 | |
| 27 | public AssetDetails(IntPtr o) |
| 28 | { |
| 29 | AssetId = CAPI.ovr_AssetDetails_GetAssetId(o); |
| 30 | AssetType = CAPI.ovr_AssetDetails_GetAssetType(o); |
| 31 | DownloadStatus = CAPI.ovr_AssetDetails_GetDownloadStatus(o); |
| 32 | Filepath = CAPI.ovr_AssetDetails_GetFilepath(o); |
| 33 | IapStatus = CAPI.ovr_AssetDetails_GetIapStatus(o); |
| 34 | { |
| 35 | var pointer = CAPI.ovr_AssetDetails_GetLanguage(o); |
| 36 | Language = new LanguagePackInfo(pointer); |
| 37 | if (pointer == IntPtr.Zero) { |
| 38 | LanguageOptional = null; |
| 39 | } else { |
| 40 | LanguageOptional = Language; |
| 41 | } |
| 42 | } |
| 43 | Metadata = CAPI.ovr_AssetDetails_GetMetadata(o); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | public class AssetDetailsList : DeserializableList<AssetDetails> { |
| 48 | public AssetDetailsList(IntPtr a) { |
| 49 | var count = (int)CAPI.ovr_AssetDetailsArray_GetSize(a); |
| 50 | _Data = new List<AssetDetails>(count); |
| 51 | for (int i = 0; i < count; i++) { |
| 52 | _Data.Add(new AssetDetails(CAPI.ovr_AssetDetailsArray_GetElement(a, (UIntPtr)i))); |
| 53 | } |
| 54 | |
| 55 | } |
| 56 | |
| 57 | } |
| 58 | } |