Table of Contents

Class Source

Namespace
Geotab.Checkmate.ObjectModel.Engine
Assembly
Geotab.Checkmate.ObjectModel.dll

The source is the underlying producer of the engine data.

[ReportClass]
public abstract class Source : NameEntity, IEntity, IComparable, IIdentifiable
Inheritance
Source
Implements
Derived
Inherited Members

Constructors

Source()

Initializes a new instance of the Source class.

protected Source()

Source(Id, string)

Initializes a new instance of the Source class.

protected Source(Id id, string name)

Parameters

id Id

The Id.

name string

The name.

Properties

Id

Gets or sets the unique identifier for this entity.

[ExcelColumnHeader(new ReportHeading[] { ReportHeading.SourceId })]
public override Id? Id { get; set; }

Property Value

Id

Id

Name

Gets or sets the name of this entity which identifies it and is used when displaying this entity.

[ExcelColumnHeader(new ReportHeading[] { ReportHeading.SourceName })]
public override string? Name { get; set; }

Property Value

string

string

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object ; otherwise, false.

GetHashCode()

Serves as a hash function for a particular type. GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table.

public override int GetHashCode()

Returns

int

A hash code for the current object.

IsSystemEntity()

Returns true if the class is a system entity, false otherwise.

public override bool IsSystemEntity()

Returns

bool

true if the entity is a system entity; otherwise, false.

SystemFromId(Id?)

Returns a system Source from the provided system Id else null if it's not a system Source.

public static Source? SystemFromId(Id? id)

Parameters

id Id

The id.

Returns

Source

The Source.