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

34 lines
979 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using Activizr.Basic.Interfaces;
namespace Activizr.Basic.Types
{
public class BasicElection: IHasIdentity
{
public BasicElection (int electionId, string name, int geographyId, DateTime date)
{
this.ElectionId = electionId;
this.Name = name;
this.GeographyId = geographyId;
this.Date = date;
}
public BasicElection (BasicElection original):
this (original.ElectionId, original.Name, original.GeographyId, original.Date)
{
// empty copy ctor
}
public int ElectionId { get; private set; }
public string Name { get; private set; }
public int GeographyId { get; private set; }
public DateTime Date { get; private set; }
public int Identity
{
get { return this.ElectionId; }
}
}
}