Table of Contents

Class Audit

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

Entry of events, operations and issues for tracking purposes. Entries can be added and read but cannot be edited.

[ReportClass]
public class Audit : NameEntityWithVersion, IEntity, IComparable, IIdentifiable, IVersion, IDateTimeProvider
Inheritance
Audit
Implements
Inherited Members

Constructors

Audit()

Initializes a new instance of the Audit class.

public Audit()

Audit(Audit)

Initializes a new instance of the Audit class.

protected Audit(Audit audit)

Parameters

audit Audit

The audit.

Audit(Id?, DateTime?, string?, string?, string?, User?)

Initializes a new instance of the Audit class.

public Audit(Id? id, DateTime? dateTime, string? name, string? comment, string? userName, User? user)

Parameters

id Id

The identifier.

dateTime DateTime?

The date time the audit was logged.

name string

The name.

comment string

The comment.

userName string

Name of the user.

user User

The user.

Properties

Comment

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

[ExcelColumnHeader(new ReportHeading[] { ReportHeading.AuditComment })]
public virtual string? Comment { get; set; }

Property Value

string

string

DateTime

Gets or sets the date and time the audit was logged.

[ExcelColumnHeader(new ReportHeading[] { ReportHeading.AuditDateTime })]
public virtual DateTime? DateTime { get; set; }

Property Value

DateTime?

string

Name

Gets or sets the audit type name.

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

Property Value

string

string

User

Gets or sets the User the audit is in reference to.

public virtual User? User { get; set; }

Property Value

User

object

UserName

Gets or sets the name of the user associated with the audit entry. Specifies the non-empty, validated myg user name for display in MyGeotab reports. Defaults to the authenticated account if null or blank.

[ExcelColumnHeader(new ReportHeading[] { ReportHeading.AuditUserName })]
public virtual string? UserName { get; set; }

Property Value

string

string

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.

GetReadOnly()

Creates a new object that is a read-only copy of the current instance.

public override IEntity GetReadOnly()

Returns

IEntity

Audit.AuditReadOnly