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 Product
  10. {
  11. public readonly string Description;
  12. public readonly string FormattedPrice;
  13. public readonly string Name;
  14. public readonly string Sku;
  15. public Product(IntPtr o)
  16. {
  17. Description = CAPI.ovr_Product_GetDescription(o);
  18. FormattedPrice = CAPI.ovr_Product_GetFormattedPrice(o);
  19. Name = CAPI.ovr_Product_GetName(o);
  20. Sku = CAPI.ovr_Product_GetSKU(o);
  21. }
  22. }
  23. public class ProductList : DeserializableList<Product> {
  24. public ProductList(IntPtr a) {
  25. var count = (int)CAPI.ovr_ProductArray_GetSize(a);
  26. _Data = new List<Product>(count);
  27. for (int i = 0; i < count; i++) {
  28. _Data.Add(new Product(CAPI.ovr_ProductArray_GetElement(a, (UIntPtr)i)));
  29. }
  30. _NextUrl = CAPI.ovr_ProductArray_GetNextUrl(a);
  31. }
  32. }
  33. }