Table of Contents

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 Defect

The defect.

Defect(Id?)

Initializes a new instance of the Defect class.

public Defect(Id? id)

Parameters

id Id

The 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 Id

The Id.

parent Group

The parent Group.

name string

The name.

comments string

The comments.

reference string

The reference.

severity DefectSeverity?

The DefectSeverity.

assetType DefectAssetType?

The DefectAssetType.

defectGroups IList<Group>

The Defect Groups.

children List<Group>

The group children

path string

Ltree 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

DefectAssetType?

DefectAssetType

Color

Gets or sets the color used to render assets belonging to this defect.

public override Color? Color { get; set; }

Property Value

Color

Color

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

IList<Group>

IList<T>

IsDefectList

Gets a value indicating whether this is a list of defects.

public bool IsDefectList { get; }

Property Value

bool

bool

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

bool?

bool

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

bool?

bool

Severity

Gets or sets the DefectSeverity of the Defect.

public DefectSeverity? Severity { get; set; }

Property Value

DefectSeverity?

DefectSeverity

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.