Files
using.cash/Basic/Types/BasicParley.cs
T
2014-12-05 22:12:51 +01:00

66 lines
2.8 KiB
C#

using System;
using Swarmops.Basic.Interfaces;
namespace Swarmops.Basic.Types
{
public class BasicParley : IHasIdentity
{
public BasicParley (int parleyId, int organizationId, int personId, int budgetId, DateTime createdDateTime,
bool open, bool attested, string name, int geographyId, string description, string informationUrl,
DateTime startDate, DateTime endDate, Int64 budgetCents, Int64 guaranteeCents,
Int64 attendanceFeeCents, DateTime closedDateTime)
{
ParleyId = parleyId;
OrganizationId = organizationId;
PersonId = personId;
BudgetId = budgetId;
CreatedDateTime = createdDateTime;
Open = open;
Attested = attested;
Name = name;
GeographyId = geographyId;
Description = description;
InformationUrl = informationUrl;
StartDate = startDate;
EndDate = endDate;
BudgetCents = budgetCents;
GuaranteeCents = guaranteeCents;
AttendanceFeeCents = attendanceFeeCents;
ClosedDateTime = closedDateTime;
}
public BasicParley (BasicParley original)
: this (
original.ParleyId, original.OrganizationId, original.PersonId, original.BudgetId,
original.CreatedDateTime, original.Open, original.Attested, original.Name, original.GeographyId,
original.Description, original.InformationUrl, original.StartDate, original.EndDate,
original.BudgetCents, original.GuaranteeCents, original.AttendanceFeeCents, original.ClosedDateTime)
{
// empty copy ctor
}
public int ParleyId { get; private set; }
public int OrganizationId { get; private set; }
public int PersonId { get; private set; }
public int BudgetId { get; protected set; }
public bool Open { get; protected set; }
public string Name { get; protected set; }
public int GeographyId { get; protected set; }
public string Description { get; protected set; }
public string InformationUrl { get; protected set; }
public DateTime StartDate { get; protected set; }
public DateTime EndDate { get; protected set; }
public Int64 BudgetCents { get; protected set; }
public Int64 GuaranteeCents { get; protected set; }
public Int64 AttendanceFeeCents { get; protected set; }
public bool Attested { get; protected set; }
public DateTime CreatedDateTime { get; private set; }
public DateTime ClosedDateTime { get; protected set; }
public int Identity
{
get { return ParleyId; }
}
}
}