50 lines
1.5 KiB
C#
50 lines
1.5 KiB
C#
// 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 ChallengeEntry
|
|
{
|
|
public readonly string DisplayScore;
|
|
public readonly byte[] ExtraData;
|
|
public readonly UInt64 ID;
|
|
public readonly int Rank;
|
|
public readonly long Score;
|
|
public readonly DateTime Timestamp;
|
|
public readonly User User;
|
|
|
|
|
|
public ChallengeEntry(IntPtr o)
|
|
{
|
|
DisplayScore = CAPI.ovr_ChallengeEntry_GetDisplayScore(o);
|
|
ExtraData = CAPI.ovr_ChallengeEntry_GetExtraData(o);
|
|
ID = CAPI.ovr_ChallengeEntry_GetID(o);
|
|
Rank = CAPI.ovr_ChallengeEntry_GetRank(o);
|
|
Score = CAPI.ovr_ChallengeEntry_GetScore(o);
|
|
Timestamp = CAPI.ovr_ChallengeEntry_GetTimestamp(o);
|
|
User = new User(CAPI.ovr_ChallengeEntry_GetUser(o));
|
|
}
|
|
}
|
|
|
|
public class ChallengeEntryList : DeserializableList<ChallengeEntry> {
|
|
public ChallengeEntryList(IntPtr a) {
|
|
var count = (int)CAPI.ovr_ChallengeEntryArray_GetSize(a);
|
|
_Data = new List<ChallengeEntry>(count);
|
|
for (int i = 0; i < count; i++) {
|
|
_Data.Add(new ChallengeEntry(CAPI.ovr_ChallengeEntryArray_GetElement(a, (UIntPtr)i)));
|
|
}
|
|
|
|
TotalCount = CAPI.ovr_ChallengeEntryArray_GetTotalCount(a);
|
|
_PreviousUrl = CAPI.ovr_ChallengeEntryArray_GetPreviousUrl(a);
|
|
_NextUrl = CAPI.ovr_ChallengeEntryArray_GetNextUrl(a);
|
|
}
|
|
|
|
public readonly ulong TotalCount;
|
|
}
|
|
}
|