FittsLaw/Assets/Oculus/Platform/Scripts/Models/PingResult.cs

29 lines
585 B
C#
Raw Normal View History

2018-10-14 23:33:23 -04:00
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;
}
}