35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using System;
|
|
using Swarmops.Common.Interfaces;
|
|
|
|
namespace Swarmops.Basic.Types
|
|
{
|
|
public class BasicParleyOption : IHasIdentity
|
|
{
|
|
public BasicParleyOption (int parleyOptionId, int parleyId, string description, Int64 amountCents, bool active)
|
|
{
|
|
ParleyOptionId = parleyOptionId;
|
|
ParleyId = parleyId;
|
|
Description = description;
|
|
AmountCents = amountCents;
|
|
Active = active;
|
|
}
|
|
|
|
public BasicParleyOption (BasicParleyOption original)
|
|
: this (
|
|
original.ParleyOptionId, original.ParleyId, original.Description, original.AmountCents, original.Active)
|
|
{
|
|
// empty copy ctor
|
|
}
|
|
|
|
public int ParleyOptionId { get; private set; }
|
|
public int ParleyId { get; private set; }
|
|
public string Description { get; private set; }
|
|
public Int64 AmountCents { get; private set; }
|
|
public bool Active { get; protected set; }
|
|
|
|
public int Identity
|
|
{
|
|
get { return ParleyOptionId; }
|
|
}
|
|
}
|
|
} |