39 lines
1007 B
C#
39 lines
1007 B
C#
using Swarmops.Basic.Types;
|
|
using Swarmops.Logic.Swarm;
|
|
|
|
namespace Swarmops.Logic.Governance
|
|
{
|
|
public class MeetingElectionVoter: BasicInternalPollVoter
|
|
{
|
|
private MeetingElectionVoter (BasicInternalPollVoter basic): base (basic)
|
|
{
|
|
// empty ctor
|
|
}
|
|
|
|
public static MeetingElectionVoter FromBasic (BasicInternalPollVoter basic)
|
|
{
|
|
return new MeetingElectionVoter(basic);
|
|
}
|
|
|
|
public Person Person
|
|
{
|
|
get
|
|
{
|
|
return Person.FromIdentity(base.PersonId);
|
|
}
|
|
}
|
|
|
|
public MeetingElection Poll
|
|
{
|
|
get { return MeetingElection.FromIdentity(base.InternalPollId); }
|
|
}
|
|
|
|
public InternalPollVoterStatus VoterStatus
|
|
{
|
|
get
|
|
{
|
|
return base.Open ? InternalPollVoterStatus.CanVote : InternalPollVoterStatus.HasAlreadyVoted;
|
|
}
|
|
}
|
|
}
|
|
} |