BlueGit

blue-star ggj-2020

Files

ggj-2020 / Assets / Oculus / Platform / Scripts / Models / LinkedAccount.cs

LinkedAccount.cs

Project Import
timfa Tim Falken · pushed by timfa · 6 years ago
b77834a1 History
LinkedAccount.cs 1.0 KiB Download Raw
1// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
2
3namespace Oculus.Platform.Models
4{
5 using System;
6 using System.Collections;
7 using Oculus.Platform.Models;
8 using System.Collections.Generic;
9 using UnityEngine;
10
11 public class LinkedAccount
12 {
13 public readonly string AccessToken;
14 public readonly ServiceProvider ServiceProvider;
15 public readonly string UserId;
16
17
18 public LinkedAccount(IntPtr o)
19 {
20 AccessToken = CAPI.ovr_LinkedAccount_GetAccessToken(o);
21 ServiceProvider = CAPI.ovr_LinkedAccount_GetServiceProvider(o);
22 UserId = CAPI.ovr_LinkedAccount_GetUserId(o);
23 }
24 }
25
26 public class LinkedAccountList : DeserializableList<LinkedAccount> {
27 public LinkedAccountList(IntPtr a) {
28 var count = (int)CAPI.ovr_LinkedAccountArray_GetSize(a);
29 _Data = new List<LinkedAccount>(count);
30 for (int i = 0; i < count; i++) {
31 _Data.Add(new LinkedAccount(CAPI.ovr_LinkedAccountArray_GetElement(a, (UIntPtr)i)));
32 }
33
34 }
35
36 }
37}