Table of Contents

Class WorkTimeSystem

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

A work time that is a system supplied work time.

public abstract class WorkTimeSystem : WorkTime, IEntity, IComparable, IIdentifiable, IDefaultable
Inheritance
WorkTimeSystem
Implements
Derived
Inherited Members

Constructors

WorkTimeSystem(Id?, string?, string?, WorkTimeHolidayGroupId?, List<WorkTimeDetail>?)

Initializes a new instance of the WorkTimeSystem class.

protected WorkTimeSystem(Id? id, string? name, string? comment, WorkTimeHolidayGroupId? workTimeHolidayGroupId, List<WorkTimeDetail>? workTimeDetails)

Parameters

id Id

The id.

name string

The name.

comment string

The comment.

workTimeHolidayGroupId WorkTimeHolidayGroupId

The WorkTimeHolidayGroupId.

workTimeDetails List<WorkTimeDetail>

The list of WorkTimeDetail(s).

WorkTimeSystem(WorkTime)

Initializes a new instance of the WorkTimeSystem class.

protected WorkTimeSystem(WorkTime workTime)

Parameters

workTime WorkTime

The WorkTime.

Properties

Comment

Gets or sets free text field where any user information can be stored and referenced for this entity.

public override string? Comment { get; set; }

Property Value

string

User comments.

Exceptions

NotSupportedException

Not supported.

HolidayGroup

Gets or sets the WorkTimeHolidayGroupId.

public override WorkTimeHolidayGroupId? HolidayGroup { get; set; }

Property Value

WorkTimeHolidayGroupId

WorkTimeHolidayGroupId ;.

Exceptions

NotSupportedException

Not supported.

Id

Gets or sets the unique identifier for this entity. see Id.

public override Id? Id { get; set; }

Property Value

Id

The Id .

Name

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

public override string? Name { get; set; }

Property Value

string

The name of this entity that uniquely identifies it and is used when displaying this entity.

Methods

Equals(object?)

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

public override bool Equals(object? obj)

Parameters

obj object

The WorkTime to compare with the current WorkTime.

Returns

bool

true if the specified WorkTime is equal to the current WorkTime; 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.