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

  1. namespace Oculus.Platform.Models
  2. {
  3. using UnityEngine;
  4. using System;
  5. using System.ComponentModel;
  6. public class PingResult
  7. {
  8. public PingResult(UInt64 id, UInt64? pingTimeUsec) {
  9. this.ID = id;
  10. this.pingTimeUsec = pingTimeUsec;
  11. }
  12. public UInt64 ID { get; private set; }
  13. public UInt64 PingTimeUsec {
  14. get {
  15. return pingTimeUsec.HasValue ? pingTimeUsec.Value : 0;
  16. }
  17. }
  18. public bool IsTimeout {
  19. get {
  20. return !pingTimeUsec.HasValue;
  21. }
  22. }
  23. private UInt64? pingTimeUsec;
  24. }
  25. }