Class ComponentScanResult
- Namespace
- Acuit.Pinpoint.Workstation
- Assembly
- Acuit.Pinpoint.Workstation.Interfaces.dll
The result of a component scan request.
public class ComponentScanResult
- Inheritance
-
ComponentScanResult
- Inherited Members
Constructors
ComponentScanResult(bool, string, UnitComponent, bool)
Initializes a new instance of the ComponentScanResult class.
public ComponentScanResult(bool isValid, string reasonInvalid, UnitComponent unitComponent, bool isCanceled)
Parameters
isValid
boolWhether a valid component scan exists, whether or not one occurred as a result of this component scan request.
reasonInvalid
stringThe reason that the component is invalid, if it is invalid.
unitComponent
UnitComponentThe unit component information if a new component scan was recorded, or null if one was not recorded.
isCanceled
boolWhether the component scan was canceled or skipped by the operator.
Properties
IsCanceled
Gets whether the component scan was canceled or skipped by the operator.
public bool IsCanceled { get; }
Property Value
IsValid
Gets whether a valid component scan exists, whether or not one occurred as a result of this component scan request.
public bool IsValid { get; }
Property Value
Remarks
If a new component scan occurred, this will be the same as the IsValid property of UnitComponent. If a component scan did not occur for any reason (e.g., a valid scan already exists when the SkipIfHaveValid option is set, or the component scan was canceled or skipped), this will reflect the last component scan result, if one exists, for the component.
ReasonInvalid
Gets the reason that the component is invalid, if it is invalid.
public string ReasonInvalid { get; }
Property Value
UnitComponent
Gets the unit component information if a new component scan was recorded, or null if one was not recorded.
public UnitComponent UnitComponent { get; }