80 lines
2.0 KiB
C#
80 lines
2.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Activizr.Basic.Interfaces;
|
|
|
|
namespace Activizr.Basic.Types
|
|
{
|
|
public class BasicOutboundMailRecipient : IHasIdentity
|
|
{
|
|
#region Creation and Construction
|
|
|
|
/// <summary>
|
|
/// Normal constructor.
|
|
/// </summary>
|
|
public BasicOutboundMailRecipient (int outboundMailRecipientId, int outboundMailId, int personId, bool asOfficer,int personType)
|
|
{
|
|
this.outboundMailId = outboundMailId;
|
|
this.outboundMailRecipientId = outboundMailRecipientId;
|
|
this.personId = personId;
|
|
this.asOfficer = asOfficer;
|
|
this.personType = personType;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Copy constructor.
|
|
/// </summary>
|
|
public BasicOutboundMailRecipient (BasicOutboundMailRecipient original)
|
|
: this(original.outboundMailRecipientId, original.outboundMailId, original.personId, original.asOfficer, original.personType)
|
|
{
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties and Accessors
|
|
|
|
public int OutboundMailRecipientId
|
|
{
|
|
get { return this.outboundMailRecipientId; }
|
|
}
|
|
|
|
public int OutboundMailId
|
|
{
|
|
get { return this.outboundMailId; }
|
|
}
|
|
|
|
public int PersonId
|
|
{
|
|
get { return this.personId; }
|
|
}
|
|
|
|
|
|
public int Identity
|
|
{
|
|
get { return this.OutboundMailRecipientId; }
|
|
}
|
|
|
|
|
|
public bool AsOfficer
|
|
{
|
|
get { return this.asOfficer; }
|
|
}
|
|
|
|
public int PersonType
|
|
{
|
|
get { return this.personType ; }
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Private fields
|
|
|
|
private int outboundMailRecipientId;
|
|
private int outboundMailId;
|
|
private int personId;
|
|
private bool asOfficer;
|
|
private int personType = 0; //0 = Person, 1 = Reporter
|
|
|
|
#endregion
|
|
}
|
|
} |