Class Recipient
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
The recipient for a specific notification. A recipient is linked to Rule(s) via a DistributionList. When a Rule is violated the DistributionList linked recipient receives a notification. The type of recipient is defined by it's RecipientType. Not all properties of this object will have a value at the same time they are dependent on the RecipientType. Recipient is represented by the string "NoRecipientId" where there is no recipient.
public class Recipient : Entity, IEntity, IComparable, IIdentifiable
- Inheritance
-
Recipient
- Implements
- Derived
- Inherited Members
Constructors
Recipient()
Initializes a new instance of the Recipient class.Initializes a new instance of the Recipient class.
public Recipient()
Recipient(Id?)
Initializes a new instance of the Recipient class.Initializes a new instance of the Recipient class.
public Recipient(Id? id)
Parameters
Recipient(Id?, User?, string?, RecipientType?, NotificationBinaryFile?, Group?, TripType?, DataModeType?)
Initializes a new instance of the Recipient class.Initializes a new instance of the Recipient class.
public Recipient(Id? id, User? user, string? email, RecipientType? recipientType, NotificationBinaryFile? notificationBinaryFile, Group? group, TripType? tripType = null, DataModeType? dataModeType = null)
Parameters
id
IdThe Id.
user
UserThe User this recipient points to, can be null.
email
stringThe email address this recipient refers too - can be empty.
recipientType
RecipientType?The RecipientType - this indicates the Notification mechanism.
notificationBinaryFile
NotificationBinaryFileThe NotificationBinaryFile, can be null.
group
GroupThe Group to add device to, can be null.
tripType
TripType?The TripType this recipient refers too - can be empty.
dataModeType
DataModeTypeThe DataModeType this recipient refers too - can be empty.
Recipient(Recipient)
Initializes a new instance of the Recipient class. Copy constructor - Initializes a new instance of the Recipient class.
public Recipient(Recipient recipient)
Parameters
Properties
Address
Gets or sets the email address used when sending notifications via Email.
public virtual string? Address { get; set; }
Property Value
DataModeType
Gets or sets the DataModeType to assign the related device to.
public DataModeType? DataModeType { get; set; }
Property Value
Group
Gets or sets the Group to assign the related device to.
public Group? Group { get; set; }
Property Value
NotificationBinaryFile
Gets or sets the NotificationBinaryFile to notify with.
public NotificationBinaryFile? NotificationBinaryFile { get; set; }
Property Value
RecipientType
Gets or sets the RecipientType (type of notification message) this instance refers to.
public virtual RecipientType? RecipientType { get; set; }
Property Value
TripType
Gets or sets the TripType to assign the related device to.
public TripType? TripType { get; set; }
Property Value
User
Gets or sets the User to receive notification.
public virtual User? User { 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 copy of the current instance.
SystemFromId(Id?)
Returns a system User from the provided system Id else null if its a not a system user.
public static Recipient? SystemFromId(Id? id)
Parameters
Returns
- Recipient
The recipient.