Files
using.cash/Basic/Types/BasicCommunicationTurnaround.cs
T

48 lines
2.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
using Activizr.Basic.Interfaces;
namespace Activizr.Basic.Types
{
public class BasicCommunicationTurnaround: IHasIdentity
{
public BasicCommunicationTurnaround(int organizationId, int communicationTypeId, int communicationId, DateTime dateTimeOpened, DateTime dateTimeFirstResponse, int personIdFirstResponse, DateTime dateTimeClosed, int personIdClosed, bool open, bool responded)
{
this.OrganizationId = organizationId;
this.CommunicationTypeId = communicationTypeId;
this.CommunicationId = communicationId;
this.DateTimeOpened = dateTimeOpened;
this.DateTimeFirstResponse = dateTimeFirstResponse;
this.PersonIdFirstResponse = personIdFirstResponse;
this.DateTimeClosed = dateTimeClosed;
this.PersonIdClosed = personIdClosed;
this.Open = open;
this.Responded = responded;
}
public BasicCommunicationTurnaround (BasicCommunicationTurnaround original):
this (original.OrganizationId, original.CommunicationTypeId, original.CommunicationId, original.DateTimeOpened, original.DateTimeFirstResponse, original.PersonIdFirstResponse, original.DateTimeClosed, original.PersonIdClosed, original.Open, original.Responded)
{
// empty copy ctor
}
public int OrganizationId { get; private set; }
public int CommunicationTypeId { get; private set; }
public int CommunicationId { get; private set; }
public DateTime DateTimeOpened { get; private set; }
public DateTime DateTimeFirstResponse { get; protected set; }
public int PersonIdFirstResponse { get; protected set; }
public DateTime DateTimeClosed { get; protected set; }
public int PersonIdClosed { get; protected set; }
public bool Open { get; protected set; }
public bool Responded { get; protected set; }
public int Identity
{
get { return this.CommunicationId; } // ok, this isn't great, but wtf
}
}
}