Assignment for RMIT Mixed Reality in 2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.3 KiB

  1. // This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
  2. namespace Oculus.Platform.Models
  3. {
  4. using System;
  5. using System.Collections;
  6. using Oculus.Platform.Models;
  7. using System.Collections.Generic;
  8. using UnityEngine;
  9. public class InstalledApplication
  10. {
  11. public readonly string ApplicationId;
  12. public readonly string PackageName;
  13. public readonly string Status;
  14. public readonly int VersionCode;
  15. public readonly string VersionName;
  16. public InstalledApplication(IntPtr o)
  17. {
  18. ApplicationId = CAPI.ovr_InstalledApplication_GetApplicationId(o);
  19. PackageName = CAPI.ovr_InstalledApplication_GetPackageName(o);
  20. Status = CAPI.ovr_InstalledApplication_GetStatus(o);
  21. VersionCode = CAPI.ovr_InstalledApplication_GetVersionCode(o);
  22. VersionName = CAPI.ovr_InstalledApplication_GetVersionName(o);
  23. }
  24. }
  25. public class InstalledApplicationList : DeserializableList<InstalledApplication> {
  26. public InstalledApplicationList(IntPtr a) {
  27. var count = (int)CAPI.ovr_InstalledApplicationArray_GetSize(a);
  28. _Data = new List<InstalledApplication>(count);
  29. for (int i = 0; i < count; i++) {
  30. _Data.Add(new InstalledApplication(CAPI.ovr_InstalledApplicationArray_GetElement(a, (UIntPtr)i)));
  31. }
  32. }
  33. }
  34. }