Tanoda
FailedDevice.cs
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) Ultraleap, Inc. 2011-2020. *
3 * *
4 * Use subject to the terms of the Apache License 2.0 available at *
5 * http://www.apache.org/licenses/LICENSE-2.0, or another agreement *
6 * between Ultraleap and you, your company or other organization. *
7 ******************************************************************************/
8
9namespace Leap {
10 using System;
11
24 public class FailedDevice :
25 IEquatable<FailedDevice> {
26
27 public FailedDevice() {
28 Failure = FailureType.FAIL_UNKNOWN;
29 PnpId = "0";
30 }
31
37 public bool Equals(FailedDevice other) {
38 return PnpId == other.PnpId;
39 }
40
45 public string PnpId { get; private set; }
46
53 public FailureType Failure { get; private set; }
54
60 public enum FailureType {
64 FAIL_UNKNOWN,
68 FAIL_CALIBRATION,
72 FAIL_FIRMWARE,
76 FAIL_TRANSPORT,
80 FAIL_CONTROl
81 }
82 }
83}
The FailedDevice class provides information about Leap Motion hardware that has been physically conne...
Definition: FailedDevice.cs:25
FailureType Failure
The reason for device failure. The failure reasons are defined as members of the FailureType enumerat...
Definition: FailedDevice.cs:53
FailureType
The errors that can cause a device to fail to properly connect to the service.
Definition: FailedDevice.cs:60
string PnpId
The device plug-and-play id string.
Definition: FailedDevice.cs:45
bool Equals(FailedDevice other)
Test FailedDevice equality. True if the devices are the same.
Definition: FailedDevice.cs:37