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.
 
 
 

28 lines
557 B

namespace Oculus.Platform.Models
{
using UnityEngine;
using System;
using System.ComponentModel;
public class PingResult
{
public PingResult(UInt64 id, UInt64? pingTimeUsec) {
this.ID = id;
this.pingTimeUsec = pingTimeUsec;
}
public UInt64 ID { get; private set; }
public UInt64 PingTimeUsec {
get {
return pingTimeUsec.HasValue ? pingTimeUsec.Value : 0;
}
}
public bool IsTimeout {
get {
return !pingTimeUsec.HasValue;
}
}
private UInt64? pingTimeUsec;
}
}