using System; using Swarmops.Basic.Interfaces; namespace Swarmops.Basic.Types { public class BasicPaymentGroup : IHasIdentity { public BasicPaymentGroup(int paymentGroupId, int organizationId, DateTime dateTime, int currencyId, Int64 amountCents, string tag, int createdByPersonId, DateTime createdDateTime, bool open) { PaymentGroupId = paymentGroupId; OrganizationId = organizationId; Tag = tag; DateTime = dateTime; AmountCents = amountCents; CurrencyId = currencyId; CreatedByPersonId = createdByPersonId; CreatedDateTime = createdDateTime; Open = open; } public BasicPaymentGroup(BasicPaymentGroup original) : this( original.PaymentGroupId, original.OrganizationId, original.DateTime, original.CurrencyId, original.AmountCents, original.Tag, original.CreatedByPersonId, original.CreatedDateTime, original.Open) { // empty copy ctor } public int PaymentGroupId { get; private set; } public int OrganizationId { get; private set; } public string Tag { get; protected set; } public DateTime DateTime { get; private set; } public Int64 AmountCents { get; protected set; } public int CurrencyId { get; private set; } public int CreatedByPersonId { get; private set; } public DateTime CreatedDateTime { get; private set; } public bool Open { get; protected set; } public int Identity { get { return PaymentGroupId; } } } }