BlueGit

blue-star ggj-2020

Files

ggj-2020 / Assets / Oculus / Platform / Scripts / Models / PingResult.cs

PingResult.cs

Project Import
timfa Tim Falken · pushed by timfa · 6 years ago
b77834a1 History
PingResult.cs 557 B Download Raw
1namespace Oculus.Platform.Models
2{
3 using UnityEngine;
4 using System;
5 using System.ComponentModel;
6
7 public class PingResult
8 {
9 public PingResult(UInt64 id, UInt64? pingTimeUsec) {
10 this.ID = id;
11 this.pingTimeUsec = pingTimeUsec;
12 }
13
14 public UInt64 ID { get; private set; }
15 public UInt64 PingTimeUsec {
16 get {
17 return pingTimeUsec.HasValue ? pingTimeUsec.Value : 0;
18 }
19 }
20 public bool IsTimeout {
21 get {
22 return !pingTimeUsec.HasValue;
23 }
24 }
25
26 private UInt64? pingTimeUsec;
27 }
28}