Class ServiceLock
- Namespace
- Geotab.Checkmate.ObjectModel.Lock
- Assembly
- Geotab.Checkmate.ObjectModel.dll
public class ServiceLock : Entity, IEntity, IComparable, IIdentifiable
- Inheritance
-
ServiceLock
- Implements
- Inherited Members
Constructors
ServiceLock()
Initializes a new instance of the ServiceLock class.
public ServiceLock()
ServiceLock(Id?, LockType?, string?, string?, DateTime?)
Initializes a new instance of the ServiceLock class.
public ServiceLock(Id? id, LockType? lockType, string? subject, string? holderName, DateTime? dateTime)
Parameters
id
IdThe Id.
lockType
LockTypeThe LockType.
subject
stringThe Subject.
holderName
stringThe holder Name.
dateTime
DateTime?The DateTime.
ServiceLock(LockType, string)
Initializes a new instance of the ServiceLock class.
public ServiceLock(LockType lockType, string subject)
Parameters
Properties
DateTime
Gets or sets the UTC time of the last lock update.
public DateTime? DateTime { get; set; }
Property Value
- DateTime?
The holder time.
DefaultUpdateInterval
Gets default lock update interval.
public static TimeSpan DefaultUpdateInterval { get; }
Property Value
- TimeSpan
Default lock update interval.
HolderName
Gets or sets the Holder of the lock.
public string? HolderName { get; set; }
Property Value
- string
The holder Name.
Subject
Gets or sets the subject.
public string? Subject { get; set; }
Property Value
- string
The subject.
Type
Gets or sets the LockType of the lock.
public LockType? Type { get; set; }
Property Value
- LockType
The type.
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.
GetIdentity()
public object? GetIdentity()
Returns
- object
The identity instance or null value if the ServiceLock instance hasn't been added to the database.
GetIdentityName()
Gets the name of this entity that uniquely identifies it and is used when displaying this entity.
public string GetIdentityName()
Returns
- string
The name.