This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
snakeinabox/Assets/Oculus/Platform/Scripts/Models/PingResult.cs
2020-07-09 11:41:01 -07:00

28 lines
557 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;
}
}