Class ConsentStatusAudit
- Namespace
- Geotab.Checkmate.ObjectModel.Consent
- Assembly
- Geotab.Checkmate.ObjectModel.dll
The audit records for consentstatus records.
public sealed class ConsentStatusAudit : EntityWithVersion, IEntity, IComparable, IIdentifiable, IVersion
- Inheritance
-
ConsentStatusAudit
- Implements
- Inherited Members
Constructors
ConsentStatusAudit()
Initializes a new instance of the ConsentStatusAudit class.
public ConsentStatusAudit()
ConsentStatusAudit(Id?, long?, ConsentStatus?, bool?, User?, User?, DateTime?, DateTime?)
Initializes a new instance of the ConsentStatusAudit class.
public ConsentStatusAudit(Id? id, long? version, ConsentStatus? consentStatus, bool? isGranted, User? user, User? consentBy, DateTime? start, DateTime? timestamp)
Parameters
id
IdThe Id of this entity.
version
long?The feed version.
consentStatus
ConsentStatusThe ConsentStatus that associates with this ConsentStatus.
isGranted
bool?The grant or denial of a consent/authorization.
user
UserThe user to whom the consent is for.
consentBy
UserThe user to whom provided the consent on behalf ot the user.
start
DateTime?The timestamp in which the original consent status was provided.
timestamp
DateTime?The timestamp in which the consent value has been provided.
Properties
ConsentBy
Gets or sets the user.
public User? ConsentBy { get; set; }
Property Value
- User
The user to whom provided the consent on behalf of the user.
ConsentStatus
Gets or sets the consent status ID.
public ConsentStatus? ConsentStatus { get; set; }
Property Value
- ConsentStatus
The consent status ID.
IsGranted
Gets or sets the Is Granted.
public bool? IsGranted { get; set; }
Property Value
- bool?
The grant or denial of a consent/authorization.
Start
Gets or sets the timestamp of the consent.
public DateTime? Start { get; set; }
Property Value
- DateTime?
The timestamp in which the original consent status was provided.
Timestamp
Gets or sets the timestamp of the consent last update.
public DateTime? Timestamp { get; set; }
Property Value
- DateTime?
The timestamp in which the original consent status changed.
User
Gets or sets the user.
public User? User { get; set; }
Property Value
- User
The user to whom the consent is for.
Methods
BuildConsentStatusAudit(ConsentStatus)
Builds a ConsentStatusAudit objects out of a ConsentStatus properties.
public static ConsentStatusAudit BuildConsentStatusAudit(ConsentStatus consentStatus)
Parameters
consentStatus
ConsentStatusThe ConsentStatus the audit will be built out of.
Returns
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.