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
AuditThe 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
IdThe identifier.
dateTime
DateTime?The date time the audit was logged.
name
stringThe name.
comment
stringThe comment.
userName
stringName of the user.
user
UserThe 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
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
Name
Gets or sets the audit type name.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.AuditName })]
public override string? Name { get; set; }
Property Value
User
Gets or sets the User the audit is in reference to.
public virtual User? User { get; set; }
Property Value
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
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()