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.

50 lines
1.5 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 User
  10. {
  11. public readonly UInt64 ID;
  12. public readonly string ImageURL;
  13. public readonly string InviteToken;
  14. public readonly string OculusID;
  15. public readonly string Presence;
  16. public readonly string PresenceDeeplinkMessage;
  17. public readonly string PresenceDestinationApiName;
  18. public readonly UserPresenceStatus PresenceStatus;
  19. public readonly string SmallImageUrl;
  20. public User(IntPtr o)
  21. {
  22. ID = CAPI.ovr_User_GetID(o);
  23. ImageURL = CAPI.ovr_User_GetImageUrl(o);
  24. InviteToken = CAPI.ovr_User_GetInviteToken(o);
  25. OculusID = CAPI.ovr_User_GetOculusID(o);
  26. Presence = CAPI.ovr_User_GetPresence(o);
  27. PresenceDeeplinkMessage = CAPI.ovr_User_GetPresenceDeeplinkMessage(o);
  28. PresenceDestinationApiName = CAPI.ovr_User_GetPresenceDestinationApiName(o);
  29. PresenceStatus = CAPI.ovr_User_GetPresenceStatus(o);
  30. SmallImageUrl = CAPI.ovr_User_GetSmallImageUrl(o);
  31. }
  32. }
  33. public class UserList : DeserializableList<User> {
  34. public UserList(IntPtr a) {
  35. var count = (int)CAPI.ovr_UserArray_GetSize(a);
  36. _Data = new List<User>(count);
  37. for (int i = 0; i < count; i++) {
  38. _Data.Add(new User(CAPI.ovr_UserArray_GetElement(a, (UIntPtr)i)));
  39. }
  40. _NextUrl = CAPI.ovr_UserArray_GetNextUrl(a);
  41. }
  42. }
  43. }