Initialer Upload neues Unity-Projekt
This commit is contained in:
35
Assets/Oculus/Platform/Scripts/Models/BlockedUser.cs
Normal file
35
Assets/Oculus/Platform/Scripts/Models/BlockedUser.cs
Normal file
@ -0,0 +1,35 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class BlockedUser
|
||||
{
|
||||
/// user ID that has been blocked by the logged in user
|
||||
public readonly UInt64 Id;
|
||||
|
||||
|
||||
public BlockedUser(IntPtr o)
|
||||
{
|
||||
Id = CAPI.ovr_BlockedUser_GetId(o);
|
||||
}
|
||||
}
|
||||
|
||||
public class BlockedUserList : DeserializableList<BlockedUser> {
|
||||
public BlockedUserList(IntPtr a) {
|
||||
var count = (int)CAPI.ovr_BlockedUserArray_GetSize(a);
|
||||
_Data = new List<BlockedUser>(count);
|
||||
for (int i = 0; i < count; i++) {
|
||||
_Data.Add(new BlockedUser(CAPI.ovr_BlockedUserArray_GetElement(a, (UIntPtr)i)));
|
||||
}
|
||||
|
||||
_NextUrl = CAPI.ovr_BlockedUserArray_GetNextUrl(a);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user