diff --git a/Basic/Basic.csproj b/Basic/Basic.csproj
index 7c76b7f8..dd2daa6a 100644
--- a/Basic/Basic.csproj
+++ b/Basic/Basic.csproj
@@ -59,15 +59,15 @@
-
-
+
+
-
-
-
-
+
+
+
+
@@ -95,88 +95,88 @@
-
+
-
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
-
+
+
+
+
-
+
-
-
-
-
+
+
+
+
Code
-
+
True
True
Settings.settings
-
-
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
+
+
+
diff --git a/Basic/Types/BasicDocument.cs b/Basic/Types/Common/BasicDocument.cs
similarity index 94%
rename from Basic/Types/BasicDocument.cs
rename to Basic/Types/Common/BasicDocument.cs
index 04079f72..7e1fda90 100644
--- a/Basic/Types/BasicDocument.cs
+++ b/Basic/Types/Common/BasicDocument.cs
@@ -1,97 +1,97 @@
-using System;
-using Swarmops.Basic.Enums;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicDocument : IHasIdentity
- {
- private readonly string clientFileName;
- private readonly int documentId;
- private readonly DocumentType documentType;
- private readonly Int64 fileSize;
- private readonly int foreignId;
- private readonly int uploadedByPersonId;
- private readonly DateTime uploadedDateTime;
- private string description;
- private string serverFileName;
-
- #region IHasIdentity Members
-
- public int Identity
- {
- get { return DocumentId; }
- }
-
- #endregion
-
- public BasicDocument (int documentId, string serverFileName, string clientFileName, string description,
- DocumentType documentType, int foreignId, Int64 fileSize, int uploadedByPersonId, DateTime uploadedDateTime)
- {
- this.documentId = documentId;
- this.serverFileName = serverFileName;
- this.clientFileName = clientFileName;
- this.description = description;
- this.documentType = documentType;
- this.foreignId = foreignId;
- this.fileSize = fileSize;
- this.uploadedByPersonId = uploadedByPersonId;
- this.uploadedDateTime = uploadedDateTime;
- }
-
- public BasicDocument (BasicDocument original) :
- this (original.documentId, original.serverFileName, original.clientFileName, original.description,
- original.documentType, original.foreignId, original.fileSize, original.uploadedByPersonId,
- original.uploadedDateTime)
- {
- // empty ctor apart from calling the other one
- }
-
- public int DocumentId
- {
- get { return this.documentId; }
- }
-
- public string ServerFileName
- {
- get { return this.serverFileName; }
- protected set { this.serverFileName = value; }
- }
-
- public string ClientFileName
- {
- get { return this.clientFileName; }
- }
-
- public string Description
- {
- get { return this.description; }
- protected set { this.description = value; }
- }
-
- public DocumentType DocumentType
- {
- get { return this.documentType; }
- }
-
- public int ForeignId
- {
- get { return this.foreignId; }
- }
-
- public Int64 FileSize
- {
- get { return this.fileSize; }
- }
-
- public int UploadedByPersonId
- {
- get { return this.uploadedByPersonId; }
- }
-
- public DateTime UploadedDateTime
- {
- get { return this.uploadedDateTime; }
- }
- }
+using System;
+using Swarmops.Basic.Enums;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Common
+{
+ public class BasicDocument : IHasIdentity
+ {
+ private readonly string clientFileName;
+ private readonly int documentId;
+ private readonly DocumentType documentType;
+ private readonly Int64 fileSize;
+ private readonly int foreignId;
+ private readonly int uploadedByPersonId;
+ private readonly DateTime uploadedDateTime;
+ private string description;
+ private string serverFileName;
+
+ #region IHasIdentity Members
+
+ public int Identity
+ {
+ get { return this.DocumentId; }
+ }
+
+ #endregion
+
+ public BasicDocument (int documentId, string serverFileName, string clientFileName, string description,
+ DocumentType documentType, int foreignId, Int64 fileSize, int uploadedByPersonId, DateTime uploadedDateTime)
+ {
+ this.documentId = documentId;
+ this.serverFileName = serverFileName;
+ this.clientFileName = clientFileName;
+ this.description = description;
+ this.documentType = documentType;
+ this.foreignId = foreignId;
+ this.fileSize = fileSize;
+ this.uploadedByPersonId = uploadedByPersonId;
+ this.uploadedDateTime = uploadedDateTime;
+ }
+
+ public BasicDocument (BasicDocument original) :
+ this (original.documentId, original.serverFileName, original.clientFileName, original.description,
+ original.documentType, original.foreignId, original.fileSize, original.uploadedByPersonId,
+ original.uploadedDateTime)
+ {
+ // empty ctor apart from calling the other one
+ }
+
+ public int DocumentId
+ {
+ get { return this.documentId; }
+ }
+
+ public string ServerFileName
+ {
+ get { return this.serverFileName; }
+ protected set { this.serverFileName = value; }
+ }
+
+ public string ClientFileName
+ {
+ get { return this.clientFileName; }
+ }
+
+ public string Description
+ {
+ get { return this.description; }
+ protected set { this.description = value; }
+ }
+
+ public DocumentType DocumentType
+ {
+ get { return this.documentType; }
+ }
+
+ public int ForeignId
+ {
+ get { return this.foreignId; }
+ }
+
+ public Int64 FileSize
+ {
+ get { return this.fileSize; }
+ }
+
+ public int UploadedByPersonId
+ {
+ get { return this.uploadedByPersonId; }
+ }
+
+ public DateTime UploadedDateTime
+ {
+ get { return this.uploadedDateTime; }
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/Common/XmlSerializableDictionary.cs b/Basic/Types/Common/XmlSerializableDictionary.cs
new file mode 100644
index 00000000..7b0b6b00
--- /dev/null
+++ b/Basic/Types/Common/XmlSerializableDictionary.cs
@@ -0,0 +1,74 @@
+using System.Collections.Generic;
+using System.Xml;
+using System.Xml.Schema;
+using System.Xml.Serialization;
+
+namespace Swarmops.Basic.Types.Common
+{
+ [XmlRoot ("dictionary")]
+ public class SerializableDictionary
+ : Dictionary, IXmlSerializable
+ {
+ #region IXmlSerializable Members
+
+ public XmlSchema GetSchema()
+ {
+ return null;
+ }
+
+ public void ReadXml (XmlReader reader)
+ {
+ XmlSerializer keySerializer = new XmlSerializer (typeof (TKey));
+ XmlSerializer valueSerializer = new XmlSerializer (typeof (TValue));
+
+ bool wasEmpty = reader.IsEmptyElement;
+ reader.Read();
+
+ if (wasEmpty)
+ return;
+
+ while (reader.NodeType != XmlNodeType.EndElement)
+ {
+ reader.ReadStartElement ("item");
+
+ reader.ReadStartElement ("key");
+ TKey key = (TKey) keySerializer.Deserialize (reader);
+ reader.ReadEndElement();
+
+ reader.ReadStartElement ("value");
+ TValue value = (TValue) valueSerializer.Deserialize (reader);
+ reader.ReadEndElement();
+
+ Add (key, value);
+
+ reader.ReadEndElement();
+ reader.MoveToContent();
+ }
+ reader.ReadEndElement();
+ }
+
+ public void WriteXml (XmlWriter writer)
+ {
+ XmlSerializer keySerializer = new XmlSerializer (typeof (TKey));
+ XmlSerializer valueSerializer = new XmlSerializer (typeof (TValue));
+
+ foreach (TKey key in Keys)
+ {
+ writer.WriteStartElement ("item");
+
+ writer.WriteStartElement ("key");
+ keySerializer.Serialize (writer, key);
+ writer.WriteEndElement();
+
+ writer.WriteStartElement ("value");
+ TValue value = this[key];
+ valueSerializer.Serialize (writer, value);
+ writer.WriteEndElement();
+
+ writer.WriteEndElement();
+ }
+ }
+
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/Basic/Types/BasicCommunicationTurnaround.cs b/Basic/Types/Communications/BasicCommunicationTurnaround.cs
similarity index 70%
rename from Basic/Types/BasicCommunicationTurnaround.cs
rename to Basic/Types/Communications/BasicCommunicationTurnaround.cs
index e8377e0a..7b0d221b 100644
--- a/Basic/Types/BasicCommunicationTurnaround.cs
+++ b/Basic/Types/Communications/BasicCommunicationTurnaround.cs
@@ -1,50 +1,50 @@
-using System;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicCommunicationTurnaround : IHasIdentity
- {
- public BasicCommunicationTurnaround (int organizationId, int communicationTypeId, int communicationId,
- DateTime dateTimeOpened, DateTime dateTimeFirstResponse, int personIdFirstResponse, DateTime dateTimeClosed,
- int personIdClosed, bool open, bool responded)
- {
- OrganizationId = organizationId;
- CommunicationTypeId = communicationTypeId;
- CommunicationId = communicationId;
- DateTimeOpened = dateTimeOpened;
- DateTimeFirstResponse = dateTimeFirstResponse;
- PersonIdFirstResponse = personIdFirstResponse;
- DateTimeClosed = dateTimeClosed;
- PersonIdClosed = personIdClosed;
- Open = open;
- Responded = responded;
- }
-
- public BasicCommunicationTurnaround (BasicCommunicationTurnaround original) :
- this (
- original.OrganizationId, original.CommunicationTypeId, original.CommunicationId, original.DateTimeOpened,
- original.DateTimeFirstResponse, original.PersonIdFirstResponse, original.DateTimeClosed,
- original.PersonIdClosed, original.Open, original.Responded)
- {
- // empty copy ctor
- }
-
-
- public int OrganizationId { get; private set; }
- public int CommunicationTypeId { get; private set; }
- public int CommunicationId { get; private set; }
- public DateTime DateTimeOpened { get; private set; }
- public DateTime DateTimeFirstResponse { get; protected set; }
- public int PersonIdFirstResponse { get; protected set; }
- public DateTime DateTimeClosed { get; protected set; }
- public int PersonIdClosed { get; protected set; }
- public bool Open { get; protected set; }
- public bool Responded { get; protected set; }
-
- public int Identity
- {
- get { return CommunicationId; } // ok, this isn't great, but wtf
- }
- }
+using System;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Communications
+{
+ public class BasicCommunicationTurnaround : IHasIdentity
+ {
+ public BasicCommunicationTurnaround (int organizationId, int communicationTypeId, int communicationId,
+ DateTime dateTimeOpened, DateTime dateTimeFirstResponse, int personIdFirstResponse, DateTime dateTimeClosed,
+ int personIdClosed, bool open, bool responded)
+ {
+ this.OrganizationId = organizationId;
+ this.CommunicationTypeId = communicationTypeId;
+ this.CommunicationId = communicationId;
+ this.DateTimeOpened = dateTimeOpened;
+ this.DateTimeFirstResponse = dateTimeFirstResponse;
+ this.PersonIdFirstResponse = personIdFirstResponse;
+ this.DateTimeClosed = dateTimeClosed;
+ this.PersonIdClosed = personIdClosed;
+ this.Open = open;
+ this.Responded = responded;
+ }
+
+ public BasicCommunicationTurnaround (BasicCommunicationTurnaround original) :
+ this (
+ original.OrganizationId, original.CommunicationTypeId, original.CommunicationId, original.DateTimeOpened,
+ original.DateTimeFirstResponse, original.PersonIdFirstResponse, original.DateTimeClosed,
+ original.PersonIdClosed, original.Open, original.Responded)
+ {
+ // empty copy ctor
+ }
+
+
+ public int OrganizationId { get; private set; }
+ public int CommunicationTypeId { get; private set; }
+ public int CommunicationId { get; private set; }
+ public DateTime DateTimeOpened { get; private set; }
+ public DateTime DateTimeFirstResponse { get; protected set; }
+ public int PersonIdFirstResponse { get; protected set; }
+ public DateTime DateTimeClosed { get; protected set; }
+ public int PersonIdClosed { get; protected set; }
+ public bool Open { get; protected set; }
+ public bool Responded { get; protected set; }
+
+ public int Identity
+ {
+ get { return this.CommunicationId; } // ok, this isn't great, but wtf
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicMailTemplate.cs b/Basic/Types/Communications/BasicMailTemplate.cs
similarity index 94%
rename from Basic/Types/BasicMailTemplate.cs
rename to Basic/Types/Communications/BasicMailTemplate.cs
index 8be5dd06..14bed453 100644
--- a/Basic/Types/BasicMailTemplate.cs
+++ b/Basic/Types/Communications/BasicMailTemplate.cs
@@ -1,84 +1,84 @@
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicMailTemplate : IHasIdentity
- {
- private readonly string countryCode;
- private readonly string languageCode;
- private readonly int organizationId;
- private readonly int templateId;
- private readonly string templateName;
- private string templateBody;
-
- ///
- /// Basic constructor.
- ///
- public BasicMailTemplate (int templateId,
- string templateName,
- string languageCode,
- string countryCode,
- int organizationId,
- string templateBody)
- {
- this.templateId = templateId;
- this.templateName = templateName;
- this.languageCode = languageCode;
- this.countryCode = countryCode;
- this.organizationId = organizationId;
- this.templateBody = templateBody;
- }
-
-
- ///
- /// Copy constructor.
- ///
- public BasicMailTemplate (BasicMailTemplate original)
- : this (original.templateId,
- original.templateName,
- original.languageCode,
- original.countryCode,
- original.organizationId,
- original.templateBody)
- {
- }
-
- public int TemplateId
- {
- get { return this.templateId; }
- }
-
-
- public string TemplateName
- {
- get { return this.templateName; }
- }
-
- public string LanguageCode
- {
- get { return this.languageCode; }
- }
-
- public string CountryCode
- {
- get { return this.countryCode; }
- }
-
- public int OrganizationId
- {
- get { return this.organizationId; }
- }
-
-
- public string TemplateBody
- {
- get { return this.templateBody; }
- set { this.templateBody = value; }
- }
-
- public int Identity
- {
- get { return this.templateId; }
- }
- }
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Communications
+{
+ public class BasicMailTemplate : IHasIdentity
+ {
+ private readonly string countryCode;
+ private readonly string languageCode;
+ private readonly int organizationId;
+ private readonly int templateId;
+ private readonly string templateName;
+ private string templateBody;
+
+ ///
+ /// Basic constructor.
+ ///
+ public BasicMailTemplate (int templateId,
+ string templateName,
+ string languageCode,
+ string countryCode,
+ int organizationId,
+ string templateBody)
+ {
+ this.templateId = templateId;
+ this.templateName = templateName;
+ this.languageCode = languageCode;
+ this.countryCode = countryCode;
+ this.organizationId = organizationId;
+ this.templateBody = templateBody;
+ }
+
+
+ ///
+ /// Copy constructor.
+ ///
+ public BasicMailTemplate (BasicMailTemplate original)
+ : this (original.templateId,
+ original.templateName,
+ original.languageCode,
+ original.countryCode,
+ original.organizationId,
+ original.templateBody)
+ {
+ }
+
+ public int TemplateId
+ {
+ get { return this.templateId; }
+ }
+
+
+ public string TemplateName
+ {
+ get { return this.templateName; }
+ }
+
+ public string LanguageCode
+ {
+ get { return this.languageCode; }
+ }
+
+ public string CountryCode
+ {
+ get { return this.countryCode; }
+ }
+
+ public int OrganizationId
+ {
+ get { return this.organizationId; }
+ }
+
+
+ public string TemplateBody
+ {
+ get { return this.templateBody; }
+ set { this.templateBody = value; }
+ }
+
+ public int Identity
+ {
+ get { return this.templateId; }
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicNewsletter.cs b/Basic/Types/Communications/BasicNewsletter.cs
similarity index 93%
rename from Basic/Types/BasicNewsletter.cs
rename to Basic/Types/Communications/BasicNewsletter.cs
index ceca985f..a4b57e7d 100644
--- a/Basic/Types/BasicNewsletter.cs
+++ b/Basic/Types/Communications/BasicNewsletter.cs
@@ -1,96 +1,96 @@
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- ///
- /// This class encapsulates a single newsletter.
- ///
- public class BasicNewsletter : IHasIdentity
- {
- private readonly int authorId;
- private readonly string body;
- private readonly int geographyId;
- private readonly string introduction;
- private readonly int newsletterFeedId;
- private readonly int newsletterId;
- private readonly int newsletterTemplateId;
- private readonly int organizationId;
- private readonly string title;
-
- public BasicNewsletter (int newsletterId, string title, string introduction, string body,
- int authorId, int templateId, int feedId)
- {
- this.newsletterId = newsletterId;
- this.newsletterFeedId = feedId;
- this.title = title;
- this.introduction = introduction;
- this.body = body;
- this.authorId = authorId;
- this.newsletterTemplateId = templateId;
- this.newsletterFeedId = feedId;
- }
-
- public BasicNewsletter (int newsletterId, string title, string introduction, string body,
- int authorId, int templateId, int feedId, int organizationId, int geographyId)
- :
- this (newsletterId, title, introduction, body, authorId, templateId, feedId)
- {
- this.organizationId = organizationId;
- this.geographyId = geographyId;
- }
-
- public int NewsletterId
- {
- get { return this.newsletterId; }
- }
-
- public string Title
- {
- get { return this.title; }
- }
-
- public string Introduction
- {
- get { return this.introduction; }
- }
-
- public string Body
- {
- get { return this.body; }
- }
-
- public int AuthorId
- {
- get { return this.authorId; }
- }
-
- public int NewsletterFeedId
- {
- get { return this.newsletterFeedId; }
- }
-
- public int NewsletterTemplateId
- {
- get { return this.newsletterTemplateId; }
- }
-
- public int OrganizationId
- {
- get { return this.organizationId; }
- }
-
- public int GeographyId
- {
- get { return this.geographyId; }
- }
-
- #region IHasIdentity Members
-
- int IHasIdentity.Identity
- {
- get { return NewsletterId; }
- }
-
- #endregion
- }
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Communications
+{
+ ///
+ /// This class encapsulates a single newsletter.
+ ///
+ public class BasicNewsletter : IHasIdentity
+ {
+ private readonly int authorId;
+ private readonly string body;
+ private readonly int geographyId;
+ private readonly string introduction;
+ private readonly int newsletterFeedId;
+ private readonly int newsletterId;
+ private readonly int newsletterTemplateId;
+ private readonly int organizationId;
+ private readonly string title;
+
+ public BasicNewsletter (int newsletterId, string title, string introduction, string body,
+ int authorId, int templateId, int feedId)
+ {
+ this.newsletterId = newsletterId;
+ this.newsletterFeedId = feedId;
+ this.title = title;
+ this.introduction = introduction;
+ this.body = body;
+ this.authorId = authorId;
+ this.newsletterTemplateId = templateId;
+ this.newsletterFeedId = feedId;
+ }
+
+ public BasicNewsletter (int newsletterId, string title, string introduction, string body,
+ int authorId, int templateId, int feedId, int organizationId, int geographyId)
+ :
+ this (newsletterId, title, introduction, body, authorId, templateId, feedId)
+ {
+ this.organizationId = organizationId;
+ this.geographyId = geographyId;
+ }
+
+ public int NewsletterId
+ {
+ get { return this.newsletterId; }
+ }
+
+ public string Title
+ {
+ get { return this.title; }
+ }
+
+ public string Introduction
+ {
+ get { return this.introduction; }
+ }
+
+ public string Body
+ {
+ get { return this.body; }
+ }
+
+ public int AuthorId
+ {
+ get { return this.authorId; }
+ }
+
+ public int NewsletterFeedId
+ {
+ get { return this.newsletterFeedId; }
+ }
+
+ public int NewsletterTemplateId
+ {
+ get { return this.newsletterTemplateId; }
+ }
+
+ public int OrganizationId
+ {
+ get { return this.organizationId; }
+ }
+
+ public int GeographyId
+ {
+ get { return this.geographyId; }
+ }
+
+ #region IHasIdentity Members
+
+ int IHasIdentity.Identity
+ {
+ get { return this.NewsletterId; }
+ }
+
+ #endregion
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicNewsletterFeed.cs b/Basic/Types/Communications/BasicNewsletterFeed.cs
similarity index 94%
rename from Basic/Types/BasicNewsletterFeed.cs
rename to Basic/Types/Communications/BasicNewsletterFeed.cs
index 14d6e41f..18d043dc 100644
--- a/Basic/Types/BasicNewsletterFeed.cs
+++ b/Basic/Types/Communications/BasicNewsletterFeed.cs
@@ -1,43 +1,43 @@
-namespace Swarmops.Basic.Types
-{
- public class BasicNewsletterFeed
- {
- ///
- /// If true, a new member in the owning organization will get this newsletter.
- ///
- public readonly bool DefaultSubscribed;
-
- ///
- /// A friendly name for the newsletter.
- ///
- public readonly string Name;
-
- ///
- /// The database identity of the newsletter feed.
- ///
- public readonly int NewsletterFeedId;
-
- ///
- /// The identity of the organization that owns this newsletter.
- ///
- public readonly int OrganizationId;
-
- public BasicNewsletterFeed (int newsletterId, int organizationId, bool defaultSubscribed, string name)
- {
- this.NewsletterFeedId = newsletterId;
- this.OrganizationId = organizationId;
- this.DefaultSubscribed = defaultSubscribed;
- this.Name = name;
- }
-
- public BasicNewsletterFeed()
- {
- this.Name = string.Empty;
- }
-
- public BasicNewsletterFeed (BasicNewsletterFeed original)
- : this (original.NewsletterFeedId, original.OrganizationId, original.DefaultSubscribed, original.Name)
- {
- }
- }
+namespace Swarmops.Basic.Types.Communications
+{
+ public class BasicNewsletterFeed
+ {
+ ///
+ /// If true, a new member in the owning organization will get this newsletter.
+ ///
+ public readonly bool DefaultSubscribed;
+
+ ///
+ /// A friendly name for the newsletter.
+ ///
+ public readonly string Name;
+
+ ///
+ /// The database identity of the newsletter feed.
+ ///
+ public readonly int NewsletterFeedId;
+
+ ///
+ /// The identity of the organization that owns this newsletter.
+ ///
+ public readonly int OrganizationId;
+
+ public BasicNewsletterFeed (int newsletterId, int organizationId, bool defaultSubscribed, string name)
+ {
+ this.NewsletterFeedId = newsletterId;
+ this.OrganizationId = organizationId;
+ this.DefaultSubscribed = defaultSubscribed;
+ this.Name = name;
+ }
+
+ public BasicNewsletterFeed()
+ {
+ this.Name = string.Empty;
+ }
+
+ public BasicNewsletterFeed (BasicNewsletterFeed original)
+ : this (original.NewsletterFeedId, original.OrganizationId, original.DefaultSubscribed, original.Name)
+ {
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicNewsletterTemplate.cs b/Basic/Types/Communications/BasicNewsletterTemplate.cs
similarity index 87%
rename from Basic/Types/BasicNewsletterTemplate.cs
rename to Basic/Types/Communications/BasicNewsletterTemplate.cs
index dd2b7e68..c286c3f1 100644
--- a/Basic/Types/BasicNewsletterTemplate.cs
+++ b/Basic/Types/Communications/BasicNewsletterTemplate.cs
@@ -1,14 +1,14 @@
-namespace Swarmops.Basic.Types
-{
- public class BasicNewsletterTemplate
- {
- public string HtmlTemplate;
- public string TextTemplate;
-
- public BasicNewsletterTemplate (string htmlTemplate, string textTemplate)
- {
- this.HtmlTemplate = htmlTemplate;
- this.TextTemplate = textTemplate;
- }
- }
+namespace Swarmops.Basic.Types.Communications
+{
+ public class BasicNewsletterTemplate
+ {
+ public string HtmlTemplate;
+ public string TextTemplate;
+
+ public BasicNewsletterTemplate (string htmlTemplate, string textTemplate)
+ {
+ this.HtmlTemplate = htmlTemplate;
+ this.TextTemplate = textTemplate;
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicOutboundMail.cs b/Basic/Types/Communications/BasicOutboundMail.cs
similarity index 95%
rename from Basic/Types/BasicOutboundMail.cs
rename to Basic/Types/Communications/BasicOutboundMail.cs
index ed332158..fe2dcb91 100644
--- a/Basic/Types/BasicOutboundMail.cs
+++ b/Basic/Types/Communications/BasicOutboundMail.cs
@@ -1,220 +1,220 @@
-using System;
-using Swarmops.Basic.Enums;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicOutboundMail : IHasIdentity
- {
- #region Construction and Creation
-
- // =============================
- // CONSTRUCTION AND CREATION
- // =============================
-
-
- ///
- /// Basic constructor. This is for database use and NOT for public construction.
- ///
- public BasicOutboundMail (int outboundMailId, MailAuthorType authorType, int authorPersonId, string title,
- string body, int mailPriority, int mailTypeId, int organizationId,
- int geographyId,
- DateTime createdDateTime, DateTime releaseDateTime, bool readyForPickup, bool resolved,
- bool processed,
- DateTime resolvedDateTime, DateTime startProcessDateTime, DateTime endProcessDateTime,
- int recipientCount, int recipientsSuccess, int recipientsFail)
- {
- this.outboundMailId = outboundMailId;
- this.authorType = authorType;
- this.authorPersonId = authorPersonId;
- this.title = title;
- this.body = body;
- this.mailPriority = mailPriority;
- this.mailType = mailTypeId;
- this.geographyId = geographyId;
- this.organizationId = organizationId;
- this.createdDateTime = createdDateTime;
- this.releaseDateTime = releaseDateTime;
- this.readyForPickup = readyForPickup;
- this.resolved = resolved;
- this.processed = processed;
- this.resolvedDateTime = resolvedDateTime;
- this.startProcessDateTime = startProcessDateTime;
- this.endProcessDateTime = endProcessDateTime;
- this.recipientCount = recipientCount;
- this.recipientsSuccess = recipientsSuccess;
- this.recipientsFail = recipientsFail;
-
- // phew.
- }
-
- ///
- /// Constructor used by OutboundMail after creating record in db. NOT for other use
- ///
- public BasicOutboundMail (int outboundMailId, MailAuthorType authorType, int authorPersonId, string title,
- string body, int mailPriority, int mailType, int organizationId,
- int geographyId, DateTime createdDateTime, DateTime releaseDateTime)
- : this (outboundMailId, authorType, authorPersonId, title, body,
- mailPriority, mailType, organizationId, geographyId,
- createdDateTime, releaseDateTime,
- false, false, false, DateTime.MinValue, DateTime.MinValue, DateTime.MinValue, 0, 0, 0)
- {
- // nothing more to do
- }
-
- ///
- /// Copy constructor. Used when PirateWeb.Logic constructs an OutboundMail object.
- ///
- /// The original to copy.
- public BasicOutboundMail (BasicOutboundMail original)
- : this (
- original.outboundMailId, original.authorType, original.authorPersonId, original.title,
- original.body, original.mailPriority, original.mailType,
- original.organizationId, original.geographyId, original.createdDateTime, original.releaseDateTime,
- original.readyForPickup, original.resolved, original.processed,
- original.resolvedDateTime, original.startProcessDateTime, original.endProcessDateTime,
- original.recipientCount, original.recipientsSuccess, original.recipientsFail)
- {
- // nothing more to do after copying fields
- }
-
- #endregion
-
- #region Properties and Accessors
-
- // ============================
- // PROPERTIES AND ACCESSORS
- // ============================
-
-
- public int OutboundMailId
- {
- get { return this.outboundMailId; }
- }
-
- public MailAuthorType AuthorType
- {
- get { return this.authorType; }
- }
-
- public int AuthorPersonId
- {
- get { return this.authorPersonId; }
- }
-
- public string Title
- {
- get { return this.title; }
- protected set { this.title = value; }
- }
-
- public string Body
- {
- get { return this.body; }
- }
-
- public int OrganizationId
- {
- get { return this.organizationId; }
- }
-
- public int GeographyId
- {
- get { return this.geographyId; }
- }
-
- public int MailPriority
- {
- get { return this.mailPriority; }
- }
-
- public int MailType
- {
- get { return this.mailType; }
- }
-
- public DateTime ReleaseDateTime
- {
- get { return this.releaseDateTime; }
- }
-
- public DateTime StartProcessDateTime
- {
- get { return this.startProcessDateTime; }
- set { this.startProcessDateTime = value; }
- }
-
- public bool ReadyForPickup
- {
- get { return this.readyForPickup; }
- set { this.readyForPickup = value; }
- }
-
- public bool Resolved
- {
- get { return this.resolved; }
- set { this.resolved = value; }
- }
-
- public bool Processed
- {
- get { return this.processed; }
- set { this.processed = value; }
- }
-
- public int RecipientCount
- {
- get { return this.recipientCount; }
- set { this.recipientCount = value; }
- }
-
- public int RecipientsSuccess
- {
- get { return this.recipientsSuccess; }
- set { this.recipientsSuccess = value; }
- }
-
- public int RecipientsFail
- {
- get { return this.recipientsFail; }
- set { this.recipientsFail = value; }
- }
-
- public int Identity
- {
- get { return OutboundMailId; }
- }
-
- #endregion
-
- #region Private fields
-
- // ==================
- // PRIVATE FIELDS
- // ==================
-
-
- private readonly int authorPersonId;
- private readonly MailAuthorType authorType;
- private readonly string body;
- private readonly DateTime createdDateTime;
- private readonly DateTime endProcessDateTime;
- private readonly int geographyId;
- private readonly int mailPriority;
- private readonly int mailType;
- private readonly int organizationId;
- private readonly int outboundMailId;
- private readonly DateTime releaseDateTime;
- private readonly DateTime resolvedDateTime;
- private bool processed;
- private bool readyForPickup;
- private int recipientCount;
- private int recipientsFail;
- private int recipientsSuccess;
- private bool resolved;
- private DateTime startProcessDateTime;
- private string title;
-
- #endregion
- }
+using System;
+using Swarmops.Basic.Enums;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Communications
+{
+ public class BasicOutboundMail : IHasIdentity
+ {
+ #region Construction and Creation
+
+ // =============================
+ // CONSTRUCTION AND CREATION
+ // =============================
+
+
+ ///
+ /// Basic constructor. This is for database use and NOT for public construction.
+ ///
+ public BasicOutboundMail (int outboundMailId, MailAuthorType authorType, int authorPersonId, string title,
+ string body, int mailPriority, int mailTypeId, int organizationId,
+ int geographyId,
+ DateTime createdDateTime, DateTime releaseDateTime, bool readyForPickup, bool resolved,
+ bool processed,
+ DateTime resolvedDateTime, DateTime startProcessDateTime, DateTime endProcessDateTime,
+ int recipientCount, int recipientsSuccess, int recipientsFail)
+ {
+ this.outboundMailId = outboundMailId;
+ this.authorType = authorType;
+ this.authorPersonId = authorPersonId;
+ this.title = title;
+ this.body = body;
+ this.mailPriority = mailPriority;
+ this.mailType = mailTypeId;
+ this.geographyId = geographyId;
+ this.organizationId = organizationId;
+ this.createdDateTime = createdDateTime;
+ this.releaseDateTime = releaseDateTime;
+ this.readyForPickup = readyForPickup;
+ this.resolved = resolved;
+ this.processed = processed;
+ this.resolvedDateTime = resolvedDateTime;
+ this.startProcessDateTime = startProcessDateTime;
+ this.endProcessDateTime = endProcessDateTime;
+ this.recipientCount = recipientCount;
+ this.recipientsSuccess = recipientsSuccess;
+ this.recipientsFail = recipientsFail;
+
+ // phew.
+ }
+
+ ///
+ /// Constructor used by OutboundMail after creating record in db. NOT for other use
+ ///
+ public BasicOutboundMail (int outboundMailId, MailAuthorType authorType, int authorPersonId, string title,
+ string body, int mailPriority, int mailType, int organizationId,
+ int geographyId, DateTime createdDateTime, DateTime releaseDateTime)
+ : this (outboundMailId, authorType, authorPersonId, title, body,
+ mailPriority, mailType, organizationId, geographyId,
+ createdDateTime, releaseDateTime,
+ false, false, false, DateTime.MinValue, DateTime.MinValue, DateTime.MinValue, 0, 0, 0)
+ {
+ // nothing more to do
+ }
+
+ ///
+ /// Copy constructor. Used when PirateWeb.Logic constructs an OutboundMail object.
+ ///
+ /// The original to copy.
+ public BasicOutboundMail (BasicOutboundMail original)
+ : this (
+ original.outboundMailId, original.authorType, original.authorPersonId, original.title,
+ original.body, original.mailPriority, original.mailType,
+ original.organizationId, original.geographyId, original.createdDateTime, original.releaseDateTime,
+ original.readyForPickup, original.resolved, original.processed,
+ original.resolvedDateTime, original.startProcessDateTime, original.endProcessDateTime,
+ original.recipientCount, original.recipientsSuccess, original.recipientsFail)
+ {
+ // nothing more to do after copying fields
+ }
+
+ #endregion
+
+ #region Properties and Accessors
+
+ // ============================
+ // PROPERTIES AND ACCESSORS
+ // ============================
+
+
+ public int OutboundMailId
+ {
+ get { return this.outboundMailId; }
+ }
+
+ public MailAuthorType AuthorType
+ {
+ get { return this.authorType; }
+ }
+
+ public int AuthorPersonId
+ {
+ get { return this.authorPersonId; }
+ }
+
+ public string Title
+ {
+ get { return this.title; }
+ protected set { this.title = value; }
+ }
+
+ public string Body
+ {
+ get { return this.body; }
+ }
+
+ public int OrganizationId
+ {
+ get { return this.organizationId; }
+ }
+
+ public int GeographyId
+ {
+ get { return this.geographyId; }
+ }
+
+ public int MailPriority
+ {
+ get { return this.mailPriority; }
+ }
+
+ public int MailType
+ {
+ get { return this.mailType; }
+ }
+
+ public DateTime ReleaseDateTime
+ {
+ get { return this.releaseDateTime; }
+ }
+
+ public DateTime StartProcessDateTime
+ {
+ get { return this.startProcessDateTime; }
+ set { this.startProcessDateTime = value; }
+ }
+
+ public bool ReadyForPickup
+ {
+ get { return this.readyForPickup; }
+ set { this.readyForPickup = value; }
+ }
+
+ public bool Resolved
+ {
+ get { return this.resolved; }
+ set { this.resolved = value; }
+ }
+
+ public bool Processed
+ {
+ get { return this.processed; }
+ set { this.processed = value; }
+ }
+
+ public int RecipientCount
+ {
+ get { return this.recipientCount; }
+ set { this.recipientCount = value; }
+ }
+
+ public int RecipientsSuccess
+ {
+ get { return this.recipientsSuccess; }
+ set { this.recipientsSuccess = value; }
+ }
+
+ public int RecipientsFail
+ {
+ get { return this.recipientsFail; }
+ set { this.recipientsFail = value; }
+ }
+
+ public int Identity
+ {
+ get { return this.OutboundMailId; }
+ }
+
+ #endregion
+
+ #region Private fields
+
+ // ==================
+ // PRIVATE FIELDS
+ // ==================
+
+
+ private readonly int authorPersonId;
+ private readonly MailAuthorType authorType;
+ private readonly string body;
+ private readonly DateTime createdDateTime;
+ private readonly DateTime endProcessDateTime;
+ private readonly int geographyId;
+ private readonly int mailPriority;
+ private readonly int mailType;
+ private readonly int organizationId;
+ private readonly int outboundMailId;
+ private readonly DateTime releaseDateTime;
+ private readonly DateTime resolvedDateTime;
+ private bool processed;
+ private bool readyForPickup;
+ private int recipientCount;
+ private int recipientsFail;
+ private int recipientsSuccess;
+ private bool resolved;
+ private DateTime startProcessDateTime;
+ private string title;
+
+ #endregion
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicOutboundMailRecipient.cs b/Basic/Types/Communications/BasicOutboundMailRecipient.cs
similarity index 92%
rename from Basic/Types/BasicOutboundMailRecipient.cs
rename to Basic/Types/Communications/BasicOutboundMailRecipient.cs
index 1ea1bd7d..16e4d5ea 100644
--- a/Basic/Types/BasicOutboundMailRecipient.cs
+++ b/Basic/Types/Communications/BasicOutboundMailRecipient.cs
@@ -1,79 +1,79 @@
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicOutboundMailRecipient : IHasIdentity
- {
- #region Creation and Construction
-
- ///
- /// Normal constructor.
- ///
- public BasicOutboundMailRecipient (int outboundMailRecipientId, int outboundMailId, int personId, bool asOfficer,
- int personType)
- {
- this.outboundMailId = outboundMailId;
- this.outboundMailRecipientId = outboundMailRecipientId;
- this.personId = personId;
- this.asOfficer = asOfficer;
- this.personType = personType;
- }
-
- ///
- /// Copy constructor.
- ///
- public BasicOutboundMailRecipient (BasicOutboundMailRecipient original)
- : this (
- original.outboundMailRecipientId, original.outboundMailId, original.personId, original.asOfficer,
- original.personType)
- {
- }
-
- #endregion
-
- #region Properties and Accessors
-
- public int OutboundMailRecipientId
- {
- get { return this.outboundMailRecipientId; }
- }
-
- public int OutboundMailId
- {
- get { return this.outboundMailId; }
- }
-
- public int PersonId
- {
- get { return this.personId; }
- }
-
-
- public bool AsOfficer
- {
- get { return this.asOfficer; }
- }
-
- public int PersonType
- {
- get { return this.personType; }
- }
-
- public int Identity
- {
- get { return OutboundMailRecipientId; }
- }
-
- #endregion
-
- #region Private fields
-
- private readonly bool asOfficer;
- private readonly int outboundMailId;
- private readonly int outboundMailRecipientId;
- private readonly int personId;
- private readonly int personType; //0 = Person, 1 = Reporter
-
- #endregion
- }
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Communications
+{
+ public class BasicOutboundMailRecipient : IHasIdentity
+ {
+ #region Creation and Construction
+
+ ///
+ /// Normal constructor.
+ ///
+ public BasicOutboundMailRecipient (int outboundMailRecipientId, int outboundMailId, int personId, bool asOfficer,
+ int personType)
+ {
+ this.outboundMailId = outboundMailId;
+ this.outboundMailRecipientId = outboundMailRecipientId;
+ this.personId = personId;
+ this.asOfficer = asOfficer;
+ this.personType = personType;
+ }
+
+ ///
+ /// Copy constructor.
+ ///
+ public BasicOutboundMailRecipient (BasicOutboundMailRecipient original)
+ : this (
+ original.outboundMailRecipientId, original.outboundMailId, original.personId, original.asOfficer,
+ original.personType)
+ {
+ }
+
+ #endregion
+
+ #region Properties and Accessors
+
+ public int OutboundMailRecipientId
+ {
+ get { return this.outboundMailRecipientId; }
+ }
+
+ public int OutboundMailId
+ {
+ get { return this.outboundMailId; }
+ }
+
+ public int PersonId
+ {
+ get { return this.personId; }
+ }
+
+
+ public bool AsOfficer
+ {
+ get { return this.asOfficer; }
+ }
+
+ public int PersonType
+ {
+ get { return this.personType; }
+ }
+
+ public int Identity
+ {
+ get { return this.OutboundMailRecipientId; }
+ }
+
+ #endregion
+
+ #region Private fields
+
+ private readonly bool asOfficer;
+ private readonly int outboundMailId;
+ private readonly int outboundMailRecipientId;
+ private readonly int personId;
+ private readonly int personType; //0 = Person, 1 = Reporter
+
+ #endregion
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicPaperLetter.cs b/Basic/Types/Communications/BasicPaperLetter.cs
similarity index 73%
rename from Basic/Types/BasicPaperLetter.cs
rename to Basic/Types/Communications/BasicPaperLetter.cs
index cba92d0e..281b01da 100644
--- a/Basic/Types/BasicPaperLetter.cs
+++ b/Basic/Types/Communications/BasicPaperLetter.cs
@@ -1,55 +1,55 @@
-using System;
-using Swarmops.Basic.Enums;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicPaperLetter : IHasIdentity
- {
- public BasicPaperLetter (int paperLetterId, int organizationId, string fromName, string replyAddress,
- DateTime receivedDate, int toPersonId, RoleType toPersonInRole, bool personal, int uploadedByPersonId,
- DateTime uploadedDateTime)
- {
- PaperLetterId = paperLetterId;
- OrganizationId = organizationId;
- FromName = fromName;
- ReplyAddress = replyAddress;
- ReceivedDate = receivedDate;
- ToPersonId = toPersonId;
- ToPersonInRole = toPersonInRole;
- Personal = personal;
- UploadedByPersonId = uploadedByPersonId;
- UploadedDateTime = uploadedDateTime;
- }
-
- public BasicPaperLetter (BasicPaperLetter original)
- : this (original.PaperLetterId, original.OrganizationId, original.FromName, original.ReplyAddress,
- original.ReceivedDate, original.ToPersonId, original.ToPersonInRole, original.Personal,
- original.UploadedByPersonId,
- original.UploadedDateTime)
- {
- // empty copy ctor
- }
-
- public int PaperLetterId { get; private set; }
- public int OrganizationId { get; protected set; }
- public string FromName { get; protected set; }
- public string ReplyAddress { get; protected set; }
- public int ToPersonId { get; protected set; }
- public RoleType ToPersonInRole { get; protected set; }
- public int GeographyId { get; protected set; }
- public bool Personal { get; protected set; }
- public DateTime ReceivedDate { get; protected set; }
- public int UploadedByPersonId { get; private set; }
- public DateTime UploadedDateTime { get; private set; }
-
- #region IHasIdentity Members
-
- public int Identity
- {
- get { return PaperLetterId; }
- }
-
- #endregion
- }
+using System;
+using Swarmops.Basic.Enums;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Communications
+{
+ public class BasicPaperLetter : IHasIdentity
+ {
+ public BasicPaperLetter (int paperLetterId, int organizationId, string fromName, string replyAddress,
+ DateTime receivedDate, int toPersonId, RoleType toPersonInRole, bool personal, int uploadedByPersonId,
+ DateTime uploadedDateTime)
+ {
+ this.PaperLetterId = paperLetterId;
+ this.OrganizationId = organizationId;
+ this.FromName = fromName;
+ this.ReplyAddress = replyAddress;
+ this.ReceivedDate = receivedDate;
+ this.ToPersonId = toPersonId;
+ this.ToPersonInRole = toPersonInRole;
+ this.Personal = personal;
+ this.UploadedByPersonId = uploadedByPersonId;
+ this.UploadedDateTime = uploadedDateTime;
+ }
+
+ public BasicPaperLetter (BasicPaperLetter original)
+ : this (original.PaperLetterId, original.OrganizationId, original.FromName, original.ReplyAddress,
+ original.ReceivedDate, original.ToPersonId, original.ToPersonInRole, original.Personal,
+ original.UploadedByPersonId,
+ original.UploadedDateTime)
+ {
+ // empty copy ctor
+ }
+
+ public int PaperLetterId { get; private set; }
+ public int OrganizationId { get; protected set; }
+ public string FromName { get; protected set; }
+ public string ReplyAddress { get; protected set; }
+ public int ToPersonId { get; protected set; }
+ public RoleType ToPersonInRole { get; protected set; }
+ public int GeographyId { get; protected set; }
+ public bool Personal { get; protected set; }
+ public DateTime ReceivedDate { get; protected set; }
+ public int UploadedByPersonId { get; private set; }
+ public DateTime UploadedDateTime { get; private set; }
+
+ #region IHasIdentity Members
+
+ public int Identity
+ {
+ get { return this.PaperLetterId; }
+ }
+
+ #endregion
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicCurrency.cs b/Basic/Types/Financial/BasicCurrency.cs
similarity index 74%
rename from Basic/Types/BasicCurrency.cs
rename to Basic/Types/Financial/BasicCurrency.cs
index 58b1c79f..2240f2d7 100644
--- a/Basic/Types/BasicCurrency.cs
+++ b/Basic/Types/Financial/BasicCurrency.cs
@@ -1,32 +1,32 @@
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicCurrency : IHasIdentity
- {
- public BasicCurrency (int currencyId, string code, string name, string sign)
- {
- CurrencyId = currencyId;
- Code = code;
- Name = name;
- Sign = sign;
- }
-
- public BasicCurrency (BasicCurrency original)
- : this (original.CurrencyId, original.Code, original.Name, original.Sign)
- {
- // empty copy ctor
- }
-
-
- public int CurrencyId { get; private set; }
- public string Code { get; private set; }
- public string Name { get; private set; }
- public string Sign { get; private set; }
-
- public int Identity
- {
- get { return CurrencyId; }
- }
- }
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Financial
+{
+ public class BasicCurrency : IHasIdentity
+ {
+ public BasicCurrency (int currencyId, string code, string name, string sign)
+ {
+ this.CurrencyId = currencyId;
+ this.Code = code;
+ this.Name = name;
+ this.Sign = sign;
+ }
+
+ public BasicCurrency (BasicCurrency original)
+ : this (original.CurrencyId, original.Code, original.Name, original.Sign)
+ {
+ // empty copy ctor
+ }
+
+
+ public int CurrencyId { get; private set; }
+ public string Code { get; private set; }
+ public string Name { get; private set; }
+ public string Sign { get; private set; }
+
+ public int Identity
+ {
+ get { return this.CurrencyId; }
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicExpenseClaim.cs b/Basic/Types/Financial/BasicExpenseClaim.cs
similarity index 76%
rename from Basic/Types/BasicExpenseClaim.cs
rename to Basic/Types/Financial/BasicExpenseClaim.cs
index 7cad8ed9..e3ec7a59 100644
--- a/Basic/Types/BasicExpenseClaim.cs
+++ b/Basic/Types/Financial/BasicExpenseClaim.cs
@@ -1,73 +1,73 @@
-using System;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicExpenseClaim : IHasIdentity
- {
- public readonly int GeographyId;
- public readonly int OrganizationId;
-
- ///
- /// Normal constructor
- ///
- public BasicExpenseClaim (int expenseClaimId, int claimingPersonId, DateTime createdDateTime,
- bool open, bool attested, bool documented, bool claimed, int organizationId,
- int geographyId, int budgetId, DateTime expenseDate,
- string description, double preApprovedAmount, Int64 amountCents, bool repaid, bool keepSeparate)
- {
- ExpenseClaimId = expenseClaimId;
- ClaimingPersonId = claimingPersonId;
- CreatedDateTime = createdDateTime;
- Open = open;
- Attested = attested;
- Validated = documented;
- Claimed = claimed;
- this.OrganizationId = organizationId;
- this.GeographyId = geographyId;
- BudgetId = budgetId;
- ExpenseDate = expenseDate;
- Description = description;
- PreApprovedAmount = preApprovedAmount;
- AmountCents = amountCents;
- Repaid = repaid;
- KeepSeparate = keepSeparate;
- }
-
- ///
- /// Copy constructor
- ///
- public BasicExpenseClaim (BasicExpenseClaim original)
- : this (original.Identity, original.ClaimingPersonId, original.CreatedDateTime,
- original.Open, original.Attested, original.Validated, original.Claimed,
- original.OrganizationId, original.GeographyId, original.BudgetId,
- original.ExpenseDate, original.Description,
- original.PreApprovedAmount, original.AmountCents, original.Repaid, original.KeepSeparate)
- {
- }
-
-
- public int ExpenseClaimId { get; private set; }
- public DateTime ExpenseDate { get; protected set; }
- public string Description { get; protected set; }
- public Int64 AmountCents { get; protected set; }
- public double PreApprovedAmount { get; private set; }
- public int ClaimingPersonId { get; private set; }
- public int BudgetId { get; protected set; }
- public DateTime CreatedDateTime { get; private set; }
- public bool Validated { get; protected set; }
- public bool Open { get; protected set; }
- public bool Attested { get; protected set; }
- public bool Repaid { get; protected set; }
- public bool KeepSeparate { get; protected set; }
- public bool Claimed { get; protected set; }
-
-
- // The fields below are not just encapsulated yet
-
- public int Identity
- {
- get { return ExpenseClaimId; }
- }
- }
+using System;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Financial
+{
+ public class BasicExpenseClaim : IHasIdentity
+ {
+ public readonly int GeographyId;
+ public readonly int OrganizationId;
+
+ ///
+ /// Normal constructor
+ ///
+ public BasicExpenseClaim (int expenseClaimId, int claimingPersonId, DateTime createdDateTime,
+ bool open, bool attested, bool documented, bool claimed, int organizationId,
+ int geographyId, int budgetId, DateTime expenseDate,
+ string description, double preApprovedAmount, Int64 amountCents, bool repaid, bool keepSeparate)
+ {
+ this.ExpenseClaimId = expenseClaimId;
+ this.ClaimingPersonId = claimingPersonId;
+ this.CreatedDateTime = createdDateTime;
+ this.Open = open;
+ this.Attested = attested;
+ this.Validated = documented;
+ this.Claimed = claimed;
+ this.OrganizationId = organizationId;
+ this.GeographyId = geographyId;
+ this.BudgetId = budgetId;
+ this.ExpenseDate = expenseDate;
+ this.Description = description;
+ this.PreApprovedAmount = preApprovedAmount;
+ this.AmountCents = amountCents;
+ this.Repaid = repaid;
+ this.KeepSeparate = keepSeparate;
+ }
+
+ ///
+ /// Copy constructor
+ ///
+ public BasicExpenseClaim (BasicExpenseClaim original)
+ : this (original.Identity, original.ClaimingPersonId, original.CreatedDateTime,
+ original.Open, original.Attested, original.Validated, original.Claimed,
+ original.OrganizationId, original.GeographyId, original.BudgetId,
+ original.ExpenseDate, original.Description,
+ original.PreApprovedAmount, original.AmountCents, original.Repaid, original.KeepSeparate)
+ {
+ }
+
+
+ public int ExpenseClaimId { get; private set; }
+ public DateTime ExpenseDate { get; protected set; }
+ public string Description { get; protected set; }
+ public Int64 AmountCents { get; protected set; }
+ public double PreApprovedAmount { get; private set; }
+ public int ClaimingPersonId { get; private set; }
+ public int BudgetId { get; protected set; }
+ public DateTime CreatedDateTime { get; private set; }
+ public bool Validated { get; protected set; }
+ public bool Open { get; protected set; }
+ public bool Attested { get; protected set; }
+ public bool Repaid { get; protected set; }
+ public bool KeepSeparate { get; protected set; }
+ public bool Claimed { get; protected set; }
+
+
+ // The fields below are not just encapsulated yet
+
+ public int Identity
+ {
+ get { return this.ExpenseClaimId; }
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicInboundInvoice.cs b/Basic/Types/Financial/BasicInboundInvoice.cs
similarity index 72%
rename from Basic/Types/BasicInboundInvoice.cs
rename to Basic/Types/Financial/BasicInboundInvoice.cs
index aee203bd..3b52c3c7 100644
--- a/Basic/Types/BasicInboundInvoice.cs
+++ b/Basic/Types/Financial/BasicInboundInvoice.cs
@@ -1,62 +1,62 @@
-using System;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicInboundInvoice : IHasIdentity
- {
- public BasicInboundInvoice (int inboundInvoiceId, int organizationId, DateTime createdDateTime,
- DateTime dueDate, Int64 amountCents, int budgetId, string supplier, string
- payToAccount, string ocr, string invoiceReference, bool attested, bool open,
- DateTime closedDateTime, int closedByPersonId)
- {
- InboundInvoiceId = inboundInvoiceId;
- OrganizationId = organizationId;
- CreatedDateTime = createdDateTime;
- DueDate = dueDate;
- AmountCents = amountCents;
- BudgetId = budgetId;
- Supplier = supplier;
- PayToAccount = payToAccount;
- Ocr = ocr;
- InvoiceReference = invoiceReference;
- Attested = attested;
- Open = open;
- ClosedDateTime = closedDateTime;
- ClosedByPersonId = closedByPersonId;
- }
-
- public BasicInboundInvoice (BasicInboundInvoice original)
- : this (original.InboundInvoiceId, original.OrganizationId, original.CreatedDateTime,
- original.DueDate, original.AmountCents, original.BudgetId,
- original.Supplier, original.PayToAccount, original.Ocr, original.InvoiceReference,
- original.Attested, original.Open, original.ClosedDateTime, original.ClosedByPersonId)
- {
- // empty copy ctor
- }
-
- public int InboundInvoiceId { get; private set; }
- public DateTime CreatedDateTime { get; private set; }
- public DateTime DueDate { get; protected set; }
- public int BudgetId { get; protected set; }
- public bool Attested { get; protected set; }
- public bool Open { get; protected set; }
- public string PayToAccount { get; protected set; }
- public string Ocr { get; protected set; }
- public string InvoiceReference { get; protected set; }
- public DateTime ClosedDateTime { get; protected set; }
- public int ClosedByPersonId { get; protected set; }
- public int OrganizationId { get; protected set; }
- public string Supplier { get; protected set; }
- public Int64 AmountCents { get; protected set; }
-
- #region IHasIdentity Members
-
- public int Identity
- {
- get { return InboundInvoiceId; }
- }
-
- #endregion
- }
+using System;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Financial
+{
+ public class BasicInboundInvoice : IHasIdentity
+ {
+ public BasicInboundInvoice (int inboundInvoiceId, int organizationId, DateTime createdDateTime,
+ DateTime dueDate, Int64 amountCents, int budgetId, string supplier, string
+ payToAccount, string ocr, string invoiceReference, bool attested, bool open,
+ DateTime closedDateTime, int closedByPersonId)
+ {
+ this.InboundInvoiceId = inboundInvoiceId;
+ this.OrganizationId = organizationId;
+ this.CreatedDateTime = createdDateTime;
+ this.DueDate = dueDate;
+ this.AmountCents = amountCents;
+ this.BudgetId = budgetId;
+ this.Supplier = supplier;
+ this.PayToAccount = payToAccount;
+ this.Ocr = ocr;
+ this.InvoiceReference = invoiceReference;
+ this.Attested = attested;
+ this.Open = open;
+ this.ClosedDateTime = closedDateTime;
+ this.ClosedByPersonId = closedByPersonId;
+ }
+
+ public BasicInboundInvoice (BasicInboundInvoice original)
+ : this (original.InboundInvoiceId, original.OrganizationId, original.CreatedDateTime,
+ original.DueDate, original.AmountCents, original.BudgetId,
+ original.Supplier, original.PayToAccount, original.Ocr, original.InvoiceReference,
+ original.Attested, original.Open, original.ClosedDateTime, original.ClosedByPersonId)
+ {
+ // empty copy ctor
+ }
+
+ public int InboundInvoiceId { get; private set; }
+ public DateTime CreatedDateTime { get; private set; }
+ public DateTime DueDate { get; protected set; }
+ public int BudgetId { get; protected set; }
+ public bool Attested { get; protected set; }
+ public bool Open { get; protected set; }
+ public string PayToAccount { get; protected set; }
+ public string Ocr { get; protected set; }
+ public string InvoiceReference { get; protected set; }
+ public DateTime ClosedDateTime { get; protected set; }
+ public int ClosedByPersonId { get; protected set; }
+ public int OrganizationId { get; protected set; }
+ public string Supplier { get; protected set; }
+ public Int64 AmountCents { get; protected set; }
+
+ #region IHasIdentity Members
+
+ public int Identity
+ {
+ get { return this.InboundInvoiceId; }
+ }
+
+ #endregion
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicOutboundInvoice.cs b/Basic/Types/Financial/BasicOutboundInvoice.cs
similarity index 71%
rename from Basic/Types/BasicOutboundInvoice.cs
rename to Basic/Types/Financial/BasicOutboundInvoice.cs
index 3d2f37a2..8cb0670a 100644
--- a/Basic/Types/BasicOutboundInvoice.cs
+++ b/Basic/Types/Financial/BasicOutboundInvoice.cs
@@ -1,67 +1,67 @@
-using System;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicOutboundInvoice : IHasIdentity
- {
- public BasicOutboundInvoice (int outboundInvoiceId, string customerName, string invoiceAddressPaper,
- string invoiceAddressMail, int currencyId, int organizationId, int budgetId,
- DateTime createdDateTime, int createdByPersonId, DateTime dueDate, int reminderCount, string reference,
- bool domestic, bool open, bool sent, string securityCode, string theirReference)
- {
- OutboundInvoiceId = outboundInvoiceId;
- CustomerName = customerName;
- InvoiceAddressPaper = invoiceAddressPaper;
- InvoiceAddressMail = invoiceAddressMail;
- CurrencyId = currencyId;
- OrganizationId = organizationId;
- BudgetId = budgetId;
- CreatedDateTime = createdDateTime;
- CreatedByPersonId = createdByPersonId;
- DueDate = dueDate;
- ReminderCount = reminderCount;
- Reference = reference;
- Domestic = domestic;
- Open = open;
- Sent = sent;
- SecurityCode = securityCode;
- TheirReference = theirReference;
- }
-
-
- public BasicOutboundInvoice (BasicOutboundInvoice original) :
- this (
- original.OutboundInvoiceId, original.CustomerName, original.InvoiceAddressPaper, original.InvoiceAddressMail,
- original.CurrencyId, original.OrganizationId, original.BudgetId, original.CreatedDateTime,
- original.CreatedByPersonId, original.DueDate, original.ReminderCount, original.Reference, original.Domestic,
- original.Open, original.Sent, original.SecurityCode, original.TheirReference)
- {
- // empty copy ctor
- }
-
- public int OutboundInvoiceId { get; private set; }
- public string CustomerName { get; private set; }
- public string InvoiceAddressPaper { get; private set; }
- public string InvoiceAddressMail { get; private set; }
- public int CurrencyId { get; private set; }
- public int OrganizationId { get; private set; }
- public int BudgetId { get; protected set; }
- public DateTime CreatedDateTime { get; private set; }
- public int CreatedByPersonId { get; private set; }
- public DateTime DueDate { get; private set; }
- public int ReminderCount { get; protected set; }
- public string Reference { get; protected set; }
- public bool Domestic { get; private set; }
- public bool Open { get; protected set; }
- public bool Sent { get; protected set; }
- public string SecurityCode { get; private set; }
- public string TheirReference { get; protected set; }
-
-
- public int Identity
- {
- get { return OutboundInvoiceId; }
- }
- }
+using System;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Financial
+{
+ public class BasicOutboundInvoice : IHasIdentity
+ {
+ public BasicOutboundInvoice (int outboundInvoiceId, string customerName, string invoiceAddressPaper,
+ string invoiceAddressMail, int currencyId, int organizationId, int budgetId,
+ DateTime createdDateTime, int createdByPersonId, DateTime dueDate, int reminderCount, string reference,
+ bool domestic, bool open, bool sent, string securityCode, string theirReference)
+ {
+ this.OutboundInvoiceId = outboundInvoiceId;
+ this.CustomerName = customerName;
+ this.InvoiceAddressPaper = invoiceAddressPaper;
+ this.InvoiceAddressMail = invoiceAddressMail;
+ this.CurrencyId = currencyId;
+ this.OrganizationId = organizationId;
+ this.BudgetId = budgetId;
+ this.CreatedDateTime = createdDateTime;
+ this.CreatedByPersonId = createdByPersonId;
+ this.DueDate = dueDate;
+ this.ReminderCount = reminderCount;
+ this.Reference = reference;
+ this.Domestic = domestic;
+ this.Open = open;
+ this.Sent = sent;
+ this.SecurityCode = securityCode;
+ this.TheirReference = theirReference;
+ }
+
+
+ public BasicOutboundInvoice (BasicOutboundInvoice original) :
+ this (
+ original.OutboundInvoiceId, original.CustomerName, original.InvoiceAddressPaper, original.InvoiceAddressMail,
+ original.CurrencyId, original.OrganizationId, original.BudgetId, original.CreatedDateTime,
+ original.CreatedByPersonId, original.DueDate, original.ReminderCount, original.Reference, original.Domestic,
+ original.Open, original.Sent, original.SecurityCode, original.TheirReference)
+ {
+ // empty copy ctor
+ }
+
+ public int OutboundInvoiceId { get; private set; }
+ public string CustomerName { get; private set; }
+ public string InvoiceAddressPaper { get; private set; }
+ public string InvoiceAddressMail { get; private set; }
+ public int CurrencyId { get; private set; }
+ public int OrganizationId { get; private set; }
+ public int BudgetId { get; protected set; }
+ public DateTime CreatedDateTime { get; private set; }
+ public int CreatedByPersonId { get; private set; }
+ public DateTime DueDate { get; private set; }
+ public int ReminderCount { get; protected set; }
+ public string Reference { get; protected set; }
+ public bool Domestic { get; private set; }
+ public bool Open { get; protected set; }
+ public bool Sent { get; protected set; }
+ public string SecurityCode { get; private set; }
+ public string TheirReference { get; protected set; }
+
+
+ public int Identity
+ {
+ get { return this.OutboundInvoiceId; }
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicOutboundInvoiceItem.cs b/Basic/Types/Financial/BasicOutboundInvoiceItem.cs
similarity index 73%
rename from Basic/Types/BasicOutboundInvoiceItem.cs
rename to Basic/Types/Financial/BasicOutboundInvoiceItem.cs
index 9dbecf11..5b7c851e 100644
--- a/Basic/Types/BasicOutboundInvoiceItem.cs
+++ b/Basic/Types/Financial/BasicOutboundInvoiceItem.cs
@@ -1,34 +1,34 @@
-using System;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicOutboundInvoiceItem : IHasIdentity
- {
- public BasicOutboundInvoiceItem (int outboundInvoiceItemId, int outboundInvoiceId, string description,
- Int64 amountCents)
- {
- OutboundInvoiceItemId = outboundInvoiceItemId;
- OutboundInvoiceId = outboundInvoiceId;
- Description = description;
- AmountCents = amountCents;
- }
-
- public BasicOutboundInvoiceItem (BasicOutboundInvoiceItem original) :
- this (original.OutboundInvoiceItemId, original.OutboundInvoiceId, original.Description, original.AmountCents
- )
- {
- // empty copy ctor
- }
-
- public int OutboundInvoiceItemId { get; private set; }
- public int OutboundInvoiceId { get; private set; }
- public string Description { get; private set; }
- public Int64 AmountCents { get; private set; }
-
- public int Identity
- {
- get { return OutboundInvoiceItemId; }
- }
- }
+using System;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Financial
+{
+ public class BasicOutboundInvoiceItem : IHasIdentity
+ {
+ public BasicOutboundInvoiceItem (int outboundInvoiceItemId, int outboundInvoiceId, string description,
+ Int64 amountCents)
+ {
+ this.OutboundInvoiceItemId = outboundInvoiceItemId;
+ this.OutboundInvoiceId = outboundInvoiceId;
+ this.Description = description;
+ this.AmountCents = amountCents;
+ }
+
+ public BasicOutboundInvoiceItem (BasicOutboundInvoiceItem original) :
+ this (original.OutboundInvoiceItemId, original.OutboundInvoiceId, original.Description, original.AmountCents
+ )
+ {
+ // empty copy ctor
+ }
+
+ public int OutboundInvoiceItemId { get; private set; }
+ public int OutboundInvoiceId { get; private set; }
+ public string Description { get; private set; }
+ public Int64 AmountCents { get; private set; }
+
+ public int Identity
+ {
+ get { return this.OutboundInvoiceItemId; }
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicPayment.cs b/Basic/Types/Financial/BasicPayment.cs
similarity index 73%
rename from Basic/Types/BasicPayment.cs
rename to Basic/Types/Financial/BasicPayment.cs
index 54d4d87f..e0921a56 100644
--- a/Basic/Types/BasicPayment.cs
+++ b/Basic/Types/Financial/BasicPayment.cs
@@ -1,43 +1,43 @@
-using System;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicPayment : IHasIdentity
- {
- public BasicPayment (int paymentId, int paymentGroupId, Int64 amountCents, string reference, string fromAccount,
- string key, bool hasImage, int outboundInvoiceId)
- {
- PaymentId = paymentId;
- PaymentGroupId = paymentGroupId;
- AmountCents = amountCents;
- Reference = reference;
- FromAccount = fromAccount;
- Key = key;
- HasImage = hasImage;
- OutboundInvoiceId = outboundInvoiceId;
- }
-
- public BasicPayment (BasicPayment original)
- : this (
- original.PaymentId, original.PaymentGroupId, original.AmountCents, original.Reference,
- original.FromAccount, original.Key, original.HasImage, original.OutboundInvoiceId)
- {
- // empty copy ctor
- }
-
- public int PaymentId { get; private set; }
- public int PaymentGroupId { get; private set; }
- public Int64 AmountCents { get; private set; }
- public string Reference { get; private set; }
- public string FromAccount { get; private set; }
- public string Key { get; private set; } // may need to expand with URL or similar later
- public bool HasImage { get; private set; }
- public int OutboundInvoiceId { get; protected set; }
-
- public int Identity
- {
- get { return PaymentId; }
- }
- }
+using System;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Financial
+{
+ public class BasicPayment : IHasIdentity
+ {
+ public BasicPayment (int paymentId, int paymentGroupId, Int64 amountCents, string reference, string fromAccount,
+ string key, bool hasImage, int outboundInvoiceId)
+ {
+ this.PaymentId = paymentId;
+ this.PaymentGroupId = paymentGroupId;
+ this.AmountCents = amountCents;
+ this.Reference = reference;
+ this.FromAccount = fromAccount;
+ this.Key = key;
+ this.HasImage = hasImage;
+ this.OutboundInvoiceId = outboundInvoiceId;
+ }
+
+ public BasicPayment (BasicPayment original)
+ : this (
+ original.PaymentId, original.PaymentGroupId, original.AmountCents, original.Reference,
+ original.FromAccount, original.Key, original.HasImage, original.OutboundInvoiceId)
+ {
+ // empty copy ctor
+ }
+
+ public int PaymentId { get; private set; }
+ public int PaymentGroupId { get; private set; }
+ public Int64 AmountCents { get; private set; }
+ public string Reference { get; private set; }
+ public string FromAccount { get; private set; }
+ public string Key { get; private set; } // may need to expand with URL or similar later
+ public bool HasImage { get; private set; }
+ public int OutboundInvoiceId { get; protected set; }
+
+ public int Identity
+ {
+ get { return this.PaymentId; }
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicPaymentCode.cs b/Basic/Types/Financial/BasicPaymentCode.cs
similarity index 92%
rename from Basic/Types/BasicPaymentCode.cs
rename to Basic/Types/Financial/BasicPaymentCode.cs
index 813bb534..2dbdce48 100644
--- a/Basic/Types/BasicPaymentCode.cs
+++ b/Basic/Types/Financial/BasicPaymentCode.cs
@@ -1,88 +1,88 @@
-using Swarmops.Basic.Enums;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicPaymentCode : IHasIdentity
- {
- private readonly int issuedToPersonId;
- private readonly string issuedToPhoneNumber;
- private readonly string paymentCode;
- private readonly int paymentCodeId;
- private bool claimed;
-
- #region IHasIdentity Members
-
- public int Identity
- {
- get { return PaymentCodeId; }
- }
-
- #endregion
-
- public BasicPaymentCode (int paymentCodeId, string paymentCode, string issuedToPhoneNumber, int issuedToPersonId,
- bool claimed)
- {
- this.paymentCodeId = paymentCodeId;
- this.paymentCode = paymentCode;
- this.issuedToPhoneNumber = issuedToPhoneNumber;
- this.issuedToPersonId = issuedToPersonId;
- this.claimed = claimed;
- }
-
- public BasicPaymentCode (BasicPaymentCode original)
- : this (
- original.paymentCodeId, original.paymentCode, original.issuedToPhoneNumber, original.issuedToPersonId,
- original.claimed)
- {
- // TODO: Expand with the rest of the fields
- }
-
-
- public int PaymentCodeId
- {
- get { return this.paymentCodeId; }
- }
-
- public string PaymentCode
- {
- get { return this.paymentCode; }
- }
-
- public string IssuedToPhoneNumber
- {
- get { return this.issuedToPhoneNumber; }
- }
-
- public int IssuedToPersonId
- {
- get { return this.issuedToPersonId; }
- }
-
- public bool Claimed
- {
- get { return this.claimed; }
- }
-
-
- public PaymentCodeIssueType IssueType
- {
- get
- {
- if (this.issuedToPersonId == 0)
- {
- return PaymentCodeIssueType.Phone;
- }
- return PaymentCodeIssueType.Person;
- }
- }
-
- protected void SetClaimed()
- {
- this.claimed = true;
- }
-
-
- //private bool balanced;
- }
+using Swarmops.Basic.Enums;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Financial
+{
+ public class BasicPaymentCode : IHasIdentity
+ {
+ private readonly int issuedToPersonId;
+ private readonly string issuedToPhoneNumber;
+ private readonly string paymentCode;
+ private readonly int paymentCodeId;
+ private bool claimed;
+
+ #region IHasIdentity Members
+
+ public int Identity
+ {
+ get { return this.PaymentCodeId; }
+ }
+
+ #endregion
+
+ public BasicPaymentCode (int paymentCodeId, string paymentCode, string issuedToPhoneNumber, int issuedToPersonId,
+ bool claimed)
+ {
+ this.paymentCodeId = paymentCodeId;
+ this.paymentCode = paymentCode;
+ this.issuedToPhoneNumber = issuedToPhoneNumber;
+ this.issuedToPersonId = issuedToPersonId;
+ this.claimed = claimed;
+ }
+
+ public BasicPaymentCode (BasicPaymentCode original)
+ : this (
+ original.paymentCodeId, original.paymentCode, original.issuedToPhoneNumber, original.issuedToPersonId,
+ original.claimed)
+ {
+ // TODO: Expand with the rest of the fields
+ }
+
+
+ public int PaymentCodeId
+ {
+ get { return this.paymentCodeId; }
+ }
+
+ public string PaymentCode
+ {
+ get { return this.paymentCode; }
+ }
+
+ public string IssuedToPhoneNumber
+ {
+ get { return this.issuedToPhoneNumber; }
+ }
+
+ public int IssuedToPersonId
+ {
+ get { return this.issuedToPersonId; }
+ }
+
+ public bool Claimed
+ {
+ get { return this.claimed; }
+ }
+
+
+ public PaymentCodeIssueType IssueType
+ {
+ get
+ {
+ if (this.issuedToPersonId == 0)
+ {
+ return PaymentCodeIssueType.Phone;
+ }
+ return PaymentCodeIssueType.Person;
+ }
+ }
+
+ protected void SetClaimed()
+ {
+ this.claimed = true;
+ }
+
+
+ //private bool balanced;
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicPaymentGroup.cs b/Basic/Types/Financial/BasicPaymentGroup.cs
similarity index 72%
rename from Basic/Types/BasicPaymentGroup.cs
rename to Basic/Types/Financial/BasicPaymentGroup.cs
index 55982fc7..998adab8 100644
--- a/Basic/Types/BasicPaymentGroup.cs
+++ b/Basic/Types/Financial/BasicPaymentGroup.cs
@@ -1,45 +1,45 @@
-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; }
- }
- }
+using System;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Financial
+{
+ public class BasicPaymentGroup : IHasIdentity
+ {
+ public BasicPaymentGroup (int paymentGroupId, int organizationId, DateTime dateTime, int currencyId,
+ Int64 amountCents, string tag, int createdByPersonId, DateTime createdDateTime, bool open)
+ {
+ this.PaymentGroupId = paymentGroupId;
+ this.OrganizationId = organizationId;
+ this.Tag = tag;
+ this.DateTime = dateTime;
+ this.AmountCents = amountCents;
+ this.CurrencyId = currencyId;
+ this.CreatedByPersonId = createdByPersonId;
+ this.CreatedDateTime = createdDateTime;
+ this.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 this.PaymentGroupId; }
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicPaymentInformation.cs b/Basic/Types/Financial/BasicPaymentInformation.cs
similarity index 92%
rename from Basic/Types/BasicPaymentInformation.cs
rename to Basic/Types/Financial/BasicPaymentInformation.cs
index 6a6ce121..3f60fd79 100644
--- a/Basic/Types/BasicPaymentInformation.cs
+++ b/Basic/Types/Financial/BasicPaymentInformation.cs
@@ -1,76 +1,76 @@
-namespace Swarmops.Basic.Types
-{
- public class BasicPaymentInformation
- {
- public BasicPaymentInformation (PaymentInformationType type, string data)
- {
- Type = type;
- Data = data;
- }
-
- public BasicPaymentInformation (BasicPaymentInformation original)
- : this (original.Type, original.Data)
- {
- // empty copy ctor
- }
-
- public PaymentInformationType Type { get; private set; }
- public string Data { get; private set; }
- }
-
-
- public enum PaymentInformationType
- {
- Unknown = 0,
-
- ///
- /// The payer's name as supplied by the bank.
- ///
- Name,
-
- ///
- /// The payer's street as and if supplied by the bank.
- ///
- Street,
-
- ///
- /// The payer's postal code as and if supplied by the bank.
- ///
- PostalCode,
-
- ///
- /// The payer's city as and if supplied by the bank.
- ///
- City,
-
- ///
- /// The payer's org# or person# as and if supplied by the bank.
- ///
- OrgNumber,
-
- ///
- /// Freeform information supplied by payer.
- ///
- Freeform,
-
- ///
- /// The payer's country as and if supplied by the bank.
- ///
- Country,
-
- ///
- /// The payer's country code as and if supplied by the bank.
- ///
- CountryCode,
-
- ///
- /// Payer's email as and if supplied by the bank.
- ///
- Email,
-
- ///
- /// Information needed to perform a future refund.
- ///
- RefundInformation
- }
+namespace Swarmops.Basic.Types.Financial
+{
+ public class BasicPaymentInformation
+ {
+ public BasicPaymentInformation (PaymentInformationType type, string data)
+ {
+ this.Type = type;
+ this.Data = data;
+ }
+
+ public BasicPaymentInformation (BasicPaymentInformation original)
+ : this (original.Type, original.Data)
+ {
+ // empty copy ctor
+ }
+
+ public PaymentInformationType Type { get; private set; }
+ public string Data { get; private set; }
+ }
+
+
+ public enum PaymentInformationType
+ {
+ Unknown = 0,
+
+ ///
+ /// The payer's name as supplied by the bank.
+ ///
+ Name,
+
+ ///
+ /// The payer's street as and if supplied by the bank.
+ ///
+ Street,
+
+ ///
+ /// The payer's postal code as and if supplied by the bank.
+ ///
+ PostalCode,
+
+ ///
+ /// The payer's city as and if supplied by the bank.
+ ///
+ City,
+
+ ///
+ /// The payer's org# or person# as and if supplied by the bank.
+ ///
+ OrgNumber,
+
+ ///
+ /// Freeform information supplied by payer.
+ ///
+ Freeform,
+
+ ///
+ /// The payer's country as and if supplied by the bank.
+ ///
+ Country,
+
+ ///
+ /// The payer's country code as and if supplied by the bank.
+ ///
+ CountryCode,
+
+ ///
+ /// Payer's email as and if supplied by the bank.
+ ///
+ Email,
+
+ ///
+ /// Information needed to perform a future refund.
+ ///
+ RefundInformation
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicPayout.cs b/Basic/Types/Financial/BasicPayout.cs
similarity index 73%
rename from Basic/Types/BasicPayout.cs
rename to Basic/Types/Financial/BasicPayout.cs
index 937cd91f..03efde47 100644
--- a/Basic/Types/BasicPayout.cs
+++ b/Basic/Types/Financial/BasicPayout.cs
@@ -1,52 +1,52 @@
-using System;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicPayout : IHasIdentity
- {
- public BasicPayout (int payoutId, int organizationId, string bank, string account,
- string reference, Int64 amountCents, DateTime expectedTransactionDate, bool open,
- DateTime createdDateTime, int createdByPersonId)
- {
- PayoutId = payoutId;
- OrganizationId = organizationId;
- Bank = bank;
- Account = account;
- Reference = reference;
- AmountCents = amountCents;
- ExpectedTransactionDate = expectedTransactionDate;
- Open = open;
- CreatedDateTime = createdDateTime;
- CreatedByPersonId = createdByPersonId;
- }
-
- public BasicPayout (BasicPayout original) :
- this (original.PayoutId, original.OrganizationId, original.Bank, original.Account,
- original.Reference, original.AmountCents, original.ExpectedTransactionDate, original.Open,
- original.CreatedDateTime, original.CreatedByPersonId)
- {
- // empty copy ctor
- }
-
- public int PayoutId { get; private set; }
- public int OrganizationId { get; protected set; }
- public string Bank { get; protected set; }
- public string Account { get; protected set; }
- public string Reference { get; protected set; }
- public Int64 AmountCents { get; protected set; }
- public DateTime ExpectedTransactionDate { get; protected set; }
- public bool Open { get; protected set; }
- public DateTime CreatedDateTime { get; private set; }
- public int CreatedByPersonId { get; private set; }
-
- #region IHasIdentity Members
-
- public int Identity
- {
- get { return PayoutId; }
- }
-
- #endregion
- }
+using System;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Financial
+{
+ public class BasicPayout : IHasIdentity
+ {
+ public BasicPayout (int payoutId, int organizationId, string bank, string account,
+ string reference, Int64 amountCents, DateTime expectedTransactionDate, bool open,
+ DateTime createdDateTime, int createdByPersonId)
+ {
+ this.PayoutId = payoutId;
+ this.OrganizationId = organizationId;
+ this.Bank = bank;
+ this.Account = account;
+ this.Reference = reference;
+ this.AmountCents = amountCents;
+ this.ExpectedTransactionDate = expectedTransactionDate;
+ this.Open = open;
+ this.CreatedDateTime = createdDateTime;
+ this.CreatedByPersonId = createdByPersonId;
+ }
+
+ public BasicPayout (BasicPayout original) :
+ this (original.PayoutId, original.OrganizationId, original.Bank, original.Account,
+ original.Reference, original.AmountCents, original.ExpectedTransactionDate, original.Open,
+ original.CreatedDateTime, original.CreatedByPersonId)
+ {
+ // empty copy ctor
+ }
+
+ public int PayoutId { get; private set; }
+ public int OrganizationId { get; protected set; }
+ public string Bank { get; protected set; }
+ public string Account { get; protected set; }
+ public string Reference { get; protected set; }
+ public Int64 AmountCents { get; protected set; }
+ public DateTime ExpectedTransactionDate { get; protected set; }
+ public bool Open { get; protected set; }
+ public DateTime CreatedDateTime { get; private set; }
+ public int CreatedByPersonId { get; private set; }
+
+ #region IHasIdentity Members
+
+ public int Identity
+ {
+ get { return this.PayoutId; }
+ }
+
+ #endregion
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicRefund.cs b/Basic/Types/Financial/BasicRefund.cs
similarity index 72%
rename from Basic/Types/BasicRefund.cs
rename to Basic/Types/Financial/BasicRefund.cs
index 56f1b19f..51c9309e 100644
--- a/Basic/Types/BasicRefund.cs
+++ b/Basic/Types/Financial/BasicRefund.cs
@@ -1,41 +1,41 @@
-using System;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicRefund : IHasIdentity
- {
- public BasicRefund (int refundId, int paymentId, bool open, Int64 amountCents, int createdByPersonId,
- DateTime createdDateTime, DateTime closedDateTime)
- {
- RefundId = refundId;
- PaymentId = paymentId;
- Open = open;
- AmountCents = amountCents;
- CreatedByPersonId = createdByPersonId;
- CreatedDateTime = createdDateTime;
- ClosedDateTime = closedDateTime;
- }
-
- public BasicRefund (BasicRefund original)
- : this (
- original.RefundId, original.PaymentId, original.Open, original.AmountCents, original.CreatedByPersonId,
- original.CreatedDateTime, original.ClosedDateTime)
- {
- // Empty copy ctor
- }
-
- public int RefundId { get; private set; }
- public int PaymentId { get; private set; }
- public bool Open { get; protected set; }
- public Int64 AmountCents { get; private set; }
- public int CreatedByPersonId { get; private set; }
- public DateTime CreatedDateTime { get; private set; }
- public DateTime ClosedDateTime { get; protected set; }
-
- public int Identity
- {
- get { return RefundId; }
- }
- }
+using System;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Financial
+{
+ public class BasicRefund : IHasIdentity
+ {
+ public BasicRefund (int refundId, int paymentId, bool open, Int64 amountCents, int createdByPersonId,
+ DateTime createdDateTime, DateTime closedDateTime)
+ {
+ this.RefundId = refundId;
+ this.PaymentId = paymentId;
+ this.Open = open;
+ this.AmountCents = amountCents;
+ this.CreatedByPersonId = createdByPersonId;
+ this.CreatedDateTime = createdDateTime;
+ this.ClosedDateTime = closedDateTime;
+ }
+
+ public BasicRefund (BasicRefund original)
+ : this (
+ original.RefundId, original.PaymentId, original.Open, original.AmountCents, original.CreatedByPersonId,
+ original.CreatedDateTime, original.ClosedDateTime)
+ {
+ // Empty copy ctor
+ }
+
+ public int RefundId { get; private set; }
+ public int PaymentId { get; private set; }
+ public bool Open { get; protected set; }
+ public Int64 AmountCents { get; private set; }
+ public int CreatedByPersonId { get; private set; }
+ public DateTime CreatedDateTime { get; private set; }
+ public DateTime ClosedDateTime { get; protected set; }
+
+ public int Identity
+ {
+ get { return this.RefundId; }
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicSalary.cs b/Basic/Types/Financial/BasicSalary.cs
similarity index 73%
rename from Basic/Types/BasicSalary.cs
rename to Basic/Types/Financial/BasicSalary.cs
index dbbaad8a..c7aabe55 100644
--- a/Basic/Types/BasicSalary.cs
+++ b/Basic/Types/Financial/BasicSalary.cs
@@ -1,57 +1,57 @@
-using System;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicSalary : IHasIdentity
- {
- public BasicSalary (int salaryId, int payrollItemId, DateTime payoutDate, Int64 baseSalaryCents,
- Int64 netSalaryCents,
- Int64 subtractiveTaxCents, Int64 additiveTaxCents, bool attested, bool netPaid, bool taxPaid, bool open)
- {
- SalaryId = salaryId;
- PayrollItemId = payrollItemId;
- PayoutDate = payoutDate;
- BaseSalaryCents = baseSalaryCents;
- NetSalaryCents = netSalaryCents;
- SubtractiveTaxCents = subtractiveTaxCents;
- AdditiveTaxCents = additiveTaxCents;
- Attested = attested;
- NetPaid = netPaid;
- TaxPaid = taxPaid;
- Open = open;
- }
-
- public BasicSalary (BasicSalary original)
- : this (
- original.SalaryId, original.PayrollItemId, original.PayoutDate, original.BaseSalaryCents,
- original.NetSalaryCents,
- original.SubtractiveTaxCents, original.AdditiveTaxCents, original.Attested, original.NetPaid,
- original.TaxPaid,
- original.Open)
- {
- // empty copy constructor
- }
-
- public int SalaryId { get; private set; }
- public int PayrollItemId { get; private set; }
- public DateTime PayoutDate { get; protected set; }
- public Int64 BaseSalaryCents { get; protected set; }
- public Int64 NetSalaryCents { get; protected set; }
- public Int64 SubtractiveTaxCents { get; protected set; }
- public Int64 AdditiveTaxCents { get; protected set; }
- public bool Attested { get; protected set; }
- public bool TaxPaid { get; protected set; }
- public bool NetPaid { get; protected set; }
- public bool Open { get; protected set; }
-
- #region IHasIdentity Members
-
- public int Identity
- {
- get { return SalaryId; }
- }
-
- #endregion
- }
+using System;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Financial
+{
+ public class BasicSalary : IHasIdentity
+ {
+ public BasicSalary (int salaryId, int payrollItemId, DateTime payoutDate, Int64 baseSalaryCents,
+ Int64 netSalaryCents,
+ Int64 subtractiveTaxCents, Int64 additiveTaxCents, bool attested, bool netPaid, bool taxPaid, bool open)
+ {
+ this.SalaryId = salaryId;
+ this.PayrollItemId = payrollItemId;
+ this.PayoutDate = payoutDate;
+ this.BaseSalaryCents = baseSalaryCents;
+ this.NetSalaryCents = netSalaryCents;
+ this.SubtractiveTaxCents = subtractiveTaxCents;
+ this.AdditiveTaxCents = additiveTaxCents;
+ this.Attested = attested;
+ this.NetPaid = netPaid;
+ this.TaxPaid = taxPaid;
+ this.Open = open;
+ }
+
+ public BasicSalary (BasicSalary original)
+ : this (
+ original.SalaryId, original.PayrollItemId, original.PayoutDate, original.BaseSalaryCents,
+ original.NetSalaryCents,
+ original.SubtractiveTaxCents, original.AdditiveTaxCents, original.Attested, original.NetPaid,
+ original.TaxPaid,
+ original.Open)
+ {
+ // empty copy constructor
+ }
+
+ public int SalaryId { get; private set; }
+ public int PayrollItemId { get; private set; }
+ public DateTime PayoutDate { get; protected set; }
+ public Int64 BaseSalaryCents { get; protected set; }
+ public Int64 NetSalaryCents { get; protected set; }
+ public Int64 SubtractiveTaxCents { get; protected set; }
+ public Int64 AdditiveTaxCents { get; protected set; }
+ public bool Attested { get; protected set; }
+ public bool TaxPaid { get; protected set; }
+ public bool NetPaid { get; protected set; }
+ public bool Open { get; protected set; }
+
+ #region IHasIdentity Members
+
+ public int Identity
+ {
+ get { return this.SalaryId; }
+ }
+
+ #endregion
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicSupplier.cs b/Basic/Types/Financial/BasicSupplier.cs
similarity index 73%
rename from Basic/Types/BasicSupplier.cs
rename to Basic/Types/Financial/BasicSupplier.cs
index d670d9b0..ee8d863e 100644
--- a/Basic/Types/BasicSupplier.cs
+++ b/Basic/Types/Financial/BasicSupplier.cs
@@ -1,41 +1,41 @@
-using System;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicSupplier : IHasIdentity
- {
- public BasicSupplier (int supplierId, string name, string email, string passwordHash, string bankAccount,
- DateTime createdDateTime, int createdByPersonId)
- {
- SupplierId = supplierId;
- Name = name;
- Email = email;
- PasswordHash = passwordHash;
- BankAccount = bankAccount;
- CreatedDateTime = createdDateTime;
- CreatedByPersonId = createdByPersonId;
- }
-
- public BasicSupplier (BasicSupplier original)
- : this (
- original.SupplierId, original.Name, original.Email, original.PasswordHash, original.BankAccount,
- original.CreatedDateTime, original.CreatedByPersonId)
- {
- // empty copy ctor
- }
-
- public int SupplierId { get; private set; }
- public string Name { get; protected set; }
- public string Email { get; protected set; }
- public string PasswordHash { get; protected set; }
- public string BankAccount { get; protected set; }
- public DateTime CreatedDateTime { get; private set; }
- public int CreatedByPersonId { get; private set; }
-
- public int Identity
- {
- get { return SupplierId; }
- }
- }
+using System;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Financial
+{
+ public class BasicSupplier : IHasIdentity
+ {
+ public BasicSupplier (int supplierId, string name, string email, string passwordHash, string bankAccount,
+ DateTime createdDateTime, int createdByPersonId)
+ {
+ this.SupplierId = supplierId;
+ this.Name = name;
+ this.Email = email;
+ this.PasswordHash = passwordHash;
+ this.BankAccount = bankAccount;
+ this.CreatedDateTime = createdDateTime;
+ this.CreatedByPersonId = createdByPersonId;
+ }
+
+ public BasicSupplier (BasicSupplier original)
+ : this (
+ original.SupplierId, original.Name, original.Email, original.PasswordHash, original.BankAccount,
+ original.CreatedDateTime, original.CreatedByPersonId)
+ {
+ // empty copy ctor
+ }
+
+ public int SupplierId { get; private set; }
+ public string Name { get; protected set; }
+ public string Email { get; protected set; }
+ public string PasswordHash { get; protected set; }
+ public string BankAccount { get; protected set; }
+ public DateTime CreatedDateTime { get; private set; }
+ public int CreatedByPersonId { get; private set; }
+
+ public int Identity
+ {
+ get { return this.SupplierId; }
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicBallot.cs b/Basic/Types/Governance/BasicBallot.cs
similarity index 72%
rename from Basic/Types/BasicBallot.cs
rename to Basic/Types/Governance/BasicBallot.cs
index 101942d1..0b34ed36 100644
--- a/Basic/Types/BasicBallot.cs
+++ b/Basic/Types/Governance/BasicBallot.cs
@@ -1,40 +1,40 @@
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicBallot : IHasIdentity
- {
- public BasicBallot (int ballotId, int electionId, int organizationId, int geographyId, string name, int count,
- string deliveryAddress)
- {
- BallotId = ballotId;
- ElectionId = electionId;
- OrganizationId = organizationId;
- GeographyId = geographyId;
- Name = name;
- Count = count;
- 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 BallotId; }
- }
- }
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Governance
+{
+ 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; }
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicElection.cs b/Basic/Types/Governance/BasicElection.cs
similarity index 74%
rename from Basic/Types/BasicElection.cs
rename to Basic/Types/Governance/BasicElection.cs
index 6b7210b9..c597a1ab 100644
--- a/Basic/Types/BasicElection.cs
+++ b/Basic/Types/Governance/BasicElection.cs
@@ -1,32 +1,32 @@
-using System;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicElection : IHasIdentity
- {
- public BasicElection (int electionId, string name, int geographyId, DateTime date)
- {
- ElectionId = electionId;
- Name = name;
- GeographyId = geographyId;
- Date = date;
- }
-
- public BasicElection (BasicElection original) :
- this (original.ElectionId, original.Name, original.GeographyId, original.Date)
- {
- // empty copy ctor
- }
-
- public int ElectionId { get; private set; }
- public string Name { get; private set; }
- public int GeographyId { get; private set; }
- public DateTime Date { get; private set; }
-
- public int Identity
- {
- get { return ElectionId; }
- }
- }
+using System;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Governance
+{
+ public class BasicElection : IHasIdentity
+ {
+ public BasicElection (int electionId, string name, int geographyId, DateTime date)
+ {
+ this.ElectionId = electionId;
+ this.Name = name;
+ this.GeographyId = geographyId;
+ this.Date = date;
+ }
+
+ public BasicElection (BasicElection original) :
+ this (original.ElectionId, original.Name, original.GeographyId, original.Date)
+ {
+ // empty copy ctor
+ }
+
+ public int ElectionId { get; private set; }
+ public string Name { get; private set; }
+ public int GeographyId { get; private set; }
+ public DateTime Date { get; private set; }
+
+ public int Identity
+ {
+ get { return this.ElectionId; }
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicInternalPoll.cs b/Basic/Types/Governance/BasicInternalPoll.cs
similarity index 77%
rename from Basic/Types/BasicInternalPoll.cs
rename to Basic/Types/Governance/BasicInternalPoll.cs
index 3051ebb9..333bb59a 100644
--- a/Basic/Types/BasicInternalPoll.cs
+++ b/Basic/Types/Governance/BasicInternalPoll.cs
@@ -1,81 +1,81 @@
-using System;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicInternalPoll : IHasIdentity
- {
- public BasicInternalPoll (int internalPollId, int createdByPersonId, int organizationId, int geographyId,
- string name, bool runningOpen, bool votingOpen, int maxVoteLength, DateTime runningOpens,
- DateTime runningCloses, DateTime votingOpens, DateTime votingCloses, InternalPollResultsType resultsType)
- {
- InternalPollId = internalPollId;
- CreatedByPersonId = createdByPersonId;
- OrganizationId = organizationId;
- GeographyId = geographyId;
- Name = name;
- RunningOpen = runningOpen;
- VotingOpen = votingOpen;
- MaxVoteLength = maxVoteLength;
- RunningOpens = runningOpens;
- RunningCloses = runningCloses;
- VotingOpens = votingOpens;
- VotingCloses = votingCloses;
- ResultsType = resultsType;
- }
-
- public BasicInternalPoll (BasicInternalPoll original)
- : this (
- original.InternalPollId, original.CreatedByPersonId, original.OrganizationId, original.GeographyId,
- original.Name, original.RunningOpen,
- original.VotingOpen, original.MaxVoteLength, original.RunningOpens, original.RunningCloses,
- original.VotingOpens, original.VotingCloses, original.ResultsType)
- {
- // empty copy ctor
- }
-
- public int MaxVoteLength { get; private set; }
- public int CreatedByPersonId { get; private set; }
- public int InternalPollId { get; private set; }
- public int OrganizationId { get; private set; }
- public int GeographyId { get; private set; }
- public string Name { get; protected set; }
- public bool RunningOpen { get; protected set; }
- public bool VotingOpen { get; protected set; }
- public DateTime RunningOpens { get; protected set; }
- public DateTime RunningCloses { get; protected set; }
- public DateTime VotingOpens { get; protected set; }
- public DateTime VotingCloses { get; protected set; }
- public InternalPollResultsType ResultsType { get; protected set; }
-
- #region IHasIdentity Members
-
- public int Identity
- {
- get { return InternalPollId; }
- }
-
- #endregion
- }
-
-
- public enum InternalPollResultsType
- {
- Unknown,
-
- ///
- /// Primaries vote -- a Condorcet Schultze divided into six lists and some other twists
- ///
- Primaries,
-
- ///
- /// A straight Condorcet Schultze, ranking the candidates
- ///
- Schulze,
-
- ///
- /// Accept vote: Count the number of accepts for each candidate
- ///
- Accept
- }
+using System;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Governance
+{
+ public class BasicInternalPoll : IHasIdentity
+ {
+ public BasicInternalPoll (int internalPollId, int createdByPersonId, int organizationId, int geographyId,
+ string name, bool runningOpen, bool votingOpen, int maxVoteLength, DateTime runningOpens,
+ DateTime runningCloses, DateTime votingOpens, DateTime votingCloses, InternalPollResultsType resultsType)
+ {
+ this.InternalPollId = internalPollId;
+ this.CreatedByPersonId = createdByPersonId;
+ this.OrganizationId = organizationId;
+ this.GeographyId = geographyId;
+ this.Name = name;
+ this.RunningOpen = runningOpen;
+ this.VotingOpen = votingOpen;
+ this.MaxVoteLength = maxVoteLength;
+ this.RunningOpens = runningOpens;
+ this.RunningCloses = runningCloses;
+ this.VotingOpens = votingOpens;
+ this.VotingCloses = votingCloses;
+ this.ResultsType = resultsType;
+ }
+
+ public BasicInternalPoll (BasicInternalPoll original)
+ : this (
+ original.InternalPollId, original.CreatedByPersonId, original.OrganizationId, original.GeographyId,
+ original.Name, original.RunningOpen,
+ original.VotingOpen, original.MaxVoteLength, original.RunningOpens, original.RunningCloses,
+ original.VotingOpens, original.VotingCloses, original.ResultsType)
+ {
+ // empty copy ctor
+ }
+
+ public int MaxVoteLength { get; private set; }
+ public int CreatedByPersonId { get; private set; }
+ public int InternalPollId { get; private set; }
+ public int OrganizationId { get; private set; }
+ public int GeographyId { get; private set; }
+ public string Name { get; protected set; }
+ public bool RunningOpen { get; protected set; }
+ public bool VotingOpen { get; protected set; }
+ public DateTime RunningOpens { get; protected set; }
+ public DateTime RunningCloses { get; protected set; }
+ public DateTime VotingOpens { get; protected set; }
+ public DateTime VotingCloses { get; protected set; }
+ public InternalPollResultsType ResultsType { get; protected set; }
+
+ #region IHasIdentity Members
+
+ public int Identity
+ {
+ get { return this.InternalPollId; }
+ }
+
+ #endregion
+ }
+
+
+ public enum InternalPollResultsType
+ {
+ Unknown,
+
+ ///
+ /// Primaries vote -- a Condorcet Schultze divided into six lists and some other twists
+ ///
+ Primaries,
+
+ ///
+ /// A straight Condorcet Schultze, ranking the candidates
+ ///
+ Schulze,
+
+ ///
+ /// Accept vote: Count the number of accepts for each candidate
+ ///
+ Accept
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicInternalPollCandidate.cs b/Basic/Types/Governance/BasicInternalPollCandidate.cs
similarity index 74%
rename from Basic/Types/BasicInternalPollCandidate.cs
rename to Basic/Types/Governance/BasicInternalPollCandidate.cs
index 3b49b8aa..af74e2f3 100644
--- a/Basic/Types/BasicInternalPollCandidate.cs
+++ b/Basic/Types/Governance/BasicInternalPollCandidate.cs
@@ -1,38 +1,38 @@
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicInternalPollCandidate : IHasIdentity
- {
- public BasicInternalPollCandidate (int internalPollCandidateId, int internalPollId, int personId,
- string candidacyStatement)
- {
- InternalPollCandidateId = internalPollCandidateId;
- InternalPollId = internalPollId;
- PersonId = personId;
- CandidacyStatement = candidacyStatement;
- }
-
- public BasicInternalPollCandidate (BasicInternalPollCandidate original)
- : this (
- original.InternalPollCandidateId, original.InternalPollId, original.PersonId,
- original.CandidacyStatement)
- {
- // empty copy ctor
- }
-
- public int InternalPollCandidateId { get; private set; }
- public int InternalPollId { get; private set; }
- public int PersonId { get; private set; }
- public string CandidacyStatement { get; protected set; }
-
- #region IHasIdentity Members
-
- public int Identity
- {
- get { return InternalPollCandidateId; }
- }
-
- #endregion
- }
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Governance
+{
+ public class BasicInternalPollCandidate : IHasIdentity
+ {
+ public BasicInternalPollCandidate (int internalPollCandidateId, int internalPollId, int personId,
+ string candidacyStatement)
+ {
+ this.InternalPollCandidateId = internalPollCandidateId;
+ this.InternalPollId = internalPollId;
+ this.PersonId = personId;
+ this.CandidacyStatement = candidacyStatement;
+ }
+
+ public BasicInternalPollCandidate (BasicInternalPollCandidate original)
+ : this (
+ original.InternalPollCandidateId, original.InternalPollId, original.PersonId,
+ original.CandidacyStatement)
+ {
+ // empty copy ctor
+ }
+
+ public int InternalPollCandidateId { get; private set; }
+ public int InternalPollId { get; private set; }
+ public int PersonId { get; private set; }
+ public string CandidacyStatement { get; protected set; }
+
+ #region IHasIdentity Members
+
+ public int Identity
+ {
+ get { return this.InternalPollCandidateId; }
+ }
+
+ #endregion
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicInternalPollVote.cs b/Basic/Types/Governance/BasicInternalPollVote.cs
similarity index 74%
rename from Basic/Types/BasicInternalPollVote.cs
rename to Basic/Types/Governance/BasicInternalPollVote.cs
index 542aaa1a..ca6260da 100644
--- a/Basic/Types/BasicInternalPollVote.cs
+++ b/Basic/Types/Governance/BasicInternalPollVote.cs
@@ -1,33 +1,33 @@
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicInternalPollVote : IHasIdentity
- {
- public BasicInternalPollVote (int internalPollVoteId, int internalPollId, string verificationCode)
- {
- InternalPollVoteId = internalPollVoteId;
- InternalPollId = internalPollId;
- VerificationCode = verificationCode;
- }
-
- public BasicInternalPollVote (BasicInternalPollVote original)
- : this (original.InternalPollVoteId, original.InternalPollId, original.VerificationCode)
- {
- // empty copy ctor
- }
-
- public int InternalPollVoteId { get; private set; }
- public int InternalPollId { get; private set; }
- public string VerificationCode { get; private set; }
-
- #region IHasIdentity Members
-
- public int Identity
- {
- get { return InternalPollVoteId; }
- }
-
- #endregion
- }
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Governance
+{
+ public class BasicInternalPollVote : IHasIdentity
+ {
+ public BasicInternalPollVote (int internalPollVoteId, int internalPollId, string verificationCode)
+ {
+ this.InternalPollVoteId = internalPollVoteId;
+ this.InternalPollId = internalPollId;
+ this.VerificationCode = verificationCode;
+ }
+
+ public BasicInternalPollVote (BasicInternalPollVote original)
+ : this (original.InternalPollVoteId, original.InternalPollId, original.VerificationCode)
+ {
+ // empty copy ctor
+ }
+
+ public int InternalPollVoteId { get; private set; }
+ public int InternalPollId { get; private set; }
+ public string VerificationCode { get; private set; }
+
+ #region IHasIdentity Members
+
+ public int Identity
+ {
+ get { return this.InternalPollVoteId; }
+ }
+
+ #endregion
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicInternalPollVoteDetail.cs b/Basic/Types/Governance/BasicInternalPollVoteDetail.cs
similarity index 74%
rename from Basic/Types/BasicInternalPollVoteDetail.cs
rename to Basic/Types/Governance/BasicInternalPollVoteDetail.cs
index 4702e04c..9518c7dd 100644
--- a/Basic/Types/BasicInternalPollVoteDetail.cs
+++ b/Basic/Types/Governance/BasicInternalPollVoteDetail.cs
@@ -1,22 +1,22 @@
-namespace Swarmops.Basic.Types
-{
- public class BasicInternalPollVoteDetail
- {
- public BasicInternalPollVoteDetail (int internalPollVoteId, int internalPollCandidateId, int position)
- {
- InternalPollVoteId = internalPollVoteId;
- InternalPollCandidateId = internalPollCandidateId;
- Position = position;
- }
-
- public BasicInternalPollVoteDetail (BasicInternalPollVoteDetail original)
- : this (original.InternalPollVoteId, original.InternalPollCandidateId, original.Position)
- {
- // empty copy ctor
- }
-
- public int InternalPollVoteId { get; private set; }
- public int InternalPollCandidateId { get; private set; }
- public int Position { get; private set; }
- }
+namespace Swarmops.Basic.Types.Governance
+{
+ public class BasicInternalPollVoteDetail
+ {
+ public BasicInternalPollVoteDetail (int internalPollVoteId, int internalPollCandidateId, int position)
+ {
+ this.InternalPollVoteId = internalPollVoteId;
+ this.InternalPollCandidateId = internalPollCandidateId;
+ this.Position = position;
+ }
+
+ public BasicInternalPollVoteDetail (BasicInternalPollVoteDetail original)
+ : this (original.InternalPollVoteId, original.InternalPollCandidateId, original.Position)
+ {
+ // empty copy ctor
+ }
+
+ public int InternalPollVoteId { get; private set; }
+ public int InternalPollCandidateId { get; private set; }
+ public int Position { get; private set; }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicInternalPollVoter.cs b/Basic/Types/Governance/BasicInternalPollVoter.cs
similarity index 83%
rename from Basic/Types/BasicInternalPollVoter.cs
rename to Basic/Types/Governance/BasicInternalPollVoter.cs
index 7ec36b7f..58118d60 100644
--- a/Basic/Types/BasicInternalPollVoter.cs
+++ b/Basic/Types/Governance/BasicInternalPollVoter.cs
@@ -1,47 +1,47 @@
-using System;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicInternalPollVoter
- {
- public BasicInternalPollVoter (int personId, int internalPollId, bool open, DateTime closedDateTime)
- {
- PersonId = personId;
- InternalPollId = internalPollId;
- Open = open;
- ClosedDateTime = closedDateTime;
- }
-
- public BasicInternalPollVoter (BasicInternalPollVoter original)
- : this (original.PersonId, original.InternalPollId, original.Open, original.ClosedDateTime)
- {
- // empty copy ctor
- }
-
- public int PersonId { get; private set; }
- public int InternalPollId { get; private set; }
- public bool Open { get; private set; }
- public DateTime ClosedDateTime { get; private set; }
- }
-
-
- public enum InternalPollVoterStatus
- {
- Unknown = 0,
-
- ///
- /// This voter is eligible and has not yet voted in this poll.
- ///
- CanVote,
-
- ///
- /// This voter is eligible to vote, but has already voted.
- ///
- HasAlreadyVoted,
-
- ///
- /// This person does is not on the list of eligible voters.
- ///
- NotEligibleForPoll
- }
+using System;
+
+namespace Swarmops.Basic.Types.Governance
+{
+ public class BasicInternalPollVoter
+ {
+ public BasicInternalPollVoter (int personId, int internalPollId, bool open, DateTime closedDateTime)
+ {
+ this.PersonId = personId;
+ this.InternalPollId = internalPollId;
+ this.Open = open;
+ this.ClosedDateTime = closedDateTime;
+ }
+
+ public BasicInternalPollVoter (BasicInternalPollVoter original)
+ : this (original.PersonId, original.InternalPollId, original.Open, original.ClosedDateTime)
+ {
+ // empty copy ctor
+ }
+
+ public int PersonId { get; private set; }
+ public int InternalPollId { get; private set; }
+ public bool Open { get; private set; }
+ public DateTime ClosedDateTime { get; private set; }
+ }
+
+
+ public enum InternalPollVoterStatus
+ {
+ Unknown = 0,
+
+ ///
+ /// This voter is eligible and has not yet voted in this poll.
+ ///
+ CanVote,
+
+ ///
+ /// This voter is eligible to vote, but has already voted.
+ ///
+ HasAlreadyVoted,
+
+ ///
+ /// This person does is not on the list of eligible voters.
+ ///
+ NotEligibleForPoll
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/Security/BasicAuthority.cs b/Basic/Types/Security/BasicAuthority.cs
index 4f7655be..551da9e2 100644
--- a/Basic/Types/Security/BasicAuthority.cs
+++ b/Basic/Types/Security/BasicAuthority.cs
@@ -1,4 +1,5 @@
using System;
+using Swarmops.Basic.Types.Swarm;
namespace Swarmops.Basic.Types.Security
{
diff --git a/Basic/Types/BasicExternalCredential.cs b/Basic/Types/Security/BasicExternalCredential.cs
similarity index 92%
rename from Basic/Types/BasicExternalCredential.cs
rename to Basic/Types/Security/BasicExternalCredential.cs
index 2d50ee48..d9d80dcb 100644
--- a/Basic/Types/BasicExternalCredential.cs
+++ b/Basic/Types/Security/BasicExternalCredential.cs
@@ -1,26 +1,26 @@
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicExternalCredential : IHasIdentity
- {
- public readonly int ExternalCredentialId;
- public readonly string Login;
- public readonly string Password;
- public readonly string ServiceName;
-
- public BasicExternalCredential (int externalCredentialId, string serviceName, string login, string password)
- {
- this.ExternalCredentialId = externalCredentialId;
- this.ServiceName = serviceName;
- this.Login = login;
- this.Password = password;
- }
-
-
- public int Identity
- {
- get { return this.ExternalCredentialId; }
- }
- }
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Security
+{
+ public class BasicExternalCredential : IHasIdentity
+ {
+ public readonly int ExternalCredentialId;
+ public readonly string Login;
+ public readonly string Password;
+ public readonly string ServiceName;
+
+ public BasicExternalCredential (int externalCredentialId, string serviceName, string login, string password)
+ {
+ this.ExternalCredentialId = externalCredentialId;
+ this.ServiceName = serviceName;
+ this.Login = login;
+ this.Password = password;
+ }
+
+
+ public int Identity
+ {
+ get { return this.ExternalCredentialId; }
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicExternalIdentity.cs b/Basic/Types/Security/BasicExternalIdentity.cs
similarity index 92%
rename from Basic/Types/BasicExternalIdentity.cs
rename to Basic/Types/Security/BasicExternalIdentity.cs
index 44799ab2..0e7714b0 100644
--- a/Basic/Types/BasicExternalIdentity.cs
+++ b/Basic/Types/Security/BasicExternalIdentity.cs
@@ -1,77 +1,77 @@
-using Swarmops.Basic.Enums;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicExternalIdentity : IHasIdentity
- {
- private readonly int attachedToPersonID;
- private readonly int externalIdentityIdentity;
-
- private readonly string externalSystem;
- private readonly string password;
- private readonly ExternalIdentityType typeOfAccount;
- private readonly string userID;
-
- public BasicExternalIdentity (int ExternalIdentityIdentity,
- ExternalIdentityType TypeOfAccount,
- string ExternalSystem,
- string UserID,
- string Password,
- int AttachedToPersonID)
- {
- this.externalIdentityIdentity = ExternalIdentityIdentity;
- this.externalSystem = ExternalSystem;
- this.userID = UserID;
- this.password = Password;
- this.attachedToPersonID = AttachedToPersonID;
- this.typeOfAccount = TypeOfAccount;
- }
-
- public BasicExternalIdentity (BasicExternalIdentity original)
- : this (
- original.Identity, original.TypeOfAccount, original.ExternalSystem, original.UserID, original.Password,
- original.AttachedToPersonID)
- {
- }
-
- public int ExternalIdentityIdentity
- {
- get { return this.externalIdentityIdentity; }
- }
-
- public string ExternalSystem
- {
- get { return this.externalSystem; }
- }
-
- public string UserID
- {
- get { return this.userID; }
- }
-
- public string Password
- {
- get { return this.password; }
- }
-
- public int AttachedToPersonID
- {
- get { return this.attachedToPersonID; }
- }
-
- public ExternalIdentityType TypeOfAccount
- {
- get { return this.typeOfAccount; }
- }
-
- #region IHasIdentity Members
-
- public int Identity
- {
- get { return ExternalIdentityIdentity; }
- }
-
- #endregion
- }
+using Swarmops.Basic.Enums;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Security
+{
+ public class BasicExternalIdentity : IHasIdentity
+ {
+ private readonly int attachedToPersonID;
+ private readonly int externalIdentityIdentity;
+
+ private readonly string externalSystem;
+ private readonly string password;
+ private readonly ExternalIdentityType typeOfAccount;
+ private readonly string userID;
+
+ public BasicExternalIdentity (int ExternalIdentityIdentity,
+ ExternalIdentityType TypeOfAccount,
+ string ExternalSystem,
+ string UserID,
+ string Password,
+ int AttachedToPersonID)
+ {
+ this.externalIdentityIdentity = ExternalIdentityIdentity;
+ this.externalSystem = ExternalSystem;
+ this.userID = UserID;
+ this.password = Password;
+ this.attachedToPersonID = AttachedToPersonID;
+ this.typeOfAccount = TypeOfAccount;
+ }
+
+ public BasicExternalIdentity (BasicExternalIdentity original)
+ : this (
+ original.Identity, original.TypeOfAccount, original.ExternalSystem, original.UserID, original.Password,
+ original.AttachedToPersonID)
+ {
+ }
+
+ public int ExternalIdentityIdentity
+ {
+ get { return this.externalIdentityIdentity; }
+ }
+
+ public string ExternalSystem
+ {
+ get { return this.externalSystem; }
+ }
+
+ public string UserID
+ {
+ get { return this.userID; }
+ }
+
+ public string Password
+ {
+ get { return this.password; }
+ }
+
+ public int AttachedToPersonID
+ {
+ get { return this.attachedToPersonID; }
+ }
+
+ public ExternalIdentityType TypeOfAccount
+ {
+ get { return this.typeOfAccount; }
+ }
+
+ #region IHasIdentity Members
+
+ public int Identity
+ {
+ get { return this.ExternalIdentityIdentity; }
+ }
+
+ #endregion
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicPermission.cs b/Basic/Types/Security/BasicPermission.cs
similarity index 88%
rename from Basic/Types/BasicPermission.cs
rename to Basic/Types/Security/BasicPermission.cs
index 016619ec..85d225df 100644
--- a/Basic/Types/BasicPermission.cs
+++ b/Basic/Types/Security/BasicPermission.cs
@@ -1,16 +1,16 @@
-using Swarmops.Basic.Enums;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicPermission
- {
- public Permission PermissionType;
- public RoleType RoleType;
-
- public BasicPermission (RoleType pRoleType, Permission pPermissionType)
- {
- this.RoleType = pRoleType;
- this.PermissionType = pPermissionType;
- }
- }
+using Swarmops.Basic.Enums;
+
+namespace Swarmops.Basic.Types.Security
+{
+ public class BasicPermission
+ {
+ public Permission PermissionType;
+ public RoleType RoleType;
+
+ public BasicPermission (RoleType pRoleType, Permission pPermissionType)
+ {
+ this.RoleType = pRoleType;
+ this.PermissionType = pPermissionType;
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicUptakeGeography.cs b/Basic/Types/Structure/BasicUptakeGeography.cs
similarity index 91%
rename from Basic/Types/BasicUptakeGeography.cs
rename to Basic/Types/Structure/BasicUptakeGeography.cs
index 4671578e..67346c9e 100644
--- a/Basic/Types/BasicUptakeGeography.cs
+++ b/Basic/Types/Structure/BasicUptakeGeography.cs
@@ -1,36 +1,36 @@
-namespace Swarmops.Basic.Types
-{
- public class BasicUptakeGeography
- {
- private int geoId;
- private int orgId;
-
- public BasicUptakeGeography (int pOrgId, int pGeoId)
- {
- this.orgId = pOrgId;
- this.geoId = pGeoId;
- }
-
- public BasicUptakeGeography()
- {
- }
-
- public BasicUptakeGeography (BasicUptakeGeography other)
- {
- this.orgId = other.orgId;
- this.geoId = other.geoId;
- }
-
- public int OrgId
- {
- get { return this.orgId; }
- set { this.orgId = value; }
- }
-
- public int GeoId
- {
- get { return this.geoId; }
- set { this.geoId = value; }
- }
- }
+namespace Swarmops.Basic.Types.Structure
+{
+ public class BasicUptakeGeography
+ {
+ private int geoId;
+ private int orgId;
+
+ public BasicUptakeGeography (int pOrgId, int pGeoId)
+ {
+ this.orgId = pOrgId;
+ this.geoId = pGeoId;
+ }
+
+ public BasicUptakeGeography()
+ {
+ }
+
+ public BasicUptakeGeography (BasicUptakeGeography other)
+ {
+ this.orgId = other.orgId;
+ this.geoId = other.geoId;
+ }
+
+ public int OrgId
+ {
+ get { return this.orgId; }
+ set { this.orgId = value; }
+ }
+
+ public int GeoId
+ {
+ get { return this.geoId; }
+ set { this.geoId = value; }
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicChurnDataPoint.cs b/Basic/Types/Swarm/BasicChurnDataPoint.cs
similarity index 89%
rename from Basic/Types/BasicChurnDataPoint.cs
rename to Basic/Types/Swarm/BasicChurnDataPoint.cs
index 9b8e3ed0..77a43739 100644
--- a/Basic/Types/BasicChurnDataPoint.cs
+++ b/Basic/Types/Swarm/BasicChurnDataPoint.cs
@@ -1,49 +1,45 @@
-using System;
-using Swarmops.Basic.Enums;
-
-namespace Swarmops.Basic.Enums
-{
- public enum ChurnDataType
- {
- Unknown = 0,
-
- ///
- /// The member churned (dropped out, left).
- ///
- Churn,
-
- ///
- /// The member remained in the organization (renewed).
- ///
- Retention
- }
-}
-
-namespace Swarmops.Basic.Types
-{
- public class BasicChurnDataPoint
- {
- public readonly ChurnDataType DataType;
- public readonly DateTime DecisionDateTime;
- public readonly DateTime ExpiryDate;
- public readonly int OrganizationId;
- public readonly int PersonId;
-
- public BasicChurnDataPoint (ChurnDataType dataType, DateTime decisionDateTime, DateTime expiryDate,
- int personId, int organizationId)
- {
- this.DataType = dataType;
- this.DecisionDateTime = decisionDateTime;
- this.ExpiryDate = expiryDate;
- this.PersonId = personId;
- this.OrganizationId = organizationId;
- }
-
- public BasicChurnDataPoint (BasicChurnDataPoint original) :
- this (
- original.DataType, original.DecisionDateTime, original.ExpiryDate, original.PersonId,
- original.OrganizationId)
- {
- }
- }
+using System;
+
+namespace Swarmops.Basic.Types.Swarm
+{
+ public enum ChurnDataType
+ {
+ Unknown = 0,
+
+ ///
+ /// The member churned (dropped out, left).
+ ///
+ Churn,
+
+ ///
+ /// The member remained in the organization (renewed).
+ ///
+ Retention
+ }
+
+ public class BasicChurnDataPoint
+ {
+ public readonly ChurnDataType DataType;
+ public readonly DateTime DecisionDateTime;
+ public readonly DateTime ExpiryDate;
+ public readonly int OrganizationId;
+ public readonly int PersonId;
+
+ public BasicChurnDataPoint (ChurnDataType dataType, DateTime decisionDateTime, DateTime expiryDate,
+ int personId, int organizationId)
+ {
+ this.DataType = dataType;
+ this.DecisionDateTime = decisionDateTime;
+ this.ExpiryDate = expiryDate;
+ this.PersonId = personId;
+ this.OrganizationId = organizationId;
+ }
+
+ public BasicChurnDataPoint (BasicChurnDataPoint original) :
+ this (
+ original.DataType, original.DecisionDateTime, original.ExpiryDate, original.PersonId,
+ original.OrganizationId)
+ {
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicExternalActivity.cs b/Basic/Types/Swarm/BasicExternalActivity.cs
similarity index 72%
rename from Basic/Types/BasicExternalActivity.cs
rename to Basic/Types/Swarm/BasicExternalActivity.cs
index 0d7045ae..a59fd6df 100644
--- a/Basic/Types/BasicExternalActivity.cs
+++ b/Basic/Types/Swarm/BasicExternalActivity.cs
@@ -1,48 +1,48 @@
-using System;
-using Swarmops.Basic.Enums;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicExternalActivity : IHasIdentity
- {
- public BasicExternalActivity (int externalActivityId, int organizationId, int geographyId,
- ExternalActivityType type, DateTime dateTime, string description, int createdByPersonId,
- DateTime createdDateTime,
- int dupeOfActivityId)
- {
- ExternalActivityId = externalActivityId;
- OrganizationId = organizationId;
- GeographyId = geographyId;
- Type = type;
- DateTime = dateTime;
- Description = description;
- CreatedByPersonId = createdByPersonId;
- CreatedDateTime = createdDateTime;
- DupeOfActivityId = dupeOfActivityId;
- }
-
- public BasicExternalActivity (BasicExternalActivity original) :
- this (
- original.ExternalActivityId, original.OrganizationId, original.GeographyId, original.Type, original.DateTime,
- original.Description, original.CreatedByPersonId, original.CreatedDateTime, original.DupeOfActivityId)
- {
- // empty copy ctor
- }
-
- public int ExternalActivityId { get; private set; }
- public int OrganizationId { get; private set; }
- public int GeographyId { get; private set; }
- public ExternalActivityType Type { get; private set; }
- public DateTime DateTime { get; private set; }
- public string Description { get; private set; }
- public int CreatedByPersonId { get; private set; }
- public DateTime CreatedDateTime { get; private set; }
- public int DupeOfActivityId { get; protected set; }
-
- public int Identity
- {
- get { return ExternalActivityId; }
- }
- }
+using System;
+using Swarmops.Basic.Enums;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Swarm
+{
+ public class BasicExternalActivity : IHasIdentity
+ {
+ public BasicExternalActivity (int externalActivityId, int organizationId, int geographyId,
+ ExternalActivityType type, DateTime dateTime, string description, int createdByPersonId,
+ DateTime createdDateTime,
+ int dupeOfActivityId)
+ {
+ this.ExternalActivityId = externalActivityId;
+ this.OrganizationId = organizationId;
+ this.GeographyId = geographyId;
+ this.Type = type;
+ this.DateTime = dateTime;
+ this.Description = description;
+ this.CreatedByPersonId = createdByPersonId;
+ this.CreatedDateTime = createdDateTime;
+ this.DupeOfActivityId = dupeOfActivityId;
+ }
+
+ public BasicExternalActivity (BasicExternalActivity original) :
+ this (
+ original.ExternalActivityId, original.OrganizationId, original.GeographyId, original.Type, original.DateTime,
+ original.Description, original.CreatedByPersonId, original.CreatedDateTime, original.DupeOfActivityId)
+ {
+ // empty copy ctor
+ }
+
+ public int ExternalActivityId { get; private set; }
+ public int OrganizationId { get; private set; }
+ public int GeographyId { get; private set; }
+ public ExternalActivityType Type { get; private set; }
+ public DateTime DateTime { get; private set; }
+ public string Description { get; private set; }
+ public int CreatedByPersonId { get; private set; }
+ public DateTime CreatedDateTime { get; private set; }
+ public int DupeOfActivityId { get; protected set; }
+
+ public int Identity
+ {
+ get { return this.ExternalActivityId; }
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicMembership.cs b/Basic/Types/Swarm/BasicMembership.cs
similarity index 72%
rename from Basic/Types/BasicMembership.cs
rename to Basic/Types/Swarm/BasicMembership.cs
index ef009b1a..b041a73c 100644
--- a/Basic/Types/BasicMembership.cs
+++ b/Basic/Types/Swarm/BasicMembership.cs
@@ -1,65 +1,65 @@
-using System;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicMembership : IHasIdentity
- {
- public BasicMembership (int personId, int organizationId)
- {
- PersonId = personId;
- OrganizationId = organizationId;
- Active = true;
- DateTerminated = DateTime.MinValue;
- }
-
- public BasicMembership (int personId, int organizationId, DateTime memberSince, DateTime expires)
- : this (personId, organizationId)
- {
- MemberSince = memberSince;
- Expires = expires;
- }
-
- public BasicMembership (int membershipId, int personId, int organizationId, DateTime memberSince,
- DateTime expires, bool active, DateTime dateTerminated)
- {
- MembershipId = membershipId;
- PersonId = personId;
- OrganizationId = organizationId;
- MemberSince = memberSince;
- Expires = expires;
- Active = active;
- DateTerminated = dateTerminated;
- }
-
- public BasicMembership (BasicMembership original)
- : this (
- original.MembershipId, original.PersonId, original.OrganizationId, original.MemberSince,
- original.Expires, original.Active, original.DateTerminated)
- {
- // Empty copy ctor
- }
-
- public int MembershipId { get; private set; }
- public int OrganizationId { get; private set; }
- public int PersonId { get; private set; }
- public bool Active { get; protected set; }
- public DateTime MemberSince { get; private set; }
- public DateTime DateTerminated { get; protected set; }
- public DateTime Expires { get; protected set; }
-
- #region IHasIdentity Members
-
- public int Identity
- {
- get { return MembershipId; }
- }
-
- #endregion
-
- // RICK NOTES: I moved the MembershipPayments to a separate table, as they are NULL on most rows.
- // Not implemented as per 2010-01-11.
-
- // Also, note the renaming of "Valid" to "Active", consistently with other objects and analogous to "Open".
- }
+using System;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Swarm
+{
+ public class BasicMembership : IHasIdentity
+ {
+ public BasicMembership (int personId, int organizationId)
+ {
+ this.PersonId = personId;
+ this.OrganizationId = organizationId;
+ this.Active = true;
+ this.DateTerminated = DateTime.MinValue;
+ }
+
+ public BasicMembership (int personId, int organizationId, DateTime memberSince, DateTime expires)
+ : this (personId, organizationId)
+ {
+ this.MemberSince = memberSince;
+ this.Expires = expires;
+ }
+
+ public BasicMembership (int membershipId, int personId, int organizationId, DateTime memberSince,
+ DateTime expires, bool active, DateTime dateTerminated)
+ {
+ this.MembershipId = membershipId;
+ this.PersonId = personId;
+ this.OrganizationId = organizationId;
+ this.MemberSince = memberSince;
+ this.Expires = expires;
+ this.Active = active;
+ this.DateTerminated = dateTerminated;
+ }
+
+ public BasicMembership (BasicMembership original)
+ : this (
+ original.MembershipId, original.PersonId, original.OrganizationId, original.MemberSince,
+ original.Expires, original.Active, original.DateTerminated)
+ {
+ // Empty copy ctor
+ }
+
+ public int MembershipId { get; private set; }
+ public int OrganizationId { get; private set; }
+ public int PersonId { get; private set; }
+ public bool Active { get; protected set; }
+ public DateTime MemberSince { get; private set; }
+ public DateTime DateTerminated { get; protected set; }
+ public DateTime Expires { get; protected set; }
+
+ #region IHasIdentity Members
+
+ public int Identity
+ {
+ get { return this.MembershipId; }
+ }
+
+ #endregion
+
+ // RICK NOTES: I moved the MembershipPayments to a separate table, as they are NULL on most rows.
+ // Not implemented as per 2010-01-11.
+
+ // Also, note the renaming of "Valid" to "Active", consistently with other objects and analogous to "Open".
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicMembershipPaymentStatus.cs b/Basic/Types/Swarm/BasicMembershipPaymentStatus.cs
similarity index 71%
rename from Basic/Types/BasicMembershipPaymentStatus.cs
rename to Basic/Types/Swarm/BasicMembershipPaymentStatus.cs
index 52b04184..5570f0c1 100644
--- a/Basic/Types/BasicMembershipPaymentStatus.cs
+++ b/Basic/Types/Swarm/BasicMembershipPaymentStatus.cs
@@ -1,19 +1,19 @@
-using System;
-using Swarmops.Basic.Enums;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicMembershipPaymentStatus
- {
- public BasicMembershipPaymentStatus (int membershipId, MembershipPaymentStatus status, DateTime statusDateTime)
- {
- MembershipId = membershipId;
- Status = status;
- StatusDateTime = statusDateTime;
- }
-
- public int MembershipId { get; protected set; }
- public MembershipPaymentStatus Status { get; set; }
- public DateTime StatusDateTime { get; set; }
- }
+using System;
+using Swarmops.Basic.Enums;
+
+namespace Swarmops.Basic.Types.Swarm
+{
+ public class BasicMembershipPaymentStatus
+ {
+ public BasicMembershipPaymentStatus (int membershipId, MembershipPaymentStatus status, DateTime statusDateTime)
+ {
+ this.MembershipId = membershipId;
+ this.Status = status;
+ this.StatusDateTime = statusDateTime;
+ }
+
+ public int MembershipId { get; protected set; }
+ public MembershipPaymentStatus Status { get; set; }
+ public DateTime StatusDateTime { get; set; }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicPayrollAdjustment.cs b/Basic/Types/Swarm/BasicPayrollAdjustment.cs
similarity index 79%
rename from Basic/Types/BasicPayrollAdjustment.cs
rename to Basic/Types/Swarm/BasicPayrollAdjustment.cs
index fcd59242..3d7717e2 100644
--- a/Basic/Types/BasicPayrollAdjustment.cs
+++ b/Basic/Types/Swarm/BasicPayrollAdjustment.cs
@@ -1,63 +1,63 @@
-using System;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicPayrollAdjustment : IHasIdentity
- {
- public BasicPayrollAdjustment (int payrollAdjustmentId, int payrollItemId, PayrollAdjustmentType type,
- Int64 amountCents,
- string description, bool open, int salaryId)
- {
- PayrollAdjustmentId = payrollAdjustmentId;
- PayrollItemId = payrollItemId;
- Type = type;
- AmountCents = amountCents;
- Description = description;
- Open = open;
- SalaryId = salaryId;
- }
-
-
- public BasicPayrollAdjustment (BasicPayrollAdjustment original)
- : this (
- original.PayrollAdjustmentId, original.PayrollItemId, original.Type, original.AmountCents,
- original.Description, original.Open, original.SalaryId)
- {
- // empty copy ctor
- }
-
-
- public int PayrollAdjustmentId { get; private set; }
- public int PayrollItemId { get; private set; }
- public PayrollAdjustmentType Type { get; private set; }
- public Int64 AmountCents { get; private set; }
- public string Description { get; private set; }
- public bool Open { get; protected set; }
- public int SalaryId { get; protected set; }
-
- public int Identity
- {
- get { return PayrollAdjustmentId; }
- }
- }
-
-
- public enum PayrollAdjustmentType
- {
- ///
- /// Undefined value
- ///
- Unknown = 0,
-
- ///
- /// Adjustment to salary BEFORE tax (sick leave, etc)
- ///
- GrossAdjustment = 1,
-
- ///
- /// Adjustment to salary AFTER tax (expenses, etc)
- ///
- NetAdjustment = 2
- }
+using System;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Swarm
+{
+ public class BasicPayrollAdjustment : IHasIdentity
+ {
+ public BasicPayrollAdjustment (int payrollAdjustmentId, int payrollItemId, PayrollAdjustmentType type,
+ Int64 amountCents,
+ string description, bool open, int salaryId)
+ {
+ this.PayrollAdjustmentId = payrollAdjustmentId;
+ this.PayrollItemId = payrollItemId;
+ this.Type = type;
+ this.AmountCents = amountCents;
+ this.Description = description;
+ this.Open = open;
+ this.SalaryId = salaryId;
+ }
+
+
+ public BasicPayrollAdjustment (BasicPayrollAdjustment original)
+ : this (
+ original.PayrollAdjustmentId, original.PayrollItemId, original.Type, original.AmountCents,
+ original.Description, original.Open, original.SalaryId)
+ {
+ // empty copy ctor
+ }
+
+
+ public int PayrollAdjustmentId { get; private set; }
+ public int PayrollItemId { get; private set; }
+ public PayrollAdjustmentType Type { get; private set; }
+ public Int64 AmountCents { get; private set; }
+ public string Description { get; private set; }
+ public bool Open { get; protected set; }
+ public int SalaryId { get; protected set; }
+
+ public int Identity
+ {
+ get { return this.PayrollAdjustmentId; }
+ }
+ }
+
+
+ public enum PayrollAdjustmentType
+ {
+ ///
+ /// Undefined value
+ ///
+ Unknown = 0,
+
+ ///
+ /// Adjustment to salary BEFORE tax (sick leave, etc)
+ ///
+ GrossAdjustment = 1,
+
+ ///
+ /// Adjustment to salary AFTER tax (expenses, etc)
+ ///
+ NetAdjustment = 2
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicPayrollItem.cs b/Basic/Types/Swarm/BasicPayrollItem.cs
similarity index 81%
rename from Basic/Types/BasicPayrollItem.cs
rename to Basic/Types/Swarm/BasicPayrollItem.cs
index 49e4e555..8142fd89 100644
--- a/Basic/Types/BasicPayrollItem.cs
+++ b/Basic/Types/Swarm/BasicPayrollItem.cs
@@ -1,105 +1,105 @@
-using System;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicPayrollItem : IHasIdentity
- {
- public BasicPayrollItem (int payrollItemId, int personId, int organizationId, int countryId,
- DateTime employedDate,
- int reportsToPersonId, Int64 baseSalaryCents, int budgetId, bool open, DateTime terminatedDate,
- int subtractiveTaxLevelId, double additiveTaxLevel)
- {
- PayrollItemId = payrollItemId;
- PersonId = personId;
- OrganizationId = organizationId;
- CountryId = countryId;
- EmployedDate = employedDate;
- ReportsToPersonId = reportsToPersonId;
- BaseSalaryCents = baseSalaryCents;
- BudgetId = budgetId;
- Open = open;
- TerminatedDate = terminatedDate;
- SubtractiveTaxLevelId = subtractiveTaxLevelId;
- AdditiveTaxLevel = additiveTaxLevel;
- }
-
- public BasicPayrollItem (BasicPayrollItem original)
- : this (original.PayrollItemId, original.PersonId, original.OrganizationId, original.CountryId,
- original.EmployedDate, original.ReportsToPersonId, original.BaseSalaryCents, original.BudgetId,
- original.Open, original.TerminatedDate, original.SubtractiveTaxLevelId, original.AdditiveTaxLevel)
- {
- // empty copy constructor
- }
-
-
- ///
- /// Gets the identity of the payroll item. Also accessible through Identity.
- ///
- public int PayrollItemId { get; private set; }
-
- ///
- /// The employed person Id.
- ///
- public int PersonId { get; private set; }
-
- ///
- /// The employing organization.
- ///
- public int OrganizationId { get; private set; }
-
- ///
- /// The employment country (for tax laws and such).
- ///
- public int CountryId { get; private set; }
-
- ///
- /// The date of employment.
- ///
- public DateTime EmployedDate { get; private set; }
-
- ///
- /// The person above this person in the org chart.
- ///
- public int ReportsToPersonId { get; protected set; }
-
- ///
- /// The base gross montly salary in the local currency.
- ///
- public Int64 BaseSalaryCents { get; protected set; }
-
- ///
- /// The budget charged with the costs of this employment.
- ///
- public int BudgetId { get; protected set; }
-
- ///
- /// True if this employment is still active.
- ///
- public bool Open { get; protected set; }
-
- ///
- /// If closed, this field contains the date the employment ended.
- ///
- public DateTime TerminatedDate { get; protected set; }
-
- ///
- /// The tax level code of the country of employment. Subtracted from gross salary to get net salary.
- ///
- public int SubtractiveTaxLevelId { get; protected set; }
-
- ///
- /// The tax level, as a fraction, paid by the organization on top of the gross salary.
- ///
- public double AdditiveTaxLevel { get; protected set; }
-
- #region IHasIdentity Members
-
- public int Identity
- {
- get { return PayrollItemId; }
- }
-
- #endregion
- }
+using System;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Swarm
+{
+ public class BasicPayrollItem : IHasIdentity
+ {
+ public BasicPayrollItem (int payrollItemId, int personId, int organizationId, int countryId,
+ DateTime employedDate,
+ int reportsToPersonId, Int64 baseSalaryCents, int budgetId, bool open, DateTime terminatedDate,
+ int subtractiveTaxLevelId, double additiveTaxLevel)
+ {
+ this.PayrollItemId = payrollItemId;
+ this.PersonId = personId;
+ this.OrganizationId = organizationId;
+ this.CountryId = countryId;
+ this.EmployedDate = employedDate;
+ this.ReportsToPersonId = reportsToPersonId;
+ this.BaseSalaryCents = baseSalaryCents;
+ this.BudgetId = budgetId;
+ this.Open = open;
+ this.TerminatedDate = terminatedDate;
+ this.SubtractiveTaxLevelId = subtractiveTaxLevelId;
+ this.AdditiveTaxLevel = additiveTaxLevel;
+ }
+
+ public BasicPayrollItem (BasicPayrollItem original)
+ : this (original.PayrollItemId, original.PersonId, original.OrganizationId, original.CountryId,
+ original.EmployedDate, original.ReportsToPersonId, original.BaseSalaryCents, original.BudgetId,
+ original.Open, original.TerminatedDate, original.SubtractiveTaxLevelId, original.AdditiveTaxLevel)
+ {
+ // empty copy constructor
+ }
+
+
+ ///
+ /// Gets the identity of the payroll item. Also accessible through Identity.
+ ///
+ public int PayrollItemId { get; private set; }
+
+ ///
+ /// The employed person Id.
+ ///
+ public int PersonId { get; private set; }
+
+ ///
+ /// The employing organization.
+ ///
+ public int OrganizationId { get; private set; }
+
+ ///
+ /// The employment country (for tax laws and such).
+ ///
+ public int CountryId { get; private set; }
+
+ ///
+ /// The date of employment.
+ ///
+ public DateTime EmployedDate { get; private set; }
+
+ ///
+ /// The person above this person in the org chart.
+ ///
+ public int ReportsToPersonId { get; protected set; }
+
+ ///
+ /// The base gross montly salary in the local currency.
+ ///
+ public Int64 BaseSalaryCents { get; protected set; }
+
+ ///
+ /// The budget charged with the costs of this employment.
+ ///
+ public int BudgetId { get; protected set; }
+
+ ///
+ /// True if this employment is still active.
+ ///
+ public bool Open { get; protected set; }
+
+ ///
+ /// If closed, this field contains the date the employment ended.
+ ///
+ public DateTime TerminatedDate { get; protected set; }
+
+ ///
+ /// The tax level code of the country of employment. Subtracted from gross salary to get net salary.
+ ///
+ public int SubtractiveTaxLevelId { get; protected set; }
+
+ ///
+ /// The tax level, as a fraction, paid by the organization on top of the gross salary.
+ ///
+ public double AdditiveTaxLevel { get; protected set; }
+
+ #region IHasIdentity Members
+
+ public int Identity
+ {
+ get { return this.PayrollItemId; }
+ }
+
+ #endregion
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicPerson.cs b/Basic/Types/Swarm/BasicPerson.cs
similarity index 70%
rename from Basic/Types/BasicPerson.cs
rename to Basic/Types/Swarm/BasicPerson.cs
index 9607acb5..9ec8a2f5 100644
--- a/Basic/Types/BasicPerson.cs
+++ b/Basic/Types/Swarm/BasicPerson.cs
@@ -1,72 +1,72 @@
-using System;
-using Swarmops.Basic.Enums;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- [Serializable]
- public class BasicPerson : IEmailPerson, IHasIdentity
- {
- public BasicPerson (string name, string email)
- {
- Name = name;
- Email = email;
- }
-
- public BasicPerson (int personId, string passwordHash, string name, string email, string street,
- string postalCode, string cityName, int countryId, string phone, int geographyId,
- DateTime birthdate, PersonGender gender)
- {
- PersonId = personId;
- PasswordHash = passwordHash;
- Name = name;
- Email = email;
- Street = street;
- PostalCode = postalCode;
- CityName = cityName;
- CountryId = countryId;
- Phone = phone;
- GeographyId = geographyId;
- Birthdate = birthdate;
- Gender = gender;
- }
-
- public BasicPerson (BasicPerson original)
- : this (original.PersonId, original.PasswordHash, original.Name, original.Email, original.Street,
- original.PostalCode, original.CityName, original.CountryId, original.Phone,
- original.GeographyId, original.Birthdate, original.Gender)
- {
- }
-
-
- public bool IsMale
- {
- get { return Gender == PersonGender.Male; }
- }
-
- public bool IsFemale
- {
- get { return Gender == PersonGender.Female; }
- }
-
-
- public int PersonId { get; private set; }
- public string Street { get; protected set; }
- public string PostalCode { get; protected set; }
- public string CityName { get; protected set; }
- public string Phone { get; protected set; }
- public DateTime Birthdate { get; protected set; }
- public string PasswordHash { get; protected set; }
- public int GeographyId { get; protected set; }
- public int CountryId { get; protected set; }
- public PersonGender Gender { get; protected set; }
- public string Name { get; protected set; }
- public string Email { get; protected set; }
-
-
- public int Identity
- {
- get { return PersonId; }
- }
- }
+using System;
+using Swarmops.Basic.Enums;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Swarm
+{
+ [Serializable]
+ public class BasicPerson : IEmailPerson, IHasIdentity
+ {
+ public BasicPerson (string name, string email)
+ {
+ this.Name = name;
+ this.Email = email;
+ }
+
+ public BasicPerson (int personId, string passwordHash, string name, string email, string street,
+ string postalCode, string cityName, int countryId, string phone, int geographyId,
+ DateTime birthdate, PersonGender gender)
+ {
+ this.PersonId = personId;
+ this.PasswordHash = passwordHash;
+ this.Name = name;
+ this.Email = email;
+ this.Street = street;
+ this.PostalCode = postalCode;
+ this.CityName = cityName;
+ this.CountryId = countryId;
+ this.Phone = phone;
+ this.GeographyId = geographyId;
+ this.Birthdate = birthdate;
+ this.Gender = gender;
+ }
+
+ public BasicPerson (BasicPerson original)
+ : this (original.PersonId, original.PasswordHash, original.Name, original.Email, original.Street,
+ original.PostalCode, original.CityName, original.CountryId, original.Phone,
+ original.GeographyId, original.Birthdate, original.Gender)
+ {
+ }
+
+
+ public bool IsMale
+ {
+ get { return this.Gender == PersonGender.Male; }
+ }
+
+ public bool IsFemale
+ {
+ get { return this.Gender == PersonGender.Female; }
+ }
+
+
+ public int PersonId { get; private set; }
+ public string Street { get; protected set; }
+ public string PostalCode { get; protected set; }
+ public string CityName { get; protected set; }
+ public string Phone { get; protected set; }
+ public DateTime Birthdate { get; protected set; }
+ public string PasswordHash { get; protected set; }
+ public int GeographyId { get; protected set; }
+ public int CountryId { get; protected set; }
+ public PersonGender Gender { get; protected set; }
+ public string Name { get; protected set; }
+ public string Email { get; protected set; }
+
+
+ public int Identity
+ {
+ get { return this.PersonId; }
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicPersonRole.cs b/Basic/Types/Swarm/BasicPersonRole.cs
similarity index 93%
rename from Basic/Types/BasicPersonRole.cs
rename to Basic/Types/Swarm/BasicPersonRole.cs
index d02ca1b6..74a8d544 100644
--- a/Basic/Types/BasicPersonRole.cs
+++ b/Basic/Types/Swarm/BasicPersonRole.cs
@@ -1,77 +1,77 @@
-using Swarmops.Basic.Enums;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicPersonRole : IHasIdentity
- {
- private readonly int geographyId;
- private readonly int organizationId;
- private readonly int personId;
- private readonly int roleId;
- private readonly RoleType type;
-
- #region IHasIdentity Members
-
- public int Identity
- {
- get { return RoleId; }
- }
-
- #endregion
-
- protected BasicPersonRole()
- {
- }
-
- ///
- /// Normal constructor.
- ///
- /// The person Id.
- /// The node-specific role.
- /// The organization Id.
- /// The node Id.
- public BasicPersonRole (int roleId, int personId, RoleType type, int organizationId, int geographyId)
- {
- this.roleId = roleId;
- this.personId = personId;
- this.type = type;
- this.organizationId = organizationId;
- this.geographyId = geographyId;
- }
-
- ///
- /// Copy constructor.
- ///
- public BasicPersonRole (BasicPersonRole original)
- : this (original.roleId, original.personId, original.type, original.organizationId, original.geographyId)
- {
- }
-
-
- public int RoleId
- {
- get { return this.roleId; }
- }
-
- public int PersonId
- {
- get { return this.personId; }
- }
-
- public RoleType Type
- {
- get { return this.type; }
- }
-
- public int OrganizationId
- {
- get { return this.organizationId; }
- }
-
- public int GeographyId
- {
- get { return this.geographyId; }
- }
- }
+using Swarmops.Basic.Enums;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Swarm
+{
+ public class BasicPersonRole : IHasIdentity
+ {
+ private readonly int geographyId;
+ private readonly int organizationId;
+ private readonly int personId;
+ private readonly int roleId;
+ private readonly RoleType type;
+
+ #region IHasIdentity Members
+
+ public int Identity
+ {
+ get { return this.RoleId; }
+ }
+
+ #endregion
+
+ protected BasicPersonRole()
+ {
+ }
+
+ ///
+ /// Normal constructor.
+ ///
+ /// The person Id.
+ /// The node-specific role.
+ /// The organization Id.
+ /// The node Id.
+ public BasicPersonRole (int roleId, int personId, RoleType type, int organizationId, int geographyId)
+ {
+ this.roleId = roleId;
+ this.personId = personId;
+ this.type = type;
+ this.organizationId = organizationId;
+ this.geographyId = geographyId;
+ }
+
+ ///
+ /// Copy constructor.
+ ///
+ public BasicPersonRole (BasicPersonRole original)
+ : this (original.roleId, original.personId, original.type, original.organizationId, original.geographyId)
+ {
+ }
+
+
+ public int RoleId
+ {
+ get { return this.roleId; }
+ }
+
+ public int PersonId
+ {
+ get { return this.personId; }
+ }
+
+ public RoleType Type
+ {
+ get { return this.type; }
+ }
+
+ public int OrganizationId
+ {
+ get { return this.organizationId; }
+ }
+
+ public int GeographyId
+ {
+ get { return this.geographyId; }
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicVolunteer.cs b/Basic/Types/Swarm/BasicVolunteer.cs
similarity index 95%
rename from Basic/Types/BasicVolunteer.cs
rename to Basic/Types/Swarm/BasicVolunteer.cs
index b3ddaf8a..47120054 100644
--- a/Basic/Types/BasicVolunteer.cs
+++ b/Basic/Types/Swarm/BasicVolunteer.cs
@@ -1,79 +1,79 @@
-using System;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicVolunteer : IHasIdentity
- {
- private readonly DateTime closedDateTime;
- private readonly string closingComments;
- private readonly bool open;
- private readonly DateTime openedDateTime;
- private readonly int ownerPersonId;
- private readonly int personId;
- private readonly int volunteerId;
-
- public BasicVolunteer (int volunteerId, int personId, int ownerPersonId, DateTime openedDateTime,
- bool open, DateTime closedDateTime, string closingComments)
- {
- this.volunteerId = volunteerId;
- this.personId = personId;
- this.ownerPersonId = ownerPersonId;
- this.openedDateTime = openedDateTime;
- this.open = open;
- this.closedDateTime = closedDateTime;
- this.closingComments = closingComments;
- }
-
- public BasicVolunteer (BasicVolunteer original)
- : this (original.volunteerId, original.personId, original.ownerPersonId, original.openedDateTime,
- original.open, original.closedDateTime, original.closingComments)
- {
- // copy ctor
- }
-
- public int VolunteerId
- {
- get { return this.volunteerId; }
- }
-
- public int PersonId
- {
- get { return this.personId; }
- }
-
- public int OwnerPersonId
- {
- get { return this.ownerPersonId; }
- }
-
- public DateTime OpenedDateTime
- {
- get { return this.openedDateTime; }
- }
-
- public bool Open
- {
- get { return this.open; }
- }
-
- public DateTime ClosedDateTime
- {
- get { return this.closedDateTime; }
- }
-
- public string ClosingComments
- {
- get { return this.closingComments; }
- }
-
- #region IHasIdentity Members
-
- public int Identity
- {
- get { return this.volunteerId; }
- }
-
- #endregion
- }
+using System;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Swarm
+{
+ public class BasicVolunteer : IHasIdentity
+ {
+ private readonly DateTime closedDateTime;
+ private readonly string closingComments;
+ private readonly bool open;
+ private readonly DateTime openedDateTime;
+ private readonly int ownerPersonId;
+ private readonly int personId;
+ private readonly int volunteerId;
+
+ public BasicVolunteer (int volunteerId, int personId, int ownerPersonId, DateTime openedDateTime,
+ bool open, DateTime closedDateTime, string closingComments)
+ {
+ this.volunteerId = volunteerId;
+ this.personId = personId;
+ this.ownerPersonId = ownerPersonId;
+ this.openedDateTime = openedDateTime;
+ this.open = open;
+ this.closedDateTime = closedDateTime;
+ this.closingComments = closingComments;
+ }
+
+ public BasicVolunteer (BasicVolunteer original)
+ : this (original.volunteerId, original.personId, original.ownerPersonId, original.openedDateTime,
+ original.open, original.closedDateTime, original.closingComments)
+ {
+ // copy ctor
+ }
+
+ public int VolunteerId
+ {
+ get { return this.volunteerId; }
+ }
+
+ public int PersonId
+ {
+ get { return this.personId; }
+ }
+
+ public int OwnerPersonId
+ {
+ get { return this.ownerPersonId; }
+ }
+
+ public DateTime OpenedDateTime
+ {
+ get { return this.openedDateTime; }
+ }
+
+ public bool Open
+ {
+ get { return this.open; }
+ }
+
+ public DateTime ClosedDateTime
+ {
+ get { return this.closedDateTime; }
+ }
+
+ public string ClosingComments
+ {
+ get { return this.closingComments; }
+ }
+
+ #region IHasIdentity Members
+
+ public int Identity
+ {
+ get { return this.volunteerId; }
+ }
+
+ #endregion
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicVolunteerRole.cs b/Basic/Types/Swarm/BasicVolunteerRole.cs
similarity index 94%
rename from Basic/Types/BasicVolunteerRole.cs
rename to Basic/Types/Swarm/BasicVolunteerRole.cs
index 1e524ff7..14035420 100644
--- a/Basic/Types/BasicVolunteerRole.cs
+++ b/Basic/Types/Swarm/BasicVolunteerRole.cs
@@ -1,78 +1,78 @@
-using Swarmops.Basic.Enums;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicVolunteerRole : IHasIdentity
- {
- private readonly bool assigned;
- private readonly int geographyId;
- private readonly bool open;
- private readonly int organizationId;
- private readonly RoleType roleType;
- private readonly int volunteerId;
- private readonly int volunteerRoleId;
-
- public BasicVolunteerRole (int volunteerRoleId, int volunteerId, int organizationId, int geographyId,
- RoleType roleType, bool open, bool assigned)
- {
- this.volunteerRoleId = volunteerRoleId;
- this.volunteerId = volunteerId;
- this.organizationId = organizationId;
- this.geographyId = geographyId;
- this.roleType = roleType;
- this.open = open;
- this.assigned = assigned;
- }
-
- public BasicVolunteerRole (BasicVolunteerRole original)
- : this (original.volunteerRoleId, original.volunteerId, original.organizationId, original.geographyId,
- original.roleType, original.open, original.assigned)
- {
- }
-
- public int VolunteerRoleId
- {
- get { return this.volunteerRoleId; }
- }
-
- public int VolunteerId
- {
- get { return this.volunteerId; }
- }
-
- public int OrganizationId
- {
- get { return this.organizationId; }
- }
-
- public int GeographyId
- {
- get { return this.geographyId; }
- }
-
- public RoleType RoleType
- {
- get { return this.roleType; }
- }
-
- public bool Open
- {
- get { return this.open; }
- }
-
- public bool Assigned
- {
- get { return this.assigned; }
- }
-
- #region IHasIdentity Members
-
- public int Identity
- {
- get { return this.volunteerRoleId; }
- }
-
- #endregion
- }
+using Swarmops.Basic.Enums;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Swarm
+{
+ public class BasicVolunteerRole : IHasIdentity
+ {
+ private readonly bool assigned;
+ private readonly int geographyId;
+ private readonly bool open;
+ private readonly int organizationId;
+ private readonly RoleType roleType;
+ private readonly int volunteerId;
+ private readonly int volunteerRoleId;
+
+ public BasicVolunteerRole (int volunteerRoleId, int volunteerId, int organizationId, int geographyId,
+ RoleType roleType, bool open, bool assigned)
+ {
+ this.volunteerRoleId = volunteerRoleId;
+ this.volunteerId = volunteerId;
+ this.organizationId = organizationId;
+ this.geographyId = geographyId;
+ this.roleType = roleType;
+ this.open = open;
+ this.assigned = assigned;
+ }
+
+ public BasicVolunteerRole (BasicVolunteerRole original)
+ : this (original.volunteerRoleId, original.volunteerId, original.organizationId, original.geographyId,
+ original.roleType, original.open, original.assigned)
+ {
+ }
+
+ public int VolunteerRoleId
+ {
+ get { return this.volunteerRoleId; }
+ }
+
+ public int VolunteerId
+ {
+ get { return this.volunteerId; }
+ }
+
+ public int OrganizationId
+ {
+ get { return this.organizationId; }
+ }
+
+ public int GeographyId
+ {
+ get { return this.geographyId; }
+ }
+
+ public RoleType RoleType
+ {
+ get { return this.roleType; }
+ }
+
+ public bool Open
+ {
+ get { return this.open; }
+ }
+
+ public bool Assigned
+ {
+ get { return this.assigned; }
+ }
+
+ #region IHasIdentity Members
+
+ public int Identity
+ {
+ get { return this.volunteerRoleId; }
+ }
+
+ #endregion
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicAddressValidationRun.cs b/Basic/Types/System/BasicAddressValidationRun.cs
similarity index 88%
rename from Basic/Types/BasicAddressValidationRun.cs
rename to Basic/Types/System/BasicAddressValidationRun.cs
index 9d9edc5d..6a794d09 100644
--- a/Basic/Types/BasicAddressValidationRun.cs
+++ b/Basic/Types/System/BasicAddressValidationRun.cs
@@ -1,19 +1,19 @@
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicAddressValidationRun : IHasIdentity
- {
- private readonly int validationRunId;
-
- public BasicAddressValidationRun (int validationRunId)
- {
- this.validationRunId = validationRunId;
- }
-
- public int Identity
- {
- get { return this.validationRunId; }
- }
- }
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.System
+{
+ public class BasicAddressValidationRun : IHasIdentity
+ {
+ private readonly int validationRunId;
+
+ public BasicAddressValidationRun (int validationRunId)
+ {
+ this.validationRunId = validationRunId;
+ }
+
+ public int Identity
+ {
+ get { return this.validationRunId; }
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicExceptionLog.cs b/Basic/Types/System/BasicExceptionLog.cs
similarity index 93%
rename from Basic/Types/BasicExceptionLog.cs
rename to Basic/Types/System/BasicExceptionLog.cs
index 0927bac0..0774df2f 100644
--- a/Basic/Types/BasicExceptionLog.cs
+++ b/Basic/Types/System/BasicExceptionLog.cs
@@ -1,26 +1,26 @@
-using System;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicExceptionLog
- {
- public BasicExceptionLog (int ExceptionId, DateTime ExceptionDateTime, string Source, string ExceptionText)
- {
- this.ExceptionId = ExceptionId;
- this.ExceptionDateTime = ExceptionDateTime;
- this.Source = Source;
- this.ExceptionText = ExceptionText;
- }
-
- public BasicExceptionLog (BasicExceptionLog original) :
- this (original.ExceptionId, original.ExceptionDateTime, original.Source, original.ExceptionText)
- {
- // empty copy ctor
- }
-
- public int ExceptionId { get; private set; }
- public DateTime ExceptionDateTime { get; private set; }
- public string Source { get; private set; }
- public string ExceptionText { get; private set; }
- }
+using System;
+
+namespace Swarmops.Basic.Types.System
+{
+ public class BasicExceptionLog
+ {
+ public BasicExceptionLog (int ExceptionId, DateTime ExceptionDateTime, string Source, string ExceptionText)
+ {
+ this.ExceptionId = ExceptionId;
+ this.ExceptionDateTime = ExceptionDateTime;
+ this.Source = Source;
+ this.ExceptionText = ExceptionText;
+ }
+
+ public BasicExceptionLog (BasicExceptionLog original) :
+ this (original.ExceptionId, original.ExceptionDateTime, original.Source, original.ExceptionText)
+ {
+ // empty copy ctor
+ }
+
+ public int ExceptionId { get; private set; }
+ public DateTime ExceptionDateTime { get; private set; }
+ public string Source { get; private set; }
+ public string ExceptionText { get; private set; }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicObjectOptionalData.cs b/Basic/Types/System/BasicObjectOptionalData.cs
similarity index 85%
rename from Basic/Types/BasicObjectOptionalData.cs
rename to Basic/Types/System/BasicObjectOptionalData.cs
index 51adf3b4..7d788d02 100644
--- a/Basic/Types/BasicObjectOptionalData.cs
+++ b/Basic/Types/System/BasicObjectOptionalData.cs
@@ -1,29 +1,29 @@
-using System;
-using System.Collections.Generic;
-using Swarmops.Basic.Enums;
-
-namespace Swarmops.Basic.Types
-{
- [Serializable]
- public class BasicObjectOptionalData
- {
- protected Dictionary OptionalData;
-
- public BasicObjectOptionalData (ObjectType objectType, int objectId,
- Dictionary initialData)
- {
- ObjectType = objectType;
- ObjectId = objectId;
- this.OptionalData = initialData;
- }
-
- public BasicObjectOptionalData (BasicObjectOptionalData original)
- : this (original.ObjectType, original.ObjectId, original.OptionalData)
- {
- // empty ctor
- }
-
- public ObjectType ObjectType { get; private set; }
- public int ObjectId { get; private set; }
- }
+using System;
+using System.Collections.Generic;
+using Swarmops.Basic.Enums;
+
+namespace Swarmops.Basic.Types.System
+{
+ [Serializable]
+ public class BasicObjectOptionalData
+ {
+ protected Dictionary OptionalData;
+
+ public BasicObjectOptionalData (ObjectType objectType, int objectId,
+ Dictionary initialData)
+ {
+ this.ObjectType = objectType;
+ this.ObjectId = objectId;
+ this.OptionalData = initialData;
+ }
+
+ public BasicObjectOptionalData (BasicObjectOptionalData original)
+ : this (original.ObjectType, original.ObjectId, original.OptionalData)
+ {
+ // empty ctor
+ }
+
+ public ObjectType ObjectType { get; private set; }
+ public int ObjectId { get; private set; }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicPWEvent.cs b/Basic/Types/System/BasicPWEvent.cs
similarity index 65%
rename from Basic/Types/BasicPWEvent.cs
rename to Basic/Types/System/BasicPWEvent.cs
index 464d4fb8..9c28690c 100644
--- a/Basic/Types/BasicPWEvent.cs
+++ b/Basic/Types/System/BasicPWEvent.cs
@@ -1,40 +1,40 @@
-using System;
-using Swarmops.Basic.Enums;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicPWEvent
- {
- public BasicPWEvent (int eventId, DateTime dateTime, bool open, DateTime processedDateTime, EventType eventType,
- EventSource eventSource, int actingPersonId, int affectedPersonId, int organizationId,
- int geographyId, int parameterInt, string parameterText)
- {
- EventId = eventId;
- DateTime = dateTime;
- Open = open;
- ProcessedDateTime = processedDateTime;
- EventType = eventType;
- EventSource = eventSource;
- ActingPersonId = actingPersonId;
- AffectedPersonId = affectedPersonId;
- OrganizationId = organizationId;
- GeographyId = geographyId;
- ParameterInt = parameterInt;
- ParameterText = parameterText;
- }
-
-
- public DateTime DateTime { get; private set; }
- public DateTime ProcessedDateTime { get; protected set; }
- public int EventId { get; private set; }
- public bool Open { get; protected set; }
- public EventType EventType { get; private set; }
- public EventSource EventSource { get; private set; }
- public int ActingPersonId { get; private set; }
- public int AffectedPersonId { get; private set; }
- public int OrganizationId { get; private set; }
- public int GeographyId { get; private set; }
- public int ParameterInt { get; private set; }
- public string ParameterText { get; private set; }
- }
+using System;
+using Swarmops.Basic.Enums;
+
+namespace Swarmops.Basic.Types.System
+{
+ public class BasicPWEvent
+ {
+ public BasicPWEvent (int eventId, DateTime dateTime, bool open, DateTime processedDateTime, EventType eventType,
+ EventSource eventSource, int actingPersonId, int affectedPersonId, int organizationId,
+ int geographyId, int parameterInt, string parameterText)
+ {
+ this.EventId = eventId;
+ this.DateTime = dateTime;
+ this.Open = open;
+ this.ProcessedDateTime = processedDateTime;
+ this.EventType = eventType;
+ this.EventSource = eventSource;
+ this.ActingPersonId = actingPersonId;
+ this.AffectedPersonId = affectedPersonId;
+ this.OrganizationId = organizationId;
+ this.GeographyId = geographyId;
+ this.ParameterInt = parameterInt;
+ this.ParameterText = parameterText;
+ }
+
+
+ public DateTime DateTime { get; private set; }
+ public DateTime ProcessedDateTime { get; protected set; }
+ public int EventId { get; private set; }
+ public bool Open { get; protected set; }
+ public EventType EventType { get; private set; }
+ public EventSource EventSource { get; private set; }
+ public int ActingPersonId { get; private set; }
+ public int AffectedPersonId { get; private set; }
+ public int OrganizationId { get; private set; }
+ public int GeographyId { get; private set; }
+ public int ParameterInt { get; private set; }
+ public string ParameterText { get; private set; }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicPWLog.cs b/Basic/Types/System/BasicPWLog.cs
similarity index 95%
rename from Basic/Types/BasicPWLog.cs
rename to Basic/Types/System/BasicPWLog.cs
index b9456b8e..2c700115 100644
--- a/Basic/Types/BasicPWLog.cs
+++ b/Basic/Types/System/BasicPWLog.cs
@@ -1,112 +1,112 @@
-using System;
-
-namespace Swarmops.Basic.Types
-{
- [Serializable]
- public class BasicPWLog
- {
- private int actingPersonId;
- private string actionDescription;
- private string actionType;
- private int affectedItemId;
- private string affectedItemType;
- private string changedField;
- private string comment;
- private DateTime dateTimeUtc;
- private string ipAddress;
- private string valueAfter;
- private string valueBefore;
-
- public BasicPWLog (DateTime dateTimeUtc,
- int actingPersonId,
- string affectedItemType,
- int affectedItemId,
- string actionType,
- string actionDescription,
- string changedField,
- string valueBefore,
- string valueAfter,
- string comment,
- string ipAddress)
- {
- this.dateTimeUtc = dateTimeUtc;
- this.actingPersonId = actingPersonId;
- this.affectedItemType = affectedItemType;
- this.affectedItemId = affectedItemId;
- this.actionType = actionType;
- this.actionDescription = actionDescription;
- this.changedField = changedField;
- this.valueBefore = valueBefore;
- this.valueAfter = valueAfter;
- this.comment = comment;
- this.ipAddress = ipAddress;
- }
-
-
- public DateTime DateTimeUtc
- {
- get { return this.dateTimeUtc; }
- set { this.dateTimeUtc = value; }
- }
-
- public int ActingPersonId
- {
- get { return this.actingPersonId; }
- set { this.actingPersonId = value; }
- }
-
- public string AffectedItemType
- {
- get { return this.affectedItemType; }
- set { this.affectedItemType = value; }
- }
-
- public int AffectedItemId
- {
- get { return this.affectedItemId; }
- set { this.affectedItemId = value; }
- }
-
- public string ActionType
- {
- get { return this.actionType; }
- set { this.actionType = value; }
- }
-
- public string ActionDescription
- {
- get { return this.actionDescription; }
- set { this.actionDescription = value; }
- }
-
- public string ChangedField
- {
- get { return this.changedField; }
- set { this.changedField = value; }
- }
-
- public string ValueBefore
- {
- get { return this.valueBefore; }
- set { this.valueBefore = value; }
- }
-
- public string ValueAfter
- {
- get { return this.valueAfter; }
- set { this.valueAfter = value; }
- }
-
- public string Comment
- {
- get { return this.comment; }
- set { this.comment = value; }
- }
-
- public string IpAddress
- {
- get { return this.ipAddress; }
- set { this.ipAddress = value; }
- }
- }
+using System;
+
+namespace Swarmops.Basic.Types.System
+{
+ [Serializable]
+ public class BasicPWLog
+ {
+ private int actingPersonId;
+ private string actionDescription;
+ private string actionType;
+ private int affectedItemId;
+ private string affectedItemType;
+ private string changedField;
+ private string comment;
+ private DateTime dateTimeUtc;
+ private string ipAddress;
+ private string valueAfter;
+ private string valueBefore;
+
+ public BasicPWLog (DateTime dateTimeUtc,
+ int actingPersonId,
+ string affectedItemType,
+ int affectedItemId,
+ string actionType,
+ string actionDescription,
+ string changedField,
+ string valueBefore,
+ string valueAfter,
+ string comment,
+ string ipAddress)
+ {
+ this.dateTimeUtc = dateTimeUtc;
+ this.actingPersonId = actingPersonId;
+ this.affectedItemType = affectedItemType;
+ this.affectedItemId = affectedItemId;
+ this.actionType = actionType;
+ this.actionDescription = actionDescription;
+ this.changedField = changedField;
+ this.valueBefore = valueBefore;
+ this.valueAfter = valueAfter;
+ this.comment = comment;
+ this.ipAddress = ipAddress;
+ }
+
+
+ public DateTime DateTimeUtc
+ {
+ get { return this.dateTimeUtc; }
+ set { this.dateTimeUtc = value; }
+ }
+
+ public int ActingPersonId
+ {
+ get { return this.actingPersonId; }
+ set { this.actingPersonId = value; }
+ }
+
+ public string AffectedItemType
+ {
+ get { return this.affectedItemType; }
+ set { this.affectedItemType = value; }
+ }
+
+ public int AffectedItemId
+ {
+ get { return this.affectedItemId; }
+ set { this.affectedItemId = value; }
+ }
+
+ public string ActionType
+ {
+ get { return this.actionType; }
+ set { this.actionType = value; }
+ }
+
+ public string ActionDescription
+ {
+ get { return this.actionDescription; }
+ set { this.actionDescription = value; }
+ }
+
+ public string ChangedField
+ {
+ get { return this.changedField; }
+ set { this.changedField = value; }
+ }
+
+ public string ValueBefore
+ {
+ get { return this.valueBefore; }
+ set { this.valueBefore = value; }
+ }
+
+ public string ValueAfter
+ {
+ get { return this.valueAfter; }
+ set { this.valueAfter = value; }
+ }
+
+ public string Comment
+ {
+ get { return this.comment; }
+ set { this.comment = value; }
+ }
+
+ public string IpAddress
+ {
+ get { return this.ipAddress; }
+ set { this.ipAddress = value; }
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicSwarmopsLogEntry.cs b/Basic/Types/System/BasicSwarmopsLogEntry.cs
similarity index 74%
rename from Basic/Types/BasicSwarmopsLogEntry.cs
rename to Basic/Types/System/BasicSwarmopsLogEntry.cs
index d77a6dd3..e30138a2 100644
--- a/Basic/Types/BasicSwarmopsLogEntry.cs
+++ b/Basic/Types/System/BasicSwarmopsLogEntry.cs
@@ -1,37 +1,37 @@
-using System;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicSwarmopsLogEntry : IHasIdentity
- {
- public BasicSwarmopsLogEntry (int swarmopsLogEntryId, int personId, DateTime dateTime, int entryTypeId,
- string entryXml)
- {
- SwarmopsLogEntryId = swarmopsLogEntryId;
- PersonId = personId;
- DateTime = dateTime;
- EntryTypeId = entryTypeId;
- EntryXml = entryXml;
- }
-
- public BasicSwarmopsLogEntry (BasicSwarmopsLogEntry original)
- : this (
- original.SwarmopsLogEntryId, original.PersonId, original.DateTime, original.EntryTypeId,
- original.EntryXml)
- {
- // copy ctor
- }
-
- public int SwarmopsLogEntryId { get; private set; }
- public int PersonId { get; private set; }
- public DateTime DateTime { get; private set; }
- public int EntryTypeId { get; private set; }
- public string EntryXml { get; private set; }
-
- public int Identity
- {
- get { return SwarmopsLogEntryId; }
- }
- }
+using System;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.System
+{
+ public class BasicSwarmopsLogEntry : IHasIdentity
+ {
+ public BasicSwarmopsLogEntry (int swarmopsLogEntryId, int personId, DateTime dateTime, int entryTypeId,
+ string entryXml)
+ {
+ this.SwarmopsLogEntryId = swarmopsLogEntryId;
+ this.PersonId = personId;
+ this.DateTime = dateTime;
+ this.EntryTypeId = entryTypeId;
+ this.EntryXml = entryXml;
+ }
+
+ public BasicSwarmopsLogEntry (BasicSwarmopsLogEntry original)
+ : this (
+ original.SwarmopsLogEntryId, original.PersonId, original.DateTime, original.EntryTypeId,
+ original.EntryXml)
+ {
+ // copy ctor
+ }
+
+ public int SwarmopsLogEntryId { get; private set; }
+ public int PersonId { get; private set; }
+ public DateTime DateTime { get; private set; }
+ public int EntryTypeId { get; private set; }
+ public string EntryXml { get; private set; }
+
+ public int Identity
+ {
+ get { return this.SwarmopsLogEntryId; }
+ }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/XmlSerializableDictionary.cs b/Basic/Types/XmlSerializableDictionary.cs
deleted file mode 100644
index bb84fc83..00000000
--- a/Basic/Types/XmlSerializableDictionary.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-using System.Collections.Generic;
-using System.Xml;
-using System.Xml.Schema;
-using System.Xml.Serialization;
-
-[XmlRoot ("dictionary")]
-public class SerializableDictionary
- : Dictionary, IXmlSerializable
-{
- #region IXmlSerializable Members
-
- public XmlSchema GetSchema()
- {
- return null;
- }
-
- public void ReadXml (XmlReader reader)
- {
- XmlSerializer keySerializer = new XmlSerializer (typeof (TKey));
- XmlSerializer valueSerializer = new XmlSerializer (typeof (TValue));
-
- bool wasEmpty = reader.IsEmptyElement;
- reader.Read();
-
- if (wasEmpty)
- return;
-
- while (reader.NodeType != XmlNodeType.EndElement)
- {
- reader.ReadStartElement ("item");
-
- reader.ReadStartElement ("key");
- TKey key = (TKey) keySerializer.Deserialize (reader);
- reader.ReadEndElement();
-
- reader.ReadStartElement ("value");
- TValue value = (TValue) valueSerializer.Deserialize (reader);
- reader.ReadEndElement();
-
- Add (key, value);
-
- reader.ReadEndElement();
- reader.MoveToContent();
- }
- reader.ReadEndElement();
- }
-
- public void WriteXml (XmlWriter writer)
- {
- XmlSerializer keySerializer = new XmlSerializer (typeof (TKey));
- XmlSerializer valueSerializer = new XmlSerializer (typeof (TValue));
-
- foreach (TKey key in Keys)
- {
- writer.WriteStartElement ("item");
-
- writer.WriteStartElement ("key");
- keySerializer.Serialize (writer, key);
- writer.WriteEndElement();
-
- writer.WriteStartElement ("value");
- TValue value = this[key];
- valueSerializer.Serialize (writer, value);
- writer.WriteEndElement();
-
- writer.WriteEndElement();
- }
- }
-
- #endregion
-}
\ No newline at end of file
diff --git a/Console/Console.cs b/Console/Console.cs
index de83cce8..ec32ea6b 100644
--- a/Console/Console.cs
+++ b/Console/Console.cs
@@ -4,6 +4,7 @@ using System.IO;
using System.Text;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.System;
using Swarmops.Database;
using Swarmops.Logic.Communications;
using Swarmops.Logic.Communications.Transmission;
diff --git a/Database/Database-Ballots.cs b/Database/Database-Ballots.cs
index 3e3110a0..7cf13026 100644
--- a/Database/Database-Ballots.cs
+++ b/Database/Database-Ballots.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Governance;
namespace Swarmops.Database
{
diff --git a/Database/Database-ChurnData.cs b/Database/Database-ChurnData.cs
index 07f27648..41b54b8c 100644
--- a/Database/Database-ChurnData.cs
+++ b/Database/Database-ChurnData.cs
@@ -5,6 +5,7 @@ using System.Data.Common;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Interfaces;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
namespace Swarmops.Database
{
diff --git a/Database/Database-CommunicationTurnarounds.cs b/Database/Database-CommunicationTurnarounds.cs
index 194d81bf..4754fa14 100644
--- a/Database/Database-CommunicationTurnarounds.cs
+++ b/Database/Database-CommunicationTurnarounds.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Communications;
namespace Swarmops.Database
{
diff --git a/Database/Database-Currencies.cs b/Database/Database-Currencies.cs
index ed21c414..d06fdfd4 100644
--- a/Database/Database-Currencies.cs
+++ b/Database/Database-Currencies.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
namespace Swarmops.Database
{
diff --git a/Database/Database-Documents.cs b/Database/Database-Documents.cs
index bb95690d..4c766e21 100644
--- a/Database/Database-Documents.cs
+++ b/Database/Database-Documents.cs
@@ -5,6 +5,7 @@ using System.Data.Common;
using MySql.Data.MySqlClient;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Common;
namespace Swarmops.Database
{
diff --git a/Database/Database-Events.cs b/Database/Database-Events.cs
index 7a6387e2..74e5a04e 100644
--- a/Database/Database-Events.cs
+++ b/Database/Database-Events.cs
@@ -4,6 +4,7 @@ using System.Data;
using System.Data.Common;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.System;
namespace Swarmops.Database
{
diff --git a/Database/Database-ExceptionLog.cs b/Database/Database-ExceptionLog.cs
index 96ac62f1..1ce60c48 100644
--- a/Database/Database-ExceptionLog.cs
+++ b/Database/Database-ExceptionLog.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.System;
namespace Swarmops.Database
{
diff --git a/Database/Database-Expenses.cs b/Database/Database-Expenses.cs
index c61668bf..db4e2275 100644
--- a/Database/Database-Expenses.cs
+++ b/Database/Database-Expenses.cs
@@ -4,6 +4,7 @@ using System.Data;
using System.Data.Common;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
namespace Swarmops.Database
{
diff --git a/Database/Database-ExternalActivities.cs b/Database/Database-ExternalActivities.cs
index a709906b..76665635 100644
--- a/Database/Database-ExternalActivities.cs
+++ b/Database/Database-ExternalActivities.cs
@@ -4,6 +4,7 @@ using System.Data;
using System.Data.Common;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
namespace Swarmops.Database
{
diff --git a/Database/Database-ExternalCredentials.cs b/Database/Database-ExternalCredentials.cs
index 12941d0b..018ab581 100644
--- a/Database/Database-ExternalCredentials.cs
+++ b/Database/Database-ExternalCredentials.cs
@@ -1,6 +1,7 @@
using System;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Security;
namespace Swarmops.Database
{
diff --git a/Database/Database-ExternalIdentities.cs b/Database/Database-ExternalIdentities.cs
index a7351b3f..e53eb55f 100644
--- a/Database/Database-ExternalIdentities.cs
+++ b/Database/Database-ExternalIdentities.cs
@@ -4,6 +4,7 @@ using System.Data;
using System.Data.Common;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Security;
namespace Swarmops.Database
{
diff --git a/Database/Database-InboundInvoices.cs b/Database/Database-InboundInvoices.cs
index 9791e63d..513c6448 100644
--- a/Database/Database-InboundInvoices.cs
+++ b/Database/Database-InboundInvoices.cs
@@ -5,6 +5,7 @@ using System.Data.Common;
using Swarmops.Basic.Types;
// This is the first part of Database to fully use MySql.
+using Swarmops.Basic.Types.Financial;
namespace Swarmops.Database
{
diff --git a/Database/Database-InternalPollCandidates.cs b/Database/Database-InternalPollCandidates.cs
index 759440ab..46421e0d 100644
--- a/Database/Database-InternalPollCandidates.cs
+++ b/Database/Database-InternalPollCandidates.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Governance;
namespace Swarmops.Database
{
diff --git a/Database/Database-InternalPollVotes.cs b/Database/Database-InternalPollVotes.cs
index 00bc51cc..7e5931ae 100644
--- a/Database/Database-InternalPollVotes.cs
+++ b/Database/Database-InternalPollVotes.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Governance;
namespace Swarmops.Database
{
diff --git a/Database/Database-InternalPolls.cs b/Database/Database-InternalPolls.cs
index 082eb036..1c6e2f80 100644
--- a/Database/Database-InternalPolls.cs
+++ b/Database/Database-InternalPolls.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Governance;
namespace Swarmops.Database
{
diff --git a/Database/Database-MailTemplates.cs b/Database/Database-MailTemplates.cs
index 0db5e723..9d138cfe 100644
--- a/Database/Database-MailTemplates.cs
+++ b/Database/Database-MailTemplates.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Communications;
namespace Swarmops.Database
{
diff --git a/Database/Database-Memberships.cs b/Database/Database-Memberships.cs
index 4fe81d17..aef7badc 100644
--- a/Database/Database-Memberships.cs
+++ b/Database/Database-Memberships.cs
@@ -5,6 +5,7 @@ using System.Data.Common;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Interfaces;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
namespace Swarmops.Database
{
diff --git a/Database/Database-Newsletters.cs b/Database/Database-Newsletters.cs
index 67508707..74d91019 100644
--- a/Database/Database-Newsletters.cs
+++ b/Database/Database-Newsletters.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Communications;
using Swarmops.Basic.Types.Structure;
namespace Swarmops.Database
diff --git a/Database/Database-OptionalData.cs b/Database/Database-OptionalData.cs
index 36dc8d9c..871a6da7 100644
--- a/Database/Database-OptionalData.cs
+++ b/Database/Database-OptionalData.cs
@@ -5,6 +5,7 @@ using System.Data.Common;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Interfaces;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.System;
namespace Swarmops.Database
{
diff --git a/Database/Database-OutboundInvoices.cs b/Database/Database-OutboundInvoices.cs
index 0fdf2465..192338dc 100644
--- a/Database/Database-OutboundInvoices.cs
+++ b/Database/Database-OutboundInvoices.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
namespace Swarmops.Database
{
diff --git a/Database/Database-OutboundMailRecipients.cs b/Database/Database-OutboundMailRecipients.cs
index 723840a2..a1fccf0d 100644
--- a/Database/Database-OutboundMailRecipients.cs
+++ b/Database/Database-OutboundMailRecipients.cs
@@ -2,6 +2,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Communications;
namespace Swarmops.Database
{
diff --git a/Database/Database-OutboundMails.cs b/Database/Database-OutboundMails.cs
index aa0f1c61..7cabd06f 100644
--- a/Database/Database-OutboundMails.cs
+++ b/Database/Database-OutboundMails.cs
@@ -4,6 +4,7 @@ using System.Data;
using System.Data.Common;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Communications;
namespace Swarmops.Database
{
diff --git a/Database/Database-PaperLetters.cs b/Database/Database-PaperLetters.cs
index 2470aebb..8a27d16b 100644
--- a/Database/Database-PaperLetters.cs
+++ b/Database/Database-PaperLetters.cs
@@ -6,6 +6,7 @@ using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
// This is the first part of Database to fully use MySql.
+using Swarmops.Basic.Types.Communications;
namespace Swarmops.Database
{
diff --git a/Database/Database-PaymentCodes.cs b/Database/Database-PaymentCodes.cs
index bb727b9f..aaaa3772 100644
--- a/Database/Database-PaymentCodes.cs
+++ b/Database/Database-PaymentCodes.cs
@@ -2,6 +2,7 @@ using System;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
namespace Swarmops.Database
{
diff --git a/Database/Database-PaymentGroups.cs b/Database/Database-PaymentGroups.cs
index cb587a3f..38ec2dae 100644
--- a/Database/Database-PaymentGroups.cs
+++ b/Database/Database-PaymentGroups.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
namespace Swarmops.Database
{
diff --git a/Database/Database-Payments.cs b/Database/Database-Payments.cs
index 0c8dc108..390d4236 100644
--- a/Database/Database-Payments.cs
+++ b/Database/Database-Payments.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
namespace Swarmops.Database
{
diff --git a/Database/Database-Payroll.cs b/Database/Database-Payroll.cs
index 88a3d6d1..6b4a632d 100644
--- a/Database/Database-Payroll.cs
+++ b/Database/Database-Payroll.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
namespace Swarmops.Database
{
diff --git a/Database/Database-PayrollAdjustments.cs b/Database/Database-PayrollAdjustments.cs
index 0081cd19..8409ea0b 100644
--- a/Database/Database-PayrollAdjustments.cs
+++ b/Database/Database-PayrollAdjustments.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
namespace Swarmops.Database
{
diff --git a/Database/Database-People.cs b/Database/Database-People.cs
index 175ddedb..3a14f32e 100644
--- a/Database/Database-People.cs
+++ b/Database/Database-People.cs
@@ -6,6 +6,7 @@ using System.Diagnostics;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
using Swarmops.Basic.Types.Structure;
+using Swarmops.Basic.Types.Swarm;
namespace Swarmops.Database
{
diff --git a/Database/Database-Permissions.cs b/Database/Database-Permissions.cs
index 68961c31..e91bcc22 100644
--- a/Database/Database-Permissions.cs
+++ b/Database/Database-Permissions.cs
@@ -4,6 +4,7 @@ using System.Data;
using System.Data.Common;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Security;
namespace Swarmops.Database
{
diff --git a/Database/Database-PirateWebLog.cs b/Database/Database-PirateWebLog.cs
index 59d7f0f6..16df9729 100644
--- a/Database/Database-PirateWebLog.cs
+++ b/Database/Database-PirateWebLog.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.System;
namespace Swarmops.Database
{
diff --git a/Database/Database-Positions.cs b/Database/Database-Positions.cs
index 0554894e..4e31351c 100644
--- a/Database/Database-Positions.cs
+++ b/Database/Database-Positions.cs
@@ -84,6 +84,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
namespace Swarmops.Database
{
diff --git a/Database/Database-Refunds.cs b/Database/Database-Refunds.cs
index 76e0777f..181a1caa 100644
--- a/Database/Database-Refunds.cs
+++ b/Database/Database-Refunds.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
namespace Swarmops.Database
{
diff --git a/Database/Database-Roles.cs b/Database/Database-Roles.cs
index 73f9cd52..d3b34f93 100644
--- a/Database/Database-Roles.cs
+++ b/Database/Database-Roles.cs
@@ -6,6 +6,7 @@ using Swarmops.Basic.Enums;
using Swarmops.Basic.Interfaces;
using Swarmops.Basic.Types;
using Swarmops.Basic.Types.Security;
+using Swarmops.Basic.Types.Swarm;
namespace Swarmops.Database
{
diff --git a/Database/Database-Salaries.cs b/Database/Database-Salaries.cs
index b0c3fe76..0246e964 100644
--- a/Database/Database-Salaries.cs
+++ b/Database/Database-Salaries.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
namespace Swarmops.Database
{
diff --git a/Database/Database-SwarmopsLog.cs b/Database/Database-SwarmopsLog.cs
index d5736b38..279d8244 100644
--- a/Database/Database-SwarmopsLog.cs
+++ b/Database/Database-SwarmopsLog.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.System;
namespace Swarmops.Database
{
diff --git a/Database/Database-Volunteers.cs b/Database/Database-Volunteers.cs
index fb45fe0e..9b878df7 100644
--- a/Database/Database-Volunteers.cs
+++ b/Database/Database-Volunteers.cs
@@ -4,6 +4,7 @@ using System.Data;
using System.Data.Common;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
namespace Swarmops.Database
{
diff --git a/Interface/DataObjects/ListPersonDataSource.cs b/Interface/DataObjects/ListPersonDataSource.cs
index 1f4ad39c..340f65e9 100644
--- a/Interface/DataObjects/ListPersonDataSource.cs
+++ b/Interface/DataObjects/ListPersonDataSource.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Reflection;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Logic.Swarm;
///
diff --git a/Interface/DataObjects/OrganizationRolesDataObject.cs b/Interface/DataObjects/OrganizationRolesDataObject.cs
index b354544c..84789047 100644
--- a/Interface/DataObjects/OrganizationRolesDataObject.cs
+++ b/Interface/DataObjects/OrganizationRolesDataObject.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.ComponentModel;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Swarm;
diff --git a/Logic/Cache/MailTemplateCache.cs b/Logic/Cache/MailTemplateCache.cs
index e7a8caa5..f79907d2 100644
--- a/Logic/Cache/MailTemplateCache.cs
+++ b/Logic/Cache/MailTemplateCache.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Communications;
using Swarmops.Database;
using Swarmops.Logic.Structure;
diff --git a/Logic/Communications/CommunicationTurnaround.cs b/Logic/Communications/CommunicationTurnaround.cs
index 7e48f3a6..0ad6bf79 100644
--- a/Logic/Communications/CommunicationTurnaround.cs
+++ b/Logic/Communications/CommunicationTurnaround.cs
@@ -1,5 +1,6 @@
using System;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Communications;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Swarm;
diff --git a/Logic/Communications/CommunicationTurnarounds.cs b/Logic/Communications/CommunicationTurnarounds.cs
index 45b0dc70..979f5713 100644
--- a/Logic/Communications/CommunicationTurnarounds.cs
+++ b/Logic/Communications/CommunicationTurnarounds.cs
@@ -1,4 +1,5 @@
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Communications;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Support;
diff --git a/Logic/Communications/MailTemplate.cs b/Logic/Communications/MailTemplate.cs
index 62e3efb2..1448df07 100644
--- a/Logic/Communications/MailTemplate.cs
+++ b/Logic/Communications/MailTemplate.cs
@@ -4,6 +4,7 @@ using System.Text.RegularExpressions;
using System.Web;
using HtmlAgilityPack;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Communications;
using Swarmops.Database;
using Swarmops.Logic.Cache;
using Swarmops.Logic.Structure;
diff --git a/Logic/Communications/NewsletterFeed.cs b/Logic/Communications/NewsletterFeed.cs
index d42c14f5..2096e087 100644
--- a/Logic/Communications/NewsletterFeed.cs
+++ b/Logic/Communications/NewsletterFeed.cs
@@ -1,4 +1,5 @@
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Communications;
using Swarmops.Database;
namespace Swarmops.Logic.Communications
diff --git a/Logic/Communications/NewsletterFeeds.cs b/Logic/Communications/NewsletterFeeds.cs
index 245f984f..ba1c5505 100644
--- a/Logic/Communications/NewsletterFeeds.cs
+++ b/Logic/Communications/NewsletterFeeds.cs
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Communications;
namespace Swarmops.Logic.Communications
{
diff --git a/Logic/Communications/OutboundMail.cs b/Logic/Communications/OutboundMail.cs
index b6068889..ca505c83 100644
--- a/Logic/Communications/OutboundMail.cs
+++ b/Logic/Communications/OutboundMail.cs
@@ -4,6 +4,7 @@ using System.Text.RegularExpressions;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Interfaces;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Communications;
using Swarmops.Database;
using Swarmops.Logic.Media;
using Swarmops.Logic.Structure;
diff --git a/Logic/Communications/OutboundMailRecipient.cs b/Logic/Communications/OutboundMailRecipient.cs
index 4d8d8338..1191a899 100644
--- a/Logic/Communications/OutboundMailRecipient.cs
+++ b/Logic/Communications/OutboundMailRecipient.cs
@@ -1,5 +1,6 @@
using Swarmops.Basic.Interfaces;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Communications;
using Swarmops.Database;
using Swarmops.Logic.Media;
using Swarmops.Logic.Swarm;
diff --git a/Logic/Communications/OutboundMailRecipients.cs b/Logic/Communications/OutboundMailRecipients.cs
index 5035eaf7..10b60704 100644
--- a/Logic/Communications/OutboundMailRecipients.cs
+++ b/Logic/Communications/OutboundMailRecipients.cs
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Communications;
namespace Swarmops.Logic.Communications
{
diff --git a/Logic/Communications/OutboundMails.cs b/Logic/Communications/OutboundMails.cs
index a1854ed5..ada80a7f 100644
--- a/Logic/Communications/OutboundMails.cs
+++ b/Logic/Communications/OutboundMails.cs
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Communications;
using Swarmops.Database;
namespace Swarmops.Logic.Communications
diff --git a/Logic/Communications/PaperLetter.cs b/Logic/Communications/PaperLetter.cs
index fb27ba13..8230a318 100644
--- a/Logic/Communications/PaperLetter.cs
+++ b/Logic/Communications/PaperLetter.cs
@@ -1,6 +1,7 @@
using System;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Communications;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Support;
diff --git a/Logic/Communications/PaperLetters.cs b/Logic/Communications/PaperLetters.cs
index 641713f7..cf1123aa 100644
--- a/Logic/Communications/PaperLetters.cs
+++ b/Logic/Communications/PaperLetters.cs
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Communications;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Swarm;
diff --git a/Logic/Communications/PhoneMessageReceiver.cs b/Logic/Communications/PhoneMessageReceiver.cs
index 03ba2d75..f6ff50f7 100644
--- a/Logic/Communications/PhoneMessageReceiver.cs
+++ b/Logic/Communications/PhoneMessageReceiver.cs
@@ -5,6 +5,7 @@ using System.Net.Mail;
using System.Text;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
using Swarmops.Logic.Support;
using Swarmops.Logic.Swarm;
diff --git a/Logic/Communications/PhoneMessageTransmitter.cs b/Logic/Communications/PhoneMessageTransmitter.cs
index 188ee945..7041da56 100644
--- a/Logic/Communications/PhoneMessageTransmitter.cs
+++ b/Logic/Communications/PhoneMessageTransmitter.cs
@@ -6,6 +6,7 @@ using System.Text;
using System.Text.RegularExpressions;
using System.Web;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Security;
using Swarmops.Database;
using Swarmops.Logic.Support;
diff --git a/Logic/Communications/Transmission/NotificationPayload.cs b/Logic/Communications/Transmission/NotificationPayload.cs
index 6e2bd568..2de0d1fd 100644
--- a/Logic/Communications/Transmission/NotificationPayload.cs
+++ b/Logic/Communications/Transmission/NotificationPayload.cs
@@ -152,7 +152,7 @@ namespace Swarmops.Logic.Communications.Transmission
}
[Serializable]
- public class NotificationStrings : SerializableDictionary
+ public class NotificationStrings : Basic.Types.Common.SerializableDictionary
{
// typeset
}
diff --git a/Logic/Communications/Transmission/ParticipantMailPayload.cs b/Logic/Communications/Transmission/ParticipantMailPayload.cs
index b498d987..9b37b283 100644
--- a/Logic/Communications/Transmission/ParticipantMailPayload.cs
+++ b/Logic/Communications/Transmission/ParticipantMailPayload.cs
@@ -5,6 +5,7 @@ using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using MySql.Data.MySqlClient.Properties;
+using Swarmops.Basic.Types.Common;
using Swarmops.Logic.Security;
using Swarmops.Logic.Swarm;
diff --git a/Logic/Communications/TypedMailTemplate.cs b/Logic/Communications/TypedMailTemplate.cs
index 2e5fd807..17f95eba 100644
--- a/Logic/Communications/TypedMailTemplate.cs
+++ b/Logic/Communications/TypedMailTemplate.cs
@@ -19,8 +19,8 @@ namespace Swarmops.Logic.Communications
{
public class TypedMailTemplate
{
- private SerializableDictionary placeholders =
- new SerializableDictionary();
+ private Basic.Types.Common.SerializableDictionary placeholders =
+ new Basic.Types.Common.SerializableDictionary();
private MailTemplate template;
private TemplateType templatetype = TemplateType.None;
@@ -254,7 +254,7 @@ namespace Swarmops.Logic.Communications
///
/// Dictionary of placeholders
///
- public SerializableDictionary Placeholders
+ public Basic.Types.Common.SerializableDictionary Placeholders
{
get { return this.placeholders; }
internal set { this.placeholders = value; }
@@ -473,10 +473,10 @@ namespace Swarmops.Logic.Communications
protected void DeserializePlaceHolders (string content)
{
XmlSerializer s = new XmlSerializer (Placeholders.GetType());
- SerializableDictionary tempPlaceHolders =
- new SerializableDictionary();
+ Basic.Types.Common.SerializableDictionary tempPlaceHolders =
+ new Basic.Types.Common.SerializableDictionary();
TextReader r = new StringReader (content);
- tempPlaceHolders = (SerializableDictionary) s.Deserialize (r);
+ tempPlaceHolders = (Basic.Types.Common.SerializableDictionary) s.Deserialize (r);
r.Close();
foreach (PlaceHolder ph in Placeholders.Values)
diff --git a/Logic/DataObjects/RolesDataObject.cs b/Logic/DataObjects/RolesDataObject.cs
index 1df62497..b3a17ed2 100644
--- a/Logic/DataObjects/RolesDataObject.cs
+++ b/Logic/DataObjects/RolesDataObject.cs
@@ -3,6 +3,7 @@ using System.ComponentModel;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
using Swarmops.Basic.Types.Security;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Logic.Security;
using Swarmops.Logic.Swarm;
diff --git a/Logic/Financial/Currencies.cs b/Logic/Financial/Currencies.cs
index 7b62c71f..21d69a80 100644
--- a/Logic/Financial/Currencies.cs
+++ b/Logic/Financial/Currencies.cs
@@ -1,4 +1,5 @@
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
using Swarmops.Database;
using Swarmops.Logic.Support;
diff --git a/Logic/Financial/Currency.cs b/Logic/Financial/Currency.cs
index 1033cff0..1012037a 100644
--- a/Logic/Financial/Currency.cs
+++ b/Logic/Financial/Currency.cs
@@ -1,6 +1,7 @@
using System;
using NBitcoin;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
using Swarmops.Database;
namespace Swarmops.Logic.Financial
diff --git a/Logic/Financial/ExpenseClaim.cs b/Logic/Financial/ExpenseClaim.cs
index 0646a506..ca6c8455 100644
--- a/Logic/Financial/ExpenseClaim.cs
+++ b/Logic/Financial/ExpenseClaim.cs
@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
using Swarmops.Database;
using Swarmops.Logic.Communications;
using Swarmops.Logic.Communications.Transmission;
diff --git a/Logic/Financial/ExpenseClaims.cs b/Logic/Financial/ExpenseClaims.cs
index eddc01dd..a417c32f 100644
--- a/Logic/Financial/ExpenseClaims.cs
+++ b/Logic/Financial/ExpenseClaims.cs
@@ -1,6 +1,7 @@
using System;
using System.Linq;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Support;
diff --git a/Logic/Financial/InboundInvoice.cs b/Logic/Financial/InboundInvoice.cs
index 757c1dab..8b6fb209 100644
--- a/Logic/Financial/InboundInvoice.cs
+++ b/Logic/Financial/InboundInvoice.cs
@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
using Swarmops.Database;
using Swarmops.Logic.Communications;
using Swarmops.Logic.Communications.Transmission;
diff --git a/Logic/Financial/InboundInvoices.cs b/Logic/Financial/InboundInvoices.cs
index 636457e5..69188f65 100644
--- a/Logic/Financial/InboundInvoices.cs
+++ b/Logic/Financial/InboundInvoices.cs
@@ -1,6 +1,7 @@
using System;
using System.Linq;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Support;
diff --git a/Logic/Financial/OutboundInvoice.cs b/Logic/Financial/OutboundInvoice.cs
index bbbe2f31..60f51596 100644
--- a/Logic/Financial/OutboundInvoice.cs
+++ b/Logic/Financial/OutboundInvoice.cs
@@ -1,6 +1,7 @@
using System;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
using Swarmops.Database;
using Swarmops.Logic.Security;
using Swarmops.Logic.Structure;
diff --git a/Logic/Financial/OutboundInvoiceItem.cs b/Logic/Financial/OutboundInvoiceItem.cs
index cbd4c1fa..a697d450 100644
--- a/Logic/Financial/OutboundInvoiceItem.cs
+++ b/Logic/Financial/OutboundInvoiceItem.cs
@@ -1,4 +1,5 @@
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
using Swarmops.Database;
namespace Swarmops.Logic.Financial
diff --git a/Logic/Financial/OutboundInvoiceItems.cs b/Logic/Financial/OutboundInvoiceItems.cs
index 6f473183..7a6c3fa1 100644
--- a/Logic/Financial/OutboundInvoiceItems.cs
+++ b/Logic/Financial/OutboundInvoiceItems.cs
@@ -1,4 +1,5 @@
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
using Swarmops.Database;
using Swarmops.Logic.Support;
diff --git a/Logic/Financial/OutboundInvoices.cs b/Logic/Financial/OutboundInvoices.cs
index e4eac112..28922148 100644
--- a/Logic/Financial/OutboundInvoices.cs
+++ b/Logic/Financial/OutboundInvoices.cs
@@ -1,4 +1,5 @@
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Support;
diff --git a/Logic/Financial/Payment.cs b/Logic/Financial/Payment.cs
index 6cef3ed3..0626072c 100644
--- a/Logic/Financial/Payment.cs
+++ b/Logic/Financial/Payment.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.IO;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Support;
diff --git a/Logic/Financial/PaymentGroup.cs b/Logic/Financial/PaymentGroup.cs
index 18bf68e8..ad7b08b6 100644
--- a/Logic/Financial/PaymentGroup.cs
+++ b/Logic/Financial/PaymentGroup.cs
@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Swarm;
diff --git a/Logic/Financial/PaymentGroups.cs b/Logic/Financial/PaymentGroups.cs
index 5a5b19c8..3c40223a 100644
--- a/Logic/Financial/PaymentGroups.cs
+++ b/Logic/Financial/PaymentGroups.cs
@@ -1,4 +1,5 @@
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Support;
diff --git a/Logic/Financial/PaymentInformation.cs b/Logic/Financial/PaymentInformation.cs
index abc61f40..83557b51 100644
--- a/Logic/Financial/PaymentInformation.cs
+++ b/Logic/Financial/PaymentInformation.cs
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
using Swarmops.Database;
namespace Swarmops.Logic.Financial
diff --git a/Logic/Financial/Payments.cs b/Logic/Financial/Payments.cs
index 4907a688..6d16410d 100644
--- a/Logic/Financial/Payments.cs
+++ b/Logic/Financial/Payments.cs
@@ -1,4 +1,5 @@
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
using Swarmops.Database;
using Swarmops.Logic.Support;
diff --git a/Logic/Financial/Payouts.cs b/Logic/Financial/Payouts.cs
index 6671a63b..fba816f1 100644
--- a/Logic/Financial/Payouts.cs
+++ b/Logic/Financial/Payouts.cs
@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using System.Globalization;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Support;
diff --git a/Logic/Financial/Payroll.cs b/Logic/Financial/Payroll.cs
index ed4847dd..6fc1f0be 100644
--- a/Logic/Financial/Payroll.cs
+++ b/Logic/Financial/Payroll.cs
@@ -1,6 +1,7 @@
using System;
using System.Globalization;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Support;
diff --git a/Logic/Financial/PayrollAdjustment.cs b/Logic/Financial/PayrollAdjustment.cs
index ae4c222a..1d4de923 100644
--- a/Logic/Financial/PayrollAdjustment.cs
+++ b/Logic/Financial/PayrollAdjustment.cs
@@ -1,5 +1,6 @@
using System;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
namespace Swarmops.Logic.Financial
diff --git a/Logic/Financial/PayrollAdjustments.cs b/Logic/Financial/PayrollAdjustments.cs
index 455f6a5a..3f4dca94 100644
--- a/Logic/Financial/PayrollAdjustments.cs
+++ b/Logic/Financial/PayrollAdjustments.cs
@@ -1,4 +1,5 @@
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
using Swarmops.Logic.Support;
diff --git a/Logic/Financial/PayrollItem.cs b/Logic/Financial/PayrollItem.cs
index 62f94553..31e8c84a 100644
--- a/Logic/Financial/PayrollItem.cs
+++ b/Logic/Financial/PayrollItem.cs
@@ -1,4 +1,5 @@
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Swarm;
diff --git a/Logic/Financial/Refund.cs b/Logic/Financial/Refund.cs
index 372a3b36..b14b5038 100644
--- a/Logic/Financial/Refund.cs
+++ b/Logic/Financial/Refund.cs
@@ -1,6 +1,7 @@
using System;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Support;
diff --git a/Logic/Financial/Salaries.cs b/Logic/Financial/Salaries.cs
index 4e3a3587..ef91c1c8 100644
--- a/Logic/Financial/Salaries.cs
+++ b/Logic/Financial/Salaries.cs
@@ -1,6 +1,7 @@
using System;
using System.Linq;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Support;
diff --git a/Logic/Financial/Salary.cs b/Logic/Financial/Salary.cs
index 7f9ef757..17e3b24a 100644
--- a/Logic/Financial/Salary.cs
+++ b/Logic/Financial/Salary.cs
@@ -2,6 +2,8 @@ using System;
using System.Globalization;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
using Swarmops.Logic.Swarm;
diff --git a/Logic/Governance/Ballot.cs b/Logic/Governance/Ballot.cs
index 5da51e10..ca7a5a1b 100644
--- a/Logic/Governance/Ballot.cs
+++ b/Logic/Governance/Ballot.cs
@@ -1,4 +1,5 @@
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Governance;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Swarm;
diff --git a/Logic/Governance/Ballots.cs b/Logic/Governance/Ballots.cs
index a7124288..154b336c 100644
--- a/Logic/Governance/Ballots.cs
+++ b/Logic/Governance/Ballots.cs
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Governance;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Support;
diff --git a/Logic/Governance/Election.cs b/Logic/Governance/Election.cs
index 686e74a5..c29304b1 100644
--- a/Logic/Governance/Election.cs
+++ b/Logic/Governance/Election.cs
@@ -1,5 +1,6 @@
using System;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Governance;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Swarm;
diff --git a/Logic/Governance/MeetingElection.cs b/Logic/Governance/MeetingElection.cs
index 759af7a6..34fcc9dc 100644
--- a/Logic/Governance/MeetingElection.cs
+++ b/Logic/Governance/MeetingElection.cs
@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Governance;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Swarm;
diff --git a/Logic/Governance/MeetingElectionCandidate.cs b/Logic/Governance/MeetingElectionCandidate.cs
index 7e245901..cc4599a5 100644
--- a/Logic/Governance/MeetingElectionCandidate.cs
+++ b/Logic/Governance/MeetingElectionCandidate.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Governance;
using Swarmops.Database;
using Swarmops.Logic.Swarm;
diff --git a/Logic/Governance/MeetingElectionCandidates.cs b/Logic/Governance/MeetingElectionCandidates.cs
index b5c485f1..a921670e 100644
--- a/Logic/Governance/MeetingElectionCandidates.cs
+++ b/Logic/Governance/MeetingElectionCandidates.cs
@@ -1,4 +1,5 @@
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Governance;
using Swarmops.Database;
using Swarmops.Logic.Support;
diff --git a/Logic/Governance/MeetingElectionVote.cs b/Logic/Governance/MeetingElectionVote.cs
index 6c5c3990..dd8e3dad 100644
--- a/Logic/Governance/MeetingElectionVote.cs
+++ b/Logic/Governance/MeetingElectionVote.cs
@@ -1,4 +1,5 @@
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Governance;
using Swarmops.Database;
using Swarmops.Logic.Security;
using Swarmops.Logic.Structure;
diff --git a/Logic/Governance/MeetingElectionVoter.cs b/Logic/Governance/MeetingElectionVoter.cs
index ebf2004e..8f2dc76b 100644
--- a/Logic/Governance/MeetingElectionVoter.cs
+++ b/Logic/Governance/MeetingElectionVoter.cs
@@ -1,4 +1,5 @@
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Governance;
using Swarmops.Logic.Swarm;
namespace Swarmops.Logic.Governance
diff --git a/Logic/Governance/MeetingElectionVoters.cs b/Logic/Governance/MeetingElectionVoters.cs
index de841417..fb973846 100644
--- a/Logic/Governance/MeetingElectionVoters.cs
+++ b/Logic/Governance/MeetingElectionVoters.cs
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Governance;
using Swarmops.Database;
namespace Swarmops.Logic.Governance
diff --git a/Logic/Governance/MeetingElectionVotes.cs b/Logic/Governance/MeetingElectionVotes.cs
index 5675bee5..2bb05221 100644
--- a/Logic/Governance/MeetingElectionVotes.cs
+++ b/Logic/Governance/MeetingElectionVotes.cs
@@ -1,4 +1,5 @@
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Governance;
using Swarmops.Database;
using Swarmops.Logic.Support;
diff --git a/Logic/Governance/MeetingElections.cs b/Logic/Governance/MeetingElections.cs
index bbbf4709..c8de59cd 100644
--- a/Logic/Governance/MeetingElections.cs
+++ b/Logic/Governance/MeetingElections.cs
@@ -1,4 +1,5 @@
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Governance;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Support;
diff --git a/Logic/Security/Authentication.cs b/Logic/Security/Authentication.cs
index a36316f0..b9501b75 100644
--- a/Logic/Security/Authentication.cs
+++ b/Logic/Security/Authentication.cs
@@ -2,6 +2,7 @@ using System;
using System.Globalization;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
using Swarmops.Logic.Support;
using Swarmops.Logic.Swarm;
diff --git a/Logic/Security/Authority.cs b/Logic/Security/Authority.cs
index b06e5bcc..d0e6e0a4 100644
--- a/Logic/Security/Authority.cs
+++ b/Logic/Security/Authority.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
using Swarmops.Basic.Types.Security;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Swarm;
diff --git a/Logic/Security/Authorization.cs b/Logic/Security/Authorization.cs
index 4bf1dc6c..324bd483 100644
--- a/Logic/Security/Authorization.cs
+++ b/Logic/Security/Authorization.cs
@@ -4,6 +4,7 @@ using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
using Swarmops.Basic.Types.Security;
using Swarmops.Basic.Types.Structure;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
using Swarmops.Logic.Cache;
using Swarmops.Logic.Structure;
diff --git a/Logic/Structure/Organization.cs b/Logic/Structure/Organization.cs
index ba847cbf..3a0b4f97 100644
--- a/Logic/Structure/Organization.cs
+++ b/Logic/Structure/Organization.cs
@@ -7,6 +7,7 @@ using System.Text.RegularExpressions;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
using Swarmops.Basic.Types.Structure;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
using Swarmops.Logic.Cache;
using Swarmops.Logic.Communications;
diff --git a/Logic/Structure/Organizations.cs b/Logic/Structure/Organizations.cs
index 9b1cb484..3f858bb1 100644
--- a/Logic/Structure/Organizations.cs
+++ b/Logic/Structure/Organizations.cs
@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using Swarmops.Basic.Types;
using Swarmops.Basic.Types.Structure;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
using Swarmops.Logic.Cache;
using Swarmops.Logic.Support;
diff --git a/Logic/Structure/UptakeGeography.cs b/Logic/Structure/UptakeGeography.cs
index 5c4266c9..cd706a05 100644
--- a/Logic/Structure/UptakeGeography.cs
+++ b/Logic/Structure/UptakeGeography.cs
@@ -1,4 +1,5 @@
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Structure;
namespace Swarmops.Logic.Structure
{
diff --git a/Logic/Support/Document.cs b/Logic/Support/Document.cs
index c4aea074..1a455a01 100644
--- a/Logic/Support/Document.cs
+++ b/Logic/Support/Document.cs
@@ -5,6 +5,7 @@ using System.Text;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Interfaces;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Common;
using Swarmops.Database;
using Swarmops.Logic.Communications;
using Swarmops.Logic.Financial;
diff --git a/Logic/Support/Documents.cs b/Logic/Support/Documents.cs
index 654496fd..069d8d8e 100644
--- a/Logic/Support/Documents.cs
+++ b/Logic/Support/Documents.cs
@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using Swarmops.Basic.Interfaces;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Common;
using Swarmops.Database;
using Swarmops.Logic.Swarm;
diff --git a/Logic/Support/ObjectOptionalData.cs b/Logic/Support/ObjectOptionalData.cs
index 71aefa5c..87fdee1e 100644
--- a/Logic/Support/ObjectOptionalData.cs
+++ b/Logic/Support/ObjectOptionalData.cs
@@ -2,6 +2,7 @@ using System;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Interfaces;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.System;
using Swarmops.Database;
namespace Swarmops.Logic.Support
diff --git a/Logic/Support/PWEvents.cs b/Logic/Support/PWEvents.cs
index ee9d4b15..f8572c38 100644
--- a/Logic/Support/PWEvents.cs
+++ b/Logic/Support/PWEvents.cs
@@ -1,6 +1,7 @@
using System.Collections.Generic;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.System;
using Swarmops.Database;
namespace Swarmops.Logic.Support
diff --git a/Logic/Support/PWLog.cs b/Logic/Support/PWLog.cs
index 181b878c..c2237394 100644
--- a/Logic/Support/PWLog.cs
+++ b/Logic/Support/PWLog.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Net;
using System.Web;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.System;
using Swarmops.Database;
using Swarmops.Logic.Swarm;
diff --git a/Logic/Support/SingularFactory.cs b/Logic/Support/SingularFactory.cs
index 1b70bb6e..22292de4 100644
--- a/Logic/Support/SingularFactory.cs
+++ b/Logic/Support/SingularFactory.cs
@@ -7,6 +7,7 @@ using Swarmops.Basic.Types;
using Swarmops.Basic.Types.Communications;
using Swarmops.Basic.Types.Financial;
using Swarmops.Basic.Types.Governance;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Logic.Communications;
using Swarmops.Logic.Financial;
using Swarmops.Logic.Governance;
diff --git a/Logic/Support/SwarmopsLogEntry.cs b/Logic/Support/SwarmopsLogEntry.cs
index 48b4168e..ef44df44 100644
--- a/Logic/Support/SwarmopsLogEntry.cs
+++ b/Logic/Support/SwarmopsLogEntry.cs
@@ -1,5 +1,6 @@
using Swarmops.Basic.Interfaces;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.System;
using Swarmops.Database;
using Swarmops.Logic.Swarm;
diff --git a/Logic/Swarm/ChurnData.cs b/Logic/Swarm/ChurnData.cs
index 47cbe2bc..e831d056 100644
--- a/Logic/Swarm/ChurnData.cs
+++ b/Logic/Swarm/ChurnData.cs
@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
using Swarmops.Logic.Structure;
diff --git a/Logic/Swarm/ChurnDataPoint.cs b/Logic/Swarm/ChurnDataPoint.cs
index eabf56de..7a5b390c 100644
--- a/Logic/Swarm/ChurnDataPoint.cs
+++ b/Logic/Swarm/ChurnDataPoint.cs
@@ -1,4 +1,5 @@
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
namespace Swarmops.Logic.Swarm
{
diff --git a/Logic/Swarm/ExternalActivities.cs b/Logic/Swarm/ExternalActivities.cs
index 5844fc6a..cfd1297c 100644
--- a/Logic/Swarm/ExternalActivities.cs
+++ b/Logic/Swarm/ExternalActivities.cs
@@ -1,5 +1,6 @@
using System;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
using Swarmops.Logic.Structure;
using Swarmops.Logic.Support;
diff --git a/Logic/Swarm/ExternalActivity.cs b/Logic/Swarm/ExternalActivity.cs
index fbb4414d..5d3a3ac9 100644
--- a/Logic/Swarm/ExternalActivity.cs
+++ b/Logic/Swarm/ExternalActivity.cs
@@ -1,6 +1,7 @@
using System;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
using Swarmops.Logic.Structure;
diff --git a/Logic/Swarm/ExternalIdentity.cs b/Logic/Swarm/ExternalIdentity.cs
index f4da0d2f..9de6fae6 100644
--- a/Logic/Swarm/ExternalIdentity.cs
+++ b/Logic/Swarm/ExternalIdentity.cs
@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Security;
using Swarmops.Database;
namespace Swarmops.Logic.Swarm
diff --git a/Logic/Swarm/Membership.cs b/Logic/Swarm/Membership.cs
index 7a203b2e..65f12778 100644
--- a/Logic/Swarm/Membership.cs
+++ b/Logic/Swarm/Membership.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Web;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
using Swarmops.Logic.Security;
using Swarmops.Logic.Structure;
diff --git a/Logic/Swarm/MembershipEvents.cs b/Logic/Swarm/MembershipEvents.cs
index 6e9a998d..4a1c30a9 100644
--- a/Logic/Swarm/MembershipEvents.cs
+++ b/Logic/Swarm/MembershipEvents.cs
@@ -5,6 +5,7 @@ using System.Text;
using System.Xml.Serialization;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
namespace Swarmops.Logic.Swarm
diff --git a/Logic/Swarm/Memberships.cs b/Logic/Swarm/Memberships.cs
index 3e59ffbe..2494e4cb 100644
--- a/Logic/Swarm/Memberships.cs
+++ b/Logic/Swarm/Memberships.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
using Swarmops.Logic.Security;
using Swarmops.Logic.Structure;
diff --git a/Logic/Swarm/PaymentCode.cs b/Logic/Swarm/PaymentCode.cs
index bb7ad12f..462ca924 100644
--- a/Logic/Swarm/PaymentCode.cs
+++ b/Logic/Swarm/PaymentCode.cs
@@ -1,5 +1,6 @@
using System;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
using Swarmops.Database;
using Swarmops.Logic.Security;
diff --git a/Logic/Swarm/People.cs b/Logic/Swarm/People.cs
index 4d9689f4..970166f6 100644
--- a/Logic/Swarm/People.cs
+++ b/Logic/Swarm/People.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
using Swarmops.Basic.Types.Structure;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
using Swarmops.Logic.Security;
using Swarmops.Logic.Structure;
diff --git a/Logic/Swarm/Person.cs b/Logic/Swarm/Person.cs
index c132de99..d187d21a 100644
--- a/Logic/Swarm/Person.cs
+++ b/Logic/Swarm/Person.cs
@@ -9,6 +9,7 @@ using Swarmops.Basic.Enums;
using Swarmops.Basic.Interfaces;
using Swarmops.Basic.Types;
using Swarmops.Basic.Types.Structure;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
using Swarmops.Database.Attributes;
using Swarmops.Logic.Communications;
diff --git a/Logic/Swarm/PersonRole.cs b/Logic/Swarm/PersonRole.cs
index 2ba50593..43f43ce3 100644
--- a/Logic/Swarm/PersonRole.cs
+++ b/Logic/Swarm/PersonRole.cs
@@ -1,5 +1,6 @@
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
using Swarmops.Logic.Structure;
diff --git a/Logic/Swarm/Roles.cs b/Logic/Swarm/Roles.cs
index 14584f07..df2d98d0 100644
--- a/Logic/Swarm/Roles.cs
+++ b/Logic/Swarm/Roles.cs
@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
using Swarmops.Logic.Security;
using Swarmops.Logic.Structure;
diff --git a/Logic/Swarm/Volunteer.cs b/Logic/Swarm/Volunteer.cs
index 40ea12b4..6408c834 100644
--- a/Logic/Swarm/Volunteer.cs
+++ b/Logic/Swarm/Volunteer.cs
@@ -1,6 +1,7 @@
using System;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
using Swarmops.Logic.Structure;
diff --git a/Logic/Swarm/VolunteerRole.cs b/Logic/Swarm/VolunteerRole.cs
index 4b1ff2fa..7d8958c6 100644
--- a/Logic/Swarm/VolunteerRole.cs
+++ b/Logic/Swarm/VolunteerRole.cs
@@ -1,4 +1,5 @@
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
using Swarmops.Logic.Structure;
diff --git a/Logic/Swarm/VolunteerRoles.cs b/Logic/Swarm/VolunteerRoles.cs
index 1588a113..0195f649 100644
--- a/Logic/Swarm/VolunteerRoles.cs
+++ b/Logic/Swarm/VolunteerRoles.cs
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
namespace Swarmops.Logic.Swarm
{
diff --git a/Logic/Swarm/Volunteers.cs b/Logic/Swarm/Volunteers.cs
index b9765ead..3a1644d5 100644
--- a/Logic/Swarm/Volunteers.cs
+++ b/Logic/Swarm/Volunteers.cs
@@ -4,6 +4,7 @@ using System.Data;
using System.IO;
using System.Xml.Serialization;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
namespace Swarmops.Logic.Swarm
diff --git a/Site5/Pages/v5/Ledgers/UploadBankFiles.aspx.cs b/Site5/Pages/v5/Ledgers/UploadBankFiles.aspx.cs
index b3a25b16..2c5dc3eb 100644
--- a/Site5/Pages/v5/Ledgers/UploadBankFiles.aspx.cs
+++ b/Site5/Pages/v5/Ledgers/UploadBankFiles.aspx.cs
@@ -9,6 +9,7 @@ using System.Web.UI.WebControls;
using Resources;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Financial;
using Swarmops.Logic.Cache;
using Swarmops.Logic.Financial;
using Swarmops.Logic.Security;
diff --git a/Site5/Security/Login-Old.aspx.cs b/Site5/Security/Login-Old.aspx.cs
index 75949a95..a7941ef4 100644
--- a/Site5/Security/Login-Old.aspx.cs
+++ b/Site5/Security/Login-Old.aspx.cs
@@ -5,6 +5,7 @@ using System.Web;
using System.Web.Security;
using System.Web.UI;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Database;
using Swarmops.Logic.Security;
using Swarmops.Logic.Support;
diff --git a/Utility/BotCode/RosterHousekeeping.cs b/Utility/BotCode/RosterHousekeeping.cs
index 36b7263a..12e6b584 100644
--- a/Utility/BotCode/RosterHousekeeping.cs
+++ b/Utility/BotCode/RosterHousekeeping.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Text;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Swarm;
using Swarmops.Logic.Communications;
using Swarmops.Logic.Security;
using Swarmops.Logic.Structure;