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.

40 lines
1.0 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 Purchase
  10. {
  11. public readonly DateTime ExpirationTime;
  12. public readonly DateTime GrantTime;
  13. public readonly UInt64 ID;
  14. public readonly string Sku;
  15. public Purchase(IntPtr o)
  16. {
  17. ExpirationTime = CAPI.ovr_Purchase_GetExpirationTime(o);
  18. GrantTime = CAPI.ovr_Purchase_GetGrantTime(o);
  19. ID = CAPI.ovr_Purchase_GetPurchaseID(o);
  20. Sku = CAPI.ovr_Purchase_GetSKU(o);
  21. }
  22. }
  23. public class PurchaseList : DeserializableList<Purchase> {
  24. public PurchaseList(IntPtr a) {
  25. var count = (int)CAPI.ovr_PurchaseArray_GetSize(a);
  26. _Data = new List<Purchase>(count);
  27. for (int i = 0; i < count; i++) {
  28. _Data.Add(new Purchase(CAPI.ovr_PurchaseArray_GetElement(a, (UIntPtr)i)));
  29. }
  30. _NextUrl = CAPI.ovr_PurchaseArray_GetNextUrl(a);
  31. }
  32. }
  33. }