Class Defect
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Represents a Defect entity. This defines the one to one relationship between a DefectSeverity and Group.
public class Defect : Group, IEntity, IComparable, IIdentifiable, IDefaultable, IGroupLinked
- Inheritance
-
Defect
- Implements
- Derived
- Inherited Members
Constructors
Defect()
Initializes a new instance of the Defect class.
public Defect()
Defect(Defect)
Initializes a new instance of the Defect class.
protected Defect(Defect defect)
Parameters
defect
DefectThe defect.
Defect(Id?)
Initializes a new instance of the Defect class.
public Defect(Id? id)
Parameters
id
IdThe Id.
Defect(Id?, Group?, string?, string?, string?, DefectSeverity?, DefectAssetType?, IList<Group>?, List<Group>?, string?, bool?, bool?)
Initializes a new instance of the Defect class.
public Defect(Id? id, Group? parent, string? name = null, string? comments = null, string? reference = null, DefectSeverity? severity = null, DefectAssetType? assetType = null, IList<Group>? defectGroups = null, List<Group>? children = null, string? path = null, bool? isHidden = null, bool? isRequired = null)
Parameters
id
IdThe Id.
parent
GroupThe parent Group.
name
stringThe name.
comments
stringThe comments.
reference
stringThe reference.
severity
DefectSeverity?The DefectSeverity.
assetType
DefectAssetType?The DefectAssetType.
defectGroups
IList<Group>The Defect Groups.
children
List<Group>The group children
path
stringLtree path of the group
isHidden
bool?If the defect is hidden in the UI
isRequired
bool?If the defect must be signed off in the UI
Properties
AssetType
Gets or sets the DefectAssetType of the defect.
public DefectAssetType? AssetType { get; set; }
Property Value
Color
Gets or sets the color used to render assets belonging to this defect.
public override Color? Color { get; set; }
Property Value
Remarks
This cannot be set for this type of group.
Groups
Gets or sets the list of Defect groups.
public IList<Group>? Groups { get; set; }
Property Value
IsDefectList
Gets a value indicating whether this is a list of defects.
public bool IsDefectList { get; }
Property Value
IsHidden
Gets or sets a value indicating whether this defect is hidden in the UI. Used for parts to determine if 'other' should be shown or not.
public bool? IsHidden { get; set; }
Property Value
IsRequired
Gets or sets a value indicating whether this defect must be signed off on. Used for parts to determine if the part must be explicitly marked as having defect(s) or not.
public bool? IsRequired { get; set; }
Property Value
Severity
Gets or sets the DefectSeverity of the Defect.
public DefectSeverity? Severity { get; set; }
Property Value
Methods
Clone()
Creates a new object that is a copy of the current instance.
public override IEntity Clone()
Returns
- IEntity
A new object that is a copy of this instance.