FittsLaw/Assets/Oculus/Platform/Scripts/Models/PingResult.cs
2018-10-09 20:59:57 -04:00

29 lines
585 B
C#

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;
}
}