40 lines
1.4 KiB
C#
40 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Activizr.Basic.Interfaces;
|
|
|
|
namespace Activizr.Basic.Types
|
|
{
|
|
public class BasicBallot: IHasIdentity
|
|
{
|
|
public BasicBallot (int ballotId, int electionId, int organizationId, int geographyId, string name, int count, string deliveryAddress)
|
|
{
|
|
this.BallotId = ballotId;
|
|
this.ElectionId = electionId;
|
|
this.OrganizationId = organizationId;
|
|
this.GeographyId = geographyId;
|
|
this.Name = name;
|
|
this.Count = count;
|
|
this.DeliveryAddress = deliveryAddress;
|
|
}
|
|
|
|
public BasicBallot (BasicBallot original)
|
|
:this (original.BallotId, original.ElectionId, original.OrganizationId, original.GeographyId, original.Name, original.Count, original.DeliveryAddress)
|
|
{
|
|
// empty copy ctor
|
|
}
|
|
|
|
public int BallotId { get; private set; }
|
|
public int ElectionId { get; private set; }
|
|
public int OrganizationId { get; private set; }
|
|
public int GeographyId { get; private set; }
|
|
public string Name { get; private set; }
|
|
public int Count { get; protected set; }
|
|
public string DeliveryAddress { get; protected set; }
|
|
public int Identity
|
|
{
|
|
get { return this.BallotId; }
|
|
}
|
|
}
|
|
}
|