Code cleanup: spacing
This commit is contained in:
+3
-3
@@ -11,12 +11,12 @@ namespace Swarmops.Basic
|
||||
{
|
||||
string portString = ConfigurationManager.AppSettings["SmtpPort"];
|
||||
|
||||
if (String.IsNullOrEmpty(portString))
|
||||
if (String.IsNullOrEmpty (portString))
|
||||
{
|
||||
return 587;
|
||||
}
|
||||
|
||||
return Int32.Parse(portString);
|
||||
return Int32.Parse (portString);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace Swarmops.Basic
|
||||
{
|
||||
string smtpHost = ConfigurationManager.AppSettings["SmtpHost"];
|
||||
|
||||
if (String.IsNullOrEmpty(smtpHost))
|
||||
if (String.IsNullOrEmpty (smtpHost))
|
||||
{
|
||||
return "piratesmtp";
|
||||
}
|
||||
|
||||
@@ -5,30 +5,30 @@ namespace Swarmops.Basic.Diagnostics
|
||||
{
|
||||
public class Logging
|
||||
{
|
||||
public static void LogError(LogSource source, string message)
|
||||
public static void LogError (LogSource source, string message)
|
||||
{
|
||||
EventLog eventLog = new EventLog();
|
||||
eventLog.Source = source.ToString();
|
||||
eventLog.WriteEntry(message, EventLogEntryType.Error);
|
||||
eventLog.WriteEntry (message, EventLogEntryType.Error);
|
||||
}
|
||||
|
||||
public static void LogException(LogSource source, Exception exception)
|
||||
public static void LogException (LogSource source, Exception exception)
|
||||
{
|
||||
LogError(source, exception.ToString());
|
||||
LogError (source, exception.ToString());
|
||||
}
|
||||
|
||||
public static void LogWarning(LogSource source, string message)
|
||||
public static void LogWarning (LogSource source, string message)
|
||||
{
|
||||
EventLog eventLog = new EventLog();
|
||||
eventLog.Source = source.ToString();
|
||||
eventLog.WriteEntry(message, EventLogEntryType.Warning);
|
||||
eventLog.WriteEntry (message, EventLogEntryType.Warning);
|
||||
}
|
||||
|
||||
public static void LogInformation(LogSource source, string message)
|
||||
public static void LogInformation (LogSource source, string message)
|
||||
{
|
||||
EventLog eventLog = new EventLog();
|
||||
eventLog.Source = source.ToString();
|
||||
eventLog.WriteEntry(message, EventLogEntryType.Information);
|
||||
eventLog.WriteEntry (message, EventLogEntryType.Information);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -21,15 +21,15 @@ namespace Swarmops.Basic.Enums
|
||||
public static Dictionary<MailAuthorType, AddressItem> initList()
|
||||
{
|
||||
Dictionary<MailAuthorType, AddressItem> retval = new Dictionary<MailAuthorType, AddressItem>();
|
||||
retval.Add(MailAuthorType.MemberService,
|
||||
new AddressItem("medlemsservice@piratpartiet.se", "Piratpartiet Medlemsservice"));
|
||||
retval.Add(MailAuthorType.PirateWeb, new AddressItem("noreply@pirateweb.net", "PirateWeb"));
|
||||
retval.Add(MailAuthorType.ActivistService,
|
||||
new AddressItem("aktivistservice@piratpartiet.se", "Piratpartiet Aktivistservice"));
|
||||
retval.Add(MailAuthorType.Service, new AddressItem("service@piratpartiet.se", "Piratpartiet Service"));
|
||||
retval.Add(MailAuthorType.PressService, new AddressItem("press@piratpartiet.se", "Piratpartiet Press"));
|
||||
retval.Add(MailAuthorType.Accounting,
|
||||
new AddressItem("accounting@piratpartiet.se", "Piratpartiet Accounting"));
|
||||
retval.Add (MailAuthorType.MemberService,
|
||||
new AddressItem ("medlemsservice@piratpartiet.se", "Piratpartiet Medlemsservice"));
|
||||
retval.Add (MailAuthorType.PirateWeb, new AddressItem ("noreply@pirateweb.net", "PirateWeb"));
|
||||
retval.Add (MailAuthorType.ActivistService,
|
||||
new AddressItem ("aktivistservice@piratpartiet.se", "Piratpartiet Aktivistservice"));
|
||||
retval.Add (MailAuthorType.Service, new AddressItem ("service@piratpartiet.se", "Piratpartiet Service"));
|
||||
retval.Add (MailAuthorType.PressService, new AddressItem ("press@piratpartiet.se", "Piratpartiet Press"));
|
||||
retval.Add (MailAuthorType.Accounting,
|
||||
new AddressItem ("accounting@piratpartiet.se", "Piratpartiet Accounting"));
|
||||
return retval;
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace Swarmops.Basic.Enums
|
||||
private readonly string email;
|
||||
private readonly string name;
|
||||
|
||||
public AddressItem(string email, string name)
|
||||
public AddressItem (string email, string name)
|
||||
{
|
||||
this.email = email;
|
||||
this.name = name;
|
||||
|
||||
@@ -215,25 +215,25 @@ namespace Swarmops.Basic.Enums
|
||||
private static RoleType[] CreateAllRoleTypes()
|
||||
{
|
||||
List<RoleType> retList = new List<RoleType>();
|
||||
retList.AddRange(AllOrganizationalRoleTypes);
|
||||
retList.AddRange(AllSystemRoleTypes);
|
||||
retList.AddRange(AllLocalRoleTypes);
|
||||
foreach (RoleType rt in Enum.GetValues(typeof (RoleType)))
|
||||
retList.AddRange (AllOrganizationalRoleTypes);
|
||||
retList.AddRange (AllSystemRoleTypes);
|
||||
retList.AddRange (AllLocalRoleTypes);
|
||||
foreach (RoleType rt in Enum.GetValues (typeof (RoleType)))
|
||||
{
|
||||
if (!retList.Contains(rt))
|
||||
retList.Add(rt);
|
||||
if (!retList.Contains (rt))
|
||||
retList.Add (rt);
|
||||
}
|
||||
|
||||
return retList.ToArray();
|
||||
}
|
||||
|
||||
public static RoleClass ClassOfRole(RoleType r)
|
||||
public static RoleClass ClassOfRole (RoleType r)
|
||||
{
|
||||
if (Array.IndexOf(AllLocalRoleTypes, r) > -1)
|
||||
if (Array.IndexOf (AllLocalRoleTypes, r) > -1)
|
||||
return RoleClass.Local;
|
||||
if (Array.IndexOf(AllOrganizationalRoleTypes, r) > -1)
|
||||
if (Array.IndexOf (AllOrganizationalRoleTypes, r) > -1)
|
||||
return RoleClass.Organization;
|
||||
if (Array.IndexOf(AllSystemRoleTypes, r) > -1)
|
||||
if (Array.IndexOf (AllSystemRoleTypes, r) > -1)
|
||||
return RoleClass.System;
|
||||
return RoleClass.Undefined;
|
||||
}
|
||||
|
||||
@@ -5,11 +5,11 @@ namespace Swarmops.Basic.Interfaces
|
||||
{
|
||||
public interface IHandleProvider
|
||||
{
|
||||
string GetPersonHandle(int personId);
|
||||
void SetPersonHandle(int personId, string newHandle);
|
||||
HandleErrorType CanSetHandle(string newHandle);
|
||||
string GetPersonHandle (int personId);
|
||||
void SetPersonHandle (int personId, string newHandle);
|
||||
HandleErrorType CanSetHandle (string newHandle);
|
||||
|
||||
int GetPersonByHandle(string handle);
|
||||
int GetPersonByHandle (string handle);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace Swarmops.Basic.Exceptions
|
||||
private readonly string attemptedHandle;
|
||||
private readonly HandleErrorType errorType;
|
||||
|
||||
public HandleException(string attemptedHandle, HandleErrorType errorType)
|
||||
public HandleException (string attemptedHandle, HandleErrorType errorType)
|
||||
{
|
||||
this.attemptedHandle = attemptedHandle;
|
||||
this.errorType = errorType;
|
||||
|
||||
@@ -6,14 +6,14 @@ using System.Reflection;
|
||||
// associated with an assembly.
|
||||
//
|
||||
|
||||
[assembly: AssemblyTitle("PirateWeb Type Library")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("")]
|
||||
[assembly: AssemblyCopyright("")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
[assembly: AssemblyTitle ("PirateWeb Type Library")]
|
||||
[assembly: AssemblyDescription ("")]
|
||||
[assembly: AssemblyConfiguration ("")]
|
||||
[assembly: AssemblyCompany ("")]
|
||||
[assembly: AssemblyProduct ("")]
|
||||
[assembly: AssemblyCopyright ("")]
|
||||
[assembly: AssemblyTrademark ("")]
|
||||
[assembly: AssemblyCulture ("")]
|
||||
|
||||
//
|
||||
// Version information for an assembly consists of the following four values:
|
||||
@@ -26,7 +26,7 @@ using System.Reflection;
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
|
||||
[assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion ("1.0.*")]
|
||||
|
||||
//
|
||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||
@@ -54,6 +54,6 @@ using System.Reflection;
|
||||
// documentation for more information on this.
|
||||
//
|
||||
|
||||
[assembly: AssemblyDelaySign(false)]
|
||||
[assembly: AssemblyKeyFile("")]
|
||||
[assembly: AssemblyKeyName("")]
|
||||
[assembly: AssemblyDelaySign (false)]
|
||||
[assembly: AssemblyKeyFile ("")]
|
||||
[assembly: AssemblyKeyName ("")]
|
||||
@@ -6,7 +6,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
private readonly int validationRunId;
|
||||
|
||||
public BasicAddressValidationRun(int validationRunId)
|
||||
public BasicAddressValidationRun (int validationRunId)
|
||||
{
|
||||
this.validationRunId = validationRunId;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicBallot : IHasIdentity
|
||||
{
|
||||
public BasicBallot(int ballotId, int electionId, int organizationId, int geographyId, string name, int count,
|
||||
public BasicBallot (int ballotId, int electionId, int organizationId, int geographyId, string name, int count,
|
||||
string deliveryAddress)
|
||||
{
|
||||
BallotId = ballotId;
|
||||
@@ -16,8 +16,8 @@ namespace Swarmops.Basic.Types
|
||||
DeliveryAddress = deliveryAddress;
|
||||
}
|
||||
|
||||
public BasicBallot(BasicBallot original)
|
||||
: this(
|
||||
public BasicBallot (BasicBallot original)
|
||||
: this (
|
||||
original.BallotId, original.ElectionId, original.OrganizationId, original.GeographyId, original.Name,
|
||||
original.Count, original.DeliveryAddress)
|
||||
{
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace Swarmops.Basic.Types
|
||||
public readonly int OrganizationId;
|
||||
public readonly int PersonId;
|
||||
|
||||
public BasicChurnDataPoint(ChurnDataType dataType, DateTime decisionDateTime, DateTime expiryDate,
|
||||
public BasicChurnDataPoint (ChurnDataType dataType, DateTime decisionDateTime, DateTime expiryDate,
|
||||
int personId, int organizationId)
|
||||
{
|
||||
this.DataType = dataType;
|
||||
@@ -39,8 +39,8 @@ namespace Swarmops.Basic.Types
|
||||
this.OrganizationId = organizationId;
|
||||
}
|
||||
|
||||
public BasicChurnDataPoint(BasicChurnDataPoint original) :
|
||||
this(
|
||||
public BasicChurnDataPoint (BasicChurnDataPoint original) :
|
||||
this (
|
||||
original.DataType, original.DecisionDateTime, original.ExpiryDate, original.PersonId,
|
||||
original.OrganizationId)
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Swarmops.Basic.Types
|
||||
[Serializable]
|
||||
public class BasicCity : IHasIdentity
|
||||
{
|
||||
public BasicCity(int cityId, string name, int countryId, int geographyId)
|
||||
public BasicCity (int cityId, string name, int countryId, int geographyId)
|
||||
{
|
||||
CityId = cityId;
|
||||
Name = name;
|
||||
@@ -14,12 +14,12 @@ namespace Swarmops.Basic.Types
|
||||
GeographyId = geographyId;
|
||||
}
|
||||
|
||||
public BasicCity(BasicCity original)
|
||||
: this(original.CityId, original.Name, original.CountryId, original.GeographyId)
|
||||
public BasicCity (BasicCity original)
|
||||
: this (original.CityId, original.Name, original.CountryId, original.GeographyId)
|
||||
{
|
||||
}
|
||||
|
||||
[Obsolete("Do not call this ctor directly. It exists to enable serialization.", true)]
|
||||
[Obsolete ("Do not call this ctor directly. It exists to enable serialization.", true)]
|
||||
public BasicCity()
|
||||
{
|
||||
// this ctor should never be called from code
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicCommunicationTurnaround : IHasIdentity
|
||||
{
|
||||
public BasicCommunicationTurnaround(int organizationId, int communicationTypeId, int communicationId,
|
||||
public BasicCommunicationTurnaround (int organizationId, int communicationTypeId, int communicationId,
|
||||
DateTime dateTimeOpened, DateTime dateTimeFirstResponse, int personIdFirstResponse, DateTime dateTimeClosed,
|
||||
int personIdClosed, bool open, bool responded)
|
||||
{
|
||||
@@ -21,8 +21,8 @@ namespace Swarmops.Basic.Types
|
||||
Responded = responded;
|
||||
}
|
||||
|
||||
public BasicCommunicationTurnaround(BasicCommunicationTurnaround original) :
|
||||
this(
|
||||
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)
|
||||
|
||||
@@ -6,16 +6,16 @@ namespace Swarmops.Basic.Types
|
||||
[Serializable]
|
||||
public class BasicCountry : IHasIdentity
|
||||
{
|
||||
public BasicCountry(int countryId, string name, string code)
|
||||
public BasicCountry (int countryId, string name, string code)
|
||||
{
|
||||
CountryId = countryId;
|
||||
Name = name;
|
||||
Code = code;
|
||||
}
|
||||
|
||||
public BasicCountry(int countryId, string name, string code, string defaultCulture, string currencyCode,
|
||||
public BasicCountry (int countryId, string name, string code, string defaultCulture, string currencyCode,
|
||||
int geographyId, int postalCodeLength)
|
||||
: this(countryId, name, code)
|
||||
: this (countryId, name, code)
|
||||
{
|
||||
Culture = defaultCulture;
|
||||
CurrencyCode = currencyCode;
|
||||
@@ -23,14 +23,14 @@ namespace Swarmops.Basic.Types
|
||||
PostalCodeLength = postalCodeLength;
|
||||
}
|
||||
|
||||
public BasicCountry(BasicCountry original)
|
||||
: this(
|
||||
public BasicCountry (BasicCountry original)
|
||||
: this (
|
||||
original.CountryId, original.Name, original.Code, original.Culture, original.CurrencyCode,
|
||||
original.GeographyId, original.PostalCodeLength)
|
||||
{
|
||||
}
|
||||
|
||||
[Obsolete("Do not call this function directly. It exists to enable serialization.", true)]
|
||||
[Obsolete ("Do not call this function directly. It exists to enable serialization.", true)]
|
||||
public BasicCountry()
|
||||
{
|
||||
// this does not initialize the Basic Country, but exists to enable serialization.
|
||||
@@ -53,7 +53,7 @@ namespace Swarmops.Basic.Types
|
||||
return 1;
|
||||
}
|
||||
|
||||
throw new NotImplementedException("BasicCountry.CurrencyId");
|
||||
throw new NotImplementedException ("BasicCountry.CurrencyId");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicCurrency : IHasIdentity
|
||||
{
|
||||
public BasicCurrency(int currencyId, string code, string name, string sign)
|
||||
public BasicCurrency (int currencyId, string code, string name, string sign)
|
||||
{
|
||||
CurrencyId = currencyId;
|
||||
Code = code;
|
||||
@@ -12,8 +12,8 @@ namespace Swarmops.Basic.Types
|
||||
Sign = sign;
|
||||
}
|
||||
|
||||
public BasicCurrency(BasicCurrency original)
|
||||
: this(original.CurrencyId, original.Code, original.Name, original.Sign)
|
||||
public BasicCurrency (BasicCurrency original)
|
||||
: this (original.CurrencyId, original.Code, original.Name, original.Sign)
|
||||
{
|
||||
// empty copy ctor
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace Swarmops.Basic.Types
|
||||
|
||||
#endregion
|
||||
|
||||
public BasicDocument(int documentId, string serverFileName, string clientFileName, string description,
|
||||
public BasicDocument (int documentId, string serverFileName, string clientFileName, string description,
|
||||
DocumentType documentType, int foreignId, Int64 fileSize, int uploadedByPersonId, DateTime uploadedDateTime)
|
||||
{
|
||||
this.documentId = documentId;
|
||||
@@ -39,8 +39,8 @@ namespace Swarmops.Basic.Types
|
||||
this.uploadedDateTime = uploadedDateTime;
|
||||
}
|
||||
|
||||
public BasicDocument(BasicDocument original) :
|
||||
this(original.documentId, original.serverFileName, original.clientFileName, original.description,
|
||||
public BasicDocument (BasicDocument original) :
|
||||
this (original.documentId, original.serverFileName, original.clientFileName, original.description,
|
||||
original.documentType, original.foreignId, original.fileSize, original.uploadedByPersonId,
|
||||
original.uploadedDateTime)
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicElection : IHasIdentity
|
||||
{
|
||||
public BasicElection(int electionId, string name, int geographyId, DateTime date)
|
||||
public BasicElection (int electionId, string name, int geographyId, DateTime date)
|
||||
{
|
||||
ElectionId = electionId;
|
||||
Name = name;
|
||||
@@ -13,8 +13,8 @@ namespace Swarmops.Basic.Types
|
||||
Date = date;
|
||||
}
|
||||
|
||||
public BasicElection(BasicElection original) :
|
||||
this(original.ElectionId, original.Name, original.GeographyId, original.Date)
|
||||
public BasicElection (BasicElection original) :
|
||||
this (original.ElectionId, original.Name, original.GeographyId, original.Date)
|
||||
{
|
||||
// empty copy ctor
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicExceptionLog
|
||||
{
|
||||
public BasicExceptionLog(int ExceptionId, DateTime ExceptionDateTime, string Source, string ExceptionText)
|
||||
public BasicExceptionLog (int ExceptionId, DateTime ExceptionDateTime, string Source, string ExceptionText)
|
||||
{
|
||||
this.ExceptionId = ExceptionId;
|
||||
this.ExceptionDateTime = ExceptionDateTime;
|
||||
@@ -12,8 +12,8 @@ namespace Swarmops.Basic.Types
|
||||
this.ExceptionText = ExceptionText;
|
||||
}
|
||||
|
||||
public BasicExceptionLog(BasicExceptionLog original) :
|
||||
this(original.ExceptionId, original.ExceptionDateTime, original.Source, original.ExceptionText)
|
||||
public BasicExceptionLog (BasicExceptionLog original) :
|
||||
this (original.ExceptionId, original.ExceptionDateTime, original.Source, original.ExceptionText)
|
||||
{
|
||||
// empty copy ctor
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Swarmops.Basic.Types
|
||||
/// <summary>
|
||||
/// Normal constructor
|
||||
/// </summary>
|
||||
public BasicExpenseClaim(int expenseClaimId, int claimingPersonId, DateTime createdDateTime,
|
||||
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)
|
||||
@@ -37,8 +37,8 @@ namespace Swarmops.Basic.Types
|
||||
/// <summary>
|
||||
/// Copy constructor
|
||||
/// </summary>
|
||||
public BasicExpenseClaim(BasicExpenseClaim original)
|
||||
: this(original.Identity, original.ClaimingPersonId, original.CreatedDateTime,
|
||||
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,
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicExternalActivity : IHasIdentity
|
||||
{
|
||||
public BasicExternalActivity(int externalActivityId, int organizationId, int geographyId,
|
||||
public BasicExternalActivity (int externalActivityId, int organizationId, int geographyId,
|
||||
ExternalActivityType type, DateTime dateTime, string description, int createdByPersonId,
|
||||
DateTime createdDateTime,
|
||||
int dupeOfActivityId)
|
||||
@@ -22,8 +22,8 @@ namespace Swarmops.Basic.Types
|
||||
DupeOfActivityId = dupeOfActivityId;
|
||||
}
|
||||
|
||||
public BasicExternalActivity(BasicExternalActivity original) :
|
||||
this(
|
||||
public BasicExternalActivity (BasicExternalActivity original) :
|
||||
this (
|
||||
original.ExternalActivityId, original.OrganizationId, original.GeographyId, original.Type, original.DateTime,
|
||||
original.Description, original.CreatedByPersonId, original.CreatedDateTime, original.DupeOfActivityId)
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Swarmops.Basic.Types
|
||||
public readonly string Password;
|
||||
public readonly string ServiceName;
|
||||
|
||||
public BasicExternalCredential(int externalCredentialId, string serviceName, string login, string password)
|
||||
public BasicExternalCredential (int externalCredentialId, string serviceName, string login, string password)
|
||||
{
|
||||
this.ExternalCredentialId = externalCredentialId;
|
||||
this.ServiceName = serviceName;
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace Swarmops.Basic.Types
|
||||
private readonly ExternalIdentityType typeOfAccount;
|
||||
private readonly string userID;
|
||||
|
||||
public BasicExternalIdentity(int ExternalIdentityIdentity,
|
||||
public BasicExternalIdentity (int ExternalIdentityIdentity,
|
||||
ExternalIdentityType TypeOfAccount,
|
||||
string ExternalSystem,
|
||||
string UserID,
|
||||
@@ -28,8 +28,8 @@ namespace Swarmops.Basic.Types
|
||||
this.typeOfAccount = TypeOfAccount;
|
||||
}
|
||||
|
||||
public BasicExternalIdentity(BasicExternalIdentity original)
|
||||
: this(
|
||||
public BasicExternalIdentity (BasicExternalIdentity original)
|
||||
: this (
|
||||
original.Identity, original.TypeOfAccount, original.ExternalSystem, original.UserID, original.Password,
|
||||
original.AttachedToPersonID)
|
||||
{
|
||||
|
||||
@@ -9,12 +9,12 @@ namespace Swarmops.Basic.Types
|
||||
[Serializable]
|
||||
public class BasicGeography : IHasIdentity
|
||||
{
|
||||
public BasicGeography(int geographyId, int parentGeographyId, string name)
|
||||
: this(geographyId, parentGeographyId, name, 0)
|
||||
public BasicGeography (int geographyId, int parentGeographyId, string name)
|
||||
: this (geographyId, parentGeographyId, name, 0)
|
||||
{
|
||||
}
|
||||
|
||||
public BasicGeography(int geographyId, int parentGeographyId, string name, int generation)
|
||||
public BasicGeography (int geographyId, int parentGeographyId, string name, int generation)
|
||||
{
|
||||
GeographyId = geographyId;
|
||||
ParentGeographyId = parentGeographyId;
|
||||
@@ -22,12 +22,12 @@ namespace Swarmops.Basic.Types
|
||||
Generation = generation;
|
||||
}
|
||||
|
||||
public BasicGeography(BasicGeography original)
|
||||
: this(original.GeographyId, original.ParentGeographyId, original.Name, original.Generation)
|
||||
public BasicGeography (BasicGeography original)
|
||||
: this (original.GeographyId, original.ParentGeographyId, original.Name, original.Generation)
|
||||
{
|
||||
}
|
||||
|
||||
[Obsolete("Do not use this ctor. It is provided to enable serializability.", true)]
|
||||
[Obsolete ("Do not use this ctor. It is provided to enable serializability.", true)]
|
||||
public BasicGeography()
|
||||
{
|
||||
// provided for serializability - does not initialize fields
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicGeographyDesignation
|
||||
{
|
||||
public BasicGeographyDesignation(int geographyId, int countryId,
|
||||
public BasicGeographyDesignation (int geographyId, int countryId,
|
||||
string designation, GeographyLevel geoLevelId)
|
||||
{
|
||||
GeographyId = geographyId;
|
||||
@@ -13,8 +13,8 @@ namespace Swarmops.Basic.Types
|
||||
GeographyLevel = geoLevelId;
|
||||
}
|
||||
|
||||
public BasicGeographyDesignation(BasicGeographyDesignation original) :
|
||||
this(original.GeographyId, original.CountryId, original.Designation, original.GeographyLevel)
|
||||
public BasicGeographyDesignation (BasicGeographyDesignation original) :
|
||||
this (original.GeographyId, original.CountryId, original.Designation, original.GeographyLevel)
|
||||
{
|
||||
// empty copy ctor
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicInboundInvoice : IHasIdentity
|
||||
{
|
||||
public BasicInboundInvoice(int inboundInvoiceId, int organizationId, DateTime createdDateTime,
|
||||
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)
|
||||
@@ -26,8 +26,8 @@ namespace Swarmops.Basic.Types
|
||||
ClosedByPersonId = closedByPersonId;
|
||||
}
|
||||
|
||||
public BasicInboundInvoice(BasicInboundInvoice original)
|
||||
: this(original.InboundInvoiceId, original.OrganizationId, original.CreatedDateTime,
|
||||
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)
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicInternalPoll : IHasIdentity
|
||||
{
|
||||
public BasicInternalPoll(int internalPollId, int createdByPersonId, int organizationId, int geographyId,
|
||||
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)
|
||||
{
|
||||
@@ -24,8 +24,8 @@ namespace Swarmops.Basic.Types
|
||||
ResultsType = resultsType;
|
||||
}
|
||||
|
||||
public BasicInternalPoll(BasicInternalPoll original)
|
||||
: this(
|
||||
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,
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicInternalPollCandidate : IHasIdentity
|
||||
{
|
||||
public BasicInternalPollCandidate(int internalPollCandidateId, int internalPollId, int personId,
|
||||
public BasicInternalPollCandidate (int internalPollCandidateId, int internalPollId, int personId,
|
||||
string candidacyStatement)
|
||||
{
|
||||
InternalPollCandidateId = internalPollCandidateId;
|
||||
@@ -13,8 +13,8 @@ namespace Swarmops.Basic.Types
|
||||
CandidacyStatement = candidacyStatement;
|
||||
}
|
||||
|
||||
public BasicInternalPollCandidate(BasicInternalPollCandidate original)
|
||||
: this(
|
||||
public BasicInternalPollCandidate (BasicInternalPollCandidate original)
|
||||
: this (
|
||||
original.InternalPollCandidateId, original.InternalPollId, original.PersonId,
|
||||
original.CandidacyStatement)
|
||||
{
|
||||
|
||||
@@ -4,15 +4,15 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicInternalPollVote : IHasIdentity
|
||||
{
|
||||
public BasicInternalPollVote(int internalPollVoteId, int internalPollId, string verificationCode)
|
||||
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)
|
||||
public BasicInternalPollVote (BasicInternalPollVote original)
|
||||
: this (original.InternalPollVoteId, original.InternalPollId, original.VerificationCode)
|
||||
{
|
||||
// empty copy ctor
|
||||
}
|
||||
|
||||
@@ -2,15 +2,15 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicInternalPollVoteDetail
|
||||
{
|
||||
public BasicInternalPollVoteDetail(int internalPollVoteId, int internalPollCandidateId, int position)
|
||||
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)
|
||||
public BasicInternalPollVoteDetail (BasicInternalPollVoteDetail original)
|
||||
: this (original.InternalPollVoteId, original.InternalPollCandidateId, original.Position)
|
||||
{
|
||||
// empty copy ctor
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicInternalPollVoter
|
||||
{
|
||||
public BasicInternalPollVoter(int personId, int internalPollId, bool open, DateTime closedDateTime)
|
||||
public BasicInternalPollVoter (int personId, int internalPollId, bool open, DateTime closedDateTime)
|
||||
{
|
||||
PersonId = personId;
|
||||
InternalPollId = internalPollId;
|
||||
@@ -12,8 +12,8 @@ namespace Swarmops.Basic.Types
|
||||
ClosedDateTime = closedDateTime;
|
||||
}
|
||||
|
||||
public BasicInternalPollVoter(BasicInternalPollVoter original)
|
||||
: this(original.PersonId, original.InternalPollId, original.Open, original.ClosedDateTime)
|
||||
public BasicInternalPollVoter (BasicInternalPollVoter original)
|
||||
: this (original.PersonId, original.InternalPollId, original.Open, original.ClosedDateTime)
|
||||
{
|
||||
// empty copy ctor
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Swarmops.Basic.Types
|
||||
/// <summary>
|
||||
/// Basic constructor.
|
||||
/// </summary>
|
||||
public BasicMailTemplate(int templateId,
|
||||
public BasicMailTemplate (int templateId,
|
||||
string templateName,
|
||||
string languageCode,
|
||||
string countryCode,
|
||||
@@ -33,8 +33,8 @@ namespace Swarmops.Basic.Types
|
||||
/// <summary>
|
||||
/// Copy constructor.
|
||||
/// </summary>
|
||||
public BasicMailTemplate(BasicMailTemplate original)
|
||||
: this(original.templateId,
|
||||
public BasicMailTemplate (BasicMailTemplate original)
|
||||
: this (original.templateId,
|
||||
original.templateName,
|
||||
original.languageCode,
|
||||
original.countryCode,
|
||||
|
||||
@@ -16,14 +16,14 @@ namespace Swarmops.Basic.Types
|
||||
|
||||
#endregion
|
||||
|
||||
public BasicMediaCategory(int mediaCategoryId, string name)
|
||||
public BasicMediaCategory (int mediaCategoryId, string name)
|
||||
{
|
||||
this.mediaCategoryId = mediaCategoryId;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public BasicMediaCategory(BasicMediaCategory original) :
|
||||
this(original.mediaCategoryId, original.name)
|
||||
public BasicMediaCategory (BasicMediaCategory original) :
|
||||
this (original.mediaCategoryId, original.name)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Swarmops.Basic.Types
|
||||
|
||||
#endregion
|
||||
|
||||
public BasicMediaEntry(int id, int keywordId, string mediaName, bool isBlog, string title, string url,
|
||||
public BasicMediaEntry (int id, int keywordId, string mediaName, bool isBlog, string title, string url,
|
||||
DateTime dateTime)
|
||||
{
|
||||
this.id = id;
|
||||
@@ -34,15 +34,15 @@ namespace Swarmops.Basic.Types
|
||||
this.dateTime = dateTime;
|
||||
}
|
||||
|
||||
public BasicMediaEntry(BasicMediaEntry original)
|
||||
: this(
|
||||
public BasicMediaEntry (BasicMediaEntry original)
|
||||
: this (
|
||||
original.id, original.keywordId, original.mediaName, original.isBlog, original.title, original.url,
|
||||
original.dateTime)
|
||||
{
|
||||
}
|
||||
|
||||
public BasicMediaEntry()
|
||||
: this(0, 0, string.Empty, false, string.Empty, string.Empty, DateTime.MinValue)
|
||||
: this (0, 0, string.Empty, false, string.Empty, string.Empty, DateTime.MinValue)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -18,20 +18,20 @@ namespace Swarmops.Basic.Types
|
||||
|
||||
#endregion
|
||||
|
||||
public BasicMediaKeyword(int id, string keyword)
|
||||
public BasicMediaKeyword (int id, string keyword)
|
||||
{
|
||||
this.id = id;
|
||||
this.keyword = keyword;
|
||||
}
|
||||
|
||||
public BasicMediaKeyword(BasicMediaKeyword original)
|
||||
public BasicMediaKeyword (BasicMediaKeyword original)
|
||||
{
|
||||
this.id = original.id;
|
||||
this.keyword = original.keyword;
|
||||
}
|
||||
|
||||
public BasicMediaKeyword()
|
||||
: this(0, string.Empty)
|
||||
: this (0, string.Empty)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -18,15 +18,15 @@ namespace Swarmops.Basic.Types
|
||||
|
||||
#endregion
|
||||
|
||||
public BasicMedium(int mediumId, string name, PoliticalAffiliation politicalAffiliation)
|
||||
public BasicMedium (int mediumId, string name, PoliticalAffiliation politicalAffiliation)
|
||||
{
|
||||
this.mediumId = mediumId;
|
||||
this.name = name;
|
||||
this.politicalAffiliation = politicalAffiliation;
|
||||
}
|
||||
|
||||
public BasicMedium(int mediumId, string name)
|
||||
: this(mediumId, name, PoliticalAffiliation.NotPolitical)
|
||||
public BasicMedium (int mediumId, string name)
|
||||
: this (mediumId, name, PoliticalAffiliation.NotPolitical)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicMembership : IHasIdentity
|
||||
{
|
||||
public BasicMembership(int personId, int organizationId)
|
||||
public BasicMembership (int personId, int organizationId)
|
||||
{
|
||||
PersonId = personId;
|
||||
OrganizationId = organizationId;
|
||||
@@ -13,14 +13,14 @@ namespace Swarmops.Basic.Types
|
||||
DateTerminated = DateTime.MinValue;
|
||||
}
|
||||
|
||||
public BasicMembership(int personId, int organizationId, DateTime memberSince, DateTime expires)
|
||||
: this(personId, organizationId)
|
||||
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,
|
||||
public BasicMembership (int membershipId, int personId, int organizationId, DateTime memberSince,
|
||||
DateTime expires, bool active, DateTime dateTerminated)
|
||||
{
|
||||
MembershipId = membershipId;
|
||||
@@ -32,8 +32,8 @@ namespace Swarmops.Basic.Types
|
||||
DateTerminated = dateTerminated;
|
||||
}
|
||||
|
||||
public BasicMembership(BasicMembership original)
|
||||
: this(
|
||||
public BasicMembership (BasicMembership original)
|
||||
: this (
|
||||
original.MembershipId, original.PersonId, original.OrganizationId, original.MemberSince,
|
||||
original.Expires, original.Active, original.DateTerminated)
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicMembershipPaymentStatus
|
||||
{
|
||||
public BasicMembershipPaymentStatus(int membershipId, MembershipPaymentStatus status, DateTime statusDateTime)
|
||||
public BasicMembershipPaymentStatus (int membershipId, MembershipPaymentStatus status, DateTime statusDateTime)
|
||||
{
|
||||
MembershipId = membershipId;
|
||||
Status = status;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace Swarmops.Basic.Types
|
||||
private readonly int organizationId;
|
||||
private readonly string title;
|
||||
|
||||
public BasicNewsletter(int newsletterId, string title, string introduction, string body,
|
||||
public BasicNewsletter (int newsletterId, string title, string introduction, string body,
|
||||
int authorId, int templateId, int feedId)
|
||||
{
|
||||
this.newsletterId = newsletterId;
|
||||
@@ -30,10 +30,10 @@ namespace Swarmops.Basic.Types
|
||||
this.newsletterFeedId = feedId;
|
||||
}
|
||||
|
||||
public BasicNewsletter(int newsletterId, string title, string introduction, string body,
|
||||
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 (newsletterId, title, introduction, body, authorId, templateId, feedId)
|
||||
{
|
||||
this.organizationId = organizationId;
|
||||
this.geographyId = geographyId;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Swarmops.Basic.Types
|
||||
/// </summary>
|
||||
public readonly int OrganizationId;
|
||||
|
||||
public BasicNewsletterFeed(int newsletterId, int organizationId, bool defaultSubscribed, string name)
|
||||
public BasicNewsletterFeed (int newsletterId, int organizationId, bool defaultSubscribed, string name)
|
||||
{
|
||||
this.NewsletterFeedId = newsletterId;
|
||||
this.OrganizationId = organizationId;
|
||||
@@ -35,8 +35,8 @@ namespace Swarmops.Basic.Types
|
||||
this.Name = string.Empty;
|
||||
}
|
||||
|
||||
public BasicNewsletterFeed(BasicNewsletterFeed original)
|
||||
: this(original.NewsletterFeedId, original.OrganizationId, original.DefaultSubscribed, original.Name)
|
||||
public BasicNewsletterFeed (BasicNewsletterFeed original)
|
||||
: this (original.NewsletterFeedId, original.OrganizationId, original.DefaultSubscribed, original.Name)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
public string HtmlTemplate;
|
||||
public string TextTemplate;
|
||||
|
||||
public BasicNewsletterTemplate(string htmlTemplate, string textTemplate)
|
||||
public BasicNewsletterTemplate (string htmlTemplate, string textTemplate)
|
||||
{
|
||||
this.HtmlTemplate = htmlTemplate;
|
||||
this.TextTemplate = textTemplate;
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
protected Dictionary<ObjectOptionalDataType, string> OptionalData;
|
||||
|
||||
public BasicObjectOptionalData(ObjectType objectType, int objectId,
|
||||
public BasicObjectOptionalData (ObjectType objectType, int objectId,
|
||||
Dictionary<ObjectOptionalDataType, string> initialData)
|
||||
{
|
||||
ObjectType = objectType;
|
||||
@@ -17,8 +17,8 @@ namespace Swarmops.Basic.Types
|
||||
this.OptionalData = initialData;
|
||||
}
|
||||
|
||||
public BasicObjectOptionalData(BasicObjectOptionalData original)
|
||||
: this(original.ObjectType, original.ObjectId, original.OptionalData)
|
||||
public BasicObjectOptionalData (BasicObjectOptionalData original)
|
||||
: this (original.ObjectType, original.ObjectId, original.OptionalData)
|
||||
{
|
||||
// empty ctor
|
||||
}
|
||||
|
||||
@@ -19,25 +19,25 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
}
|
||||
|
||||
public BasicOrganization(int organizationId, string name, string nameInternational)
|
||||
public BasicOrganization (int organizationId, string name, string nameInternational)
|
||||
{
|
||||
OrganizationId = organizationId;
|
||||
Name = name;
|
||||
NameInternational = nameInternational;
|
||||
}
|
||||
|
||||
public BasicOrganization(int organizationId, int parentOrganizationId, string name, string nameInternational) :
|
||||
this(organizationId, name, nameInternational)
|
||||
public BasicOrganization (int organizationId, int parentOrganizationId, string name, string nameInternational) :
|
||||
this (organizationId, name, nameInternational)
|
||||
{
|
||||
ParentOrganizationId = parentOrganizationId;
|
||||
}
|
||||
|
||||
|
||||
public BasicOrganization(int organizationId, int parentOrganizationId, string name, string nameInternational,
|
||||
public BasicOrganization (int organizationId, int parentOrganizationId, string name, string nameInternational,
|
||||
string nameShort, string domain, string mailPrefix, int anchorGeographyId,
|
||||
bool acceptsMembers, bool autoAssignNewMembers,
|
||||
int defaultCountryId)
|
||||
: this(organizationId, parentOrganizationId, name, nameInternational)
|
||||
: this (organizationId, parentOrganizationId, name, nameInternational)
|
||||
{
|
||||
this.nameShort = nameShort;
|
||||
Domain = domain;
|
||||
@@ -48,8 +48,8 @@ namespace Swarmops.Basic.Types
|
||||
DefaultCountryId = defaultCountryId;
|
||||
}
|
||||
|
||||
public BasicOrganization(BasicOrganization original)
|
||||
: this(
|
||||
public BasicOrganization (BasicOrganization original)
|
||||
: this (
|
||||
original.Identity, original.ParentOrganizationId, original.Name, original.NameInternational,
|
||||
original.NameShort, original.Domain, original.MailPrefix, original.AnchorGeographyId,
|
||||
original.AcceptsMembers, original.AutoAssignNewMembers, original.DefaultCountryId)
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicOutboundInvoice : IHasIdentity
|
||||
{
|
||||
public BasicOutboundInvoice(int outboundInvoiceId, string customerName, string invoiceAddressPaper,
|
||||
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)
|
||||
@@ -30,8 +30,8 @@ namespace Swarmops.Basic.Types
|
||||
}
|
||||
|
||||
|
||||
public BasicOutboundInvoice(BasicOutboundInvoice original) :
|
||||
this(
|
||||
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,
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicOutboundInvoiceItem : IHasIdentity
|
||||
{
|
||||
public BasicOutboundInvoiceItem(int outboundInvoiceItemId, int outboundInvoiceId, string description,
|
||||
public BasicOutboundInvoiceItem (int outboundInvoiceItemId, int outboundInvoiceId, string description,
|
||||
Int64 amountCents)
|
||||
{
|
||||
OutboundInvoiceItemId = outboundInvoiceItemId;
|
||||
@@ -14,8 +14,9 @@ namespace Swarmops.Basic.Types
|
||||
AmountCents = amountCents;
|
||||
}
|
||||
|
||||
public BasicOutboundInvoiceItem(BasicOutboundInvoiceItem original) :
|
||||
this(original.OutboundInvoiceItemId, original.OutboundInvoiceId, original.Description, original.AmountCents)
|
||||
public BasicOutboundInvoiceItem (BasicOutboundInvoiceItem original) :
|
||||
this (original.OutboundInvoiceItemId, original.OutboundInvoiceId, original.Description, original.AmountCents
|
||||
)
|
||||
{
|
||||
// empty copy ctor
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Swarmops.Basic.Types
|
||||
/// <summary>
|
||||
/// Basic constructor. This is for database use and NOT for public construction.
|
||||
/// </summary>
|
||||
public BasicOutboundMail(int outboundMailId, MailAuthorType authorType, int authorPersonId, string title,
|
||||
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,
|
||||
@@ -51,10 +51,10 @@ namespace Swarmops.Basic.Types
|
||||
/// <summary>
|
||||
/// Constructor used by OutboundMail after creating record in db. NOT for other use
|
||||
/// </summary>
|
||||
public BasicOutboundMail(int outboundMailId, MailAuthorType authorType, int authorPersonId, string title,
|
||||
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,
|
||||
: this (outboundMailId, authorType, authorPersonId, title, body,
|
||||
mailPriority, mailType, organizationId, geographyId,
|
||||
createdDateTime, releaseDateTime,
|
||||
false, false, false, DateTime.MinValue, DateTime.MinValue, DateTime.MinValue, 0, 0, 0)
|
||||
@@ -66,8 +66,8 @@ namespace Swarmops.Basic.Types
|
||||
/// Copy constructor. Used when PirateWeb.Logic constructs an OutboundMail object.
|
||||
/// </summary>
|
||||
/// <param name="original">The original to copy.</param>
|
||||
public BasicOutboundMail(BasicOutboundMail original)
|
||||
: this(
|
||||
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,
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Swarmops.Basic.Types
|
||||
/// <summary>
|
||||
/// Normal constructor.
|
||||
/// </summary>
|
||||
public BasicOutboundMailRecipient(int outboundMailRecipientId, int outboundMailId, int personId, bool asOfficer,
|
||||
public BasicOutboundMailRecipient (int outboundMailRecipientId, int outboundMailId, int personId, bool asOfficer,
|
||||
int personType)
|
||||
{
|
||||
this.outboundMailId = outboundMailId;
|
||||
@@ -22,8 +22,8 @@ namespace Swarmops.Basic.Types
|
||||
/// <summary>
|
||||
/// Copy constructor.
|
||||
/// </summary>
|
||||
public BasicOutboundMailRecipient(BasicOutboundMailRecipient original)
|
||||
: this(
|
||||
public BasicOutboundMailRecipient (BasicOutboundMailRecipient original)
|
||||
: this (
|
||||
original.outboundMailRecipientId, original.outboundMailId, original.personId, original.asOfficer,
|
||||
original.personType)
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicPWEvent
|
||||
{
|
||||
public BasicPWEvent(int eventId, DateTime dateTime, bool open, DateTime processedDateTime, EventType eventType,
|
||||
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)
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace Swarmops.Basic.Types
|
||||
private string valueAfter;
|
||||
private string valueBefore;
|
||||
|
||||
public BasicPWLog(DateTime dateTimeUtc,
|
||||
public BasicPWLog (DateTime dateTimeUtc,
|
||||
int actingPersonId,
|
||||
string affectedItemType,
|
||||
int affectedItemId,
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicPaperLetter : IHasIdentity
|
||||
{
|
||||
public BasicPaperLetter(int paperLetterId, int organizationId, string fromName, string replyAddress,
|
||||
public BasicPaperLetter (int paperLetterId, int organizationId, string fromName, string replyAddress,
|
||||
DateTime receivedDate, int toPersonId, RoleType toPersonInRole, bool personal, int uploadedByPersonId,
|
||||
DateTime uploadedDateTime)
|
||||
{
|
||||
@@ -22,8 +22,8 @@ namespace Swarmops.Basic.Types
|
||||
UploadedDateTime = uploadedDateTime;
|
||||
}
|
||||
|
||||
public BasicPaperLetter(BasicPaperLetter original)
|
||||
: this(original.PaperLetterId, original.OrganizationId, original.FromName, original.ReplyAddress,
|
||||
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)
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicParley : IHasIdentity
|
||||
{
|
||||
public BasicParley(int parleyId, int organizationId, int personId, int budgetId, DateTime createdDateTime,
|
||||
public BasicParley (int parleyId, int organizationId, int personId, int budgetId, DateTime createdDateTime,
|
||||
bool open, bool attested, string name, int geographyId, string description, string informationUrl,
|
||||
DateTime startDate, DateTime endDate, Int64 budgetCents, Int64 guaranteeCents,
|
||||
Int64 attendanceFeeCents, DateTime closedDateTime)
|
||||
@@ -29,8 +29,8 @@ namespace Swarmops.Basic.Types
|
||||
ClosedDateTime = closedDateTime;
|
||||
}
|
||||
|
||||
public BasicParley(BasicParley original)
|
||||
: this(
|
||||
public BasicParley (BasicParley original)
|
||||
: this (
|
||||
original.ParleyId, original.OrganizationId, original.PersonId, original.BudgetId,
|
||||
original.CreatedDateTime, original.Open, original.Attested, original.Name, original.GeographyId,
|
||||
original.Description, original.InformationUrl, original.StartDate, original.EndDate,
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicParleyAttendee : IHasIdentity
|
||||
{
|
||||
public BasicParleyAttendee(int parleyAttendeeId, int parleyId, int personId, DateTime signupDateTime,
|
||||
public BasicParleyAttendee (int parleyAttendeeId, int parleyId, int personId, DateTime signupDateTime,
|
||||
bool active, DateTime cancelDateTime, bool invoiced, int outboundInvoiceId, bool isGuest)
|
||||
{
|
||||
ParleyAttendeeId = parleyAttendeeId;
|
||||
@@ -18,8 +18,8 @@ namespace Swarmops.Basic.Types
|
||||
OutboundInvoiceId = outboundInvoiceId;
|
||||
}
|
||||
|
||||
public BasicParleyAttendee(BasicParleyAttendee original)
|
||||
: this(
|
||||
public BasicParleyAttendee (BasicParleyAttendee original)
|
||||
: this (
|
||||
original.ParleyAttendeeId, original.ParleyId, original.PersonId, original.SignupDateTime,
|
||||
original.Active, original.CancelDateTime, original.Invoiced, original.OutboundInvoiceId,
|
||||
original.IsGuest)
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicParleyOption : IHasIdentity
|
||||
{
|
||||
public BasicParleyOption(int parleyOptionId, int parleyId, string description, Int64 amountCents, bool active)
|
||||
public BasicParleyOption (int parleyOptionId, int parleyId, string description, Int64 amountCents, bool active)
|
||||
{
|
||||
ParleyOptionId = parleyOptionId;
|
||||
ParleyId = parleyId;
|
||||
@@ -14,8 +14,8 @@ namespace Swarmops.Basic.Types
|
||||
Active = active;
|
||||
}
|
||||
|
||||
public BasicParleyOption(BasicParleyOption original)
|
||||
: this(
|
||||
public BasicParleyOption (BasicParleyOption original)
|
||||
: this (
|
||||
original.ParleyOptionId, original.ParleyId, original.Description, original.AmountCents, original.Active)
|
||||
{
|
||||
// empty copy ctor
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicPayment : IHasIdentity
|
||||
{
|
||||
public BasicPayment(int paymentId, int paymentGroupId, Int64 amountCents, string reference, string fromAccount,
|
||||
public BasicPayment (int paymentId, int paymentGroupId, Int64 amountCents, string reference, string fromAccount,
|
||||
string key, bool hasImage, int outboundInvoiceId)
|
||||
{
|
||||
PaymentId = paymentId;
|
||||
@@ -18,8 +18,8 @@ namespace Swarmops.Basic.Types
|
||||
OutboundInvoiceId = outboundInvoiceId;
|
||||
}
|
||||
|
||||
public BasicPayment(BasicPayment original)
|
||||
: this(
|
||||
public BasicPayment (BasicPayment original)
|
||||
: this (
|
||||
original.PaymentId, original.PaymentGroupId, original.AmountCents, original.Reference,
|
||||
original.FromAccount, original.Key, original.HasImage, original.OutboundInvoiceId)
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace Swarmops.Basic.Types
|
||||
|
||||
#endregion
|
||||
|
||||
public BasicPaymentCode(int paymentCodeId, string paymentCode, string issuedToPhoneNumber, int issuedToPersonId,
|
||||
public BasicPaymentCode (int paymentCodeId, string paymentCode, string issuedToPhoneNumber, int issuedToPersonId,
|
||||
bool claimed)
|
||||
{
|
||||
this.paymentCodeId = paymentCodeId;
|
||||
@@ -30,8 +30,8 @@ namespace Swarmops.Basic.Types
|
||||
this.claimed = claimed;
|
||||
}
|
||||
|
||||
public BasicPaymentCode(BasicPaymentCode original)
|
||||
: this(
|
||||
public BasicPaymentCode (BasicPaymentCode original)
|
||||
: this (
|
||||
original.paymentCodeId, original.paymentCode, original.issuedToPhoneNumber, original.issuedToPersonId,
|
||||
original.claimed)
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicPaymentGroup : IHasIdentity
|
||||
{
|
||||
public BasicPaymentGroup(int paymentGroupId, int organizationId, DateTime dateTime, int currencyId,
|
||||
public BasicPaymentGroup (int paymentGroupId, int organizationId, DateTime dateTime, int currencyId,
|
||||
Int64 amountCents, string tag, int createdByPersonId, DateTime createdDateTime, bool open)
|
||||
{
|
||||
PaymentGroupId = paymentGroupId;
|
||||
@@ -19,8 +19,8 @@ namespace Swarmops.Basic.Types
|
||||
Open = open;
|
||||
}
|
||||
|
||||
public BasicPaymentGroup(BasicPaymentGroup original)
|
||||
: this(
|
||||
public BasicPaymentGroup (BasicPaymentGroup original)
|
||||
: this (
|
||||
original.PaymentGroupId, original.OrganizationId, original.DateTime, original.CurrencyId,
|
||||
original.AmountCents, original.Tag, original.CreatedByPersonId, original.CreatedDateTime, original.Open)
|
||||
{
|
||||
|
||||
@@ -2,14 +2,14 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicPaymentInformation
|
||||
{
|
||||
public BasicPaymentInformation(PaymentInformationType type, string data)
|
||||
public BasicPaymentInformation (PaymentInformationType type, string data)
|
||||
{
|
||||
Type = type;
|
||||
Data = data;
|
||||
}
|
||||
|
||||
public BasicPaymentInformation(BasicPaymentInformation original)
|
||||
: this(original.Type, original.Data)
|
||||
public BasicPaymentInformation (BasicPaymentInformation original)
|
||||
: this (original.Type, original.Data)
|
||||
{
|
||||
// empty copy ctor
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicPayout : IHasIdentity
|
||||
{
|
||||
public BasicPayout(int payoutId, int organizationId, string bank, string account,
|
||||
public BasicPayout (int payoutId, int organizationId, string bank, string account,
|
||||
string reference, Int64 amountCents, DateTime expectedTransactionDate, bool open,
|
||||
DateTime createdDateTime, int createdByPersonId)
|
||||
{
|
||||
@@ -21,8 +21,8 @@ namespace Swarmops.Basic.Types
|
||||
CreatedByPersonId = createdByPersonId;
|
||||
}
|
||||
|
||||
public BasicPayout(BasicPayout original) :
|
||||
this(original.PayoutId, original.OrganizationId, original.Bank, original.Account,
|
||||
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)
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicPayrollAdjustment : IHasIdentity
|
||||
{
|
||||
public BasicPayrollAdjustment(int payrollAdjustmentId, int payrollItemId, PayrollAdjustmentType type,
|
||||
public BasicPayrollAdjustment (int payrollAdjustmentId, int payrollItemId, PayrollAdjustmentType type,
|
||||
Int64 amountCents,
|
||||
string description, bool open, int salaryId)
|
||||
{
|
||||
@@ -19,8 +19,8 @@ namespace Swarmops.Basic.Types
|
||||
}
|
||||
|
||||
|
||||
public BasicPayrollAdjustment(BasicPayrollAdjustment original)
|
||||
: this(
|
||||
public BasicPayrollAdjustment (BasicPayrollAdjustment original)
|
||||
: this (
|
||||
original.PayrollAdjustmentId, original.PayrollItemId, original.Type, original.AmountCents,
|
||||
original.Description, original.Open, original.SalaryId)
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicPayrollItem : IHasIdentity
|
||||
{
|
||||
public BasicPayrollItem(int payrollItemId, int personId, int organizationId, int countryId,
|
||||
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)
|
||||
@@ -24,8 +24,8 @@ namespace Swarmops.Basic.Types
|
||||
AdditiveTaxLevel = additiveTaxLevel;
|
||||
}
|
||||
|
||||
public BasicPayrollItem(BasicPayrollItem original)
|
||||
: this(original.PayrollItemId, original.PersonId, original.OrganizationId, original.CountryId,
|
||||
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)
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Swarmops.Basic.Types
|
||||
public Permission PermissionType;
|
||||
public RoleType RoleType;
|
||||
|
||||
public BasicPermission(RoleType pRoleType, Permission pPermissionType)
|
||||
public BasicPermission (RoleType pRoleType, Permission pPermissionType)
|
||||
{
|
||||
this.RoleType = pRoleType;
|
||||
this.PermissionType = pPermissionType;
|
||||
|
||||
@@ -7,13 +7,13 @@ namespace Swarmops.Basic.Types
|
||||
[Serializable]
|
||||
public class BasicPerson : IEmailPerson, IHasIdentity
|
||||
{
|
||||
public BasicPerson(string name, string email)
|
||||
public BasicPerson (string name, string email)
|
||||
{
|
||||
Name = name;
|
||||
Email = email;
|
||||
}
|
||||
|
||||
public BasicPerson(int personId, string passwordHash, string name, string email, string street,
|
||||
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)
|
||||
{
|
||||
@@ -31,8 +31,8 @@ namespace Swarmops.Basic.Types
|
||||
Gender = gender;
|
||||
}
|
||||
|
||||
public BasicPerson(BasicPerson original)
|
||||
: this(original.PersonId, original.PasswordHash, original.Name, original.Email, original.Street,
|
||||
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)
|
||||
{
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace Swarmops.Basic.Types
|
||||
/// <param name="roleType">The node-specific role.</param>
|
||||
/// <param name="organizationId">The organization Id.</param>
|
||||
/// <param name="geographyId">The node Id.</param>
|
||||
public BasicPersonRole(int roleId, int personId, RoleType type, int organizationId, int geographyId)
|
||||
public BasicPersonRole (int roleId, int personId, RoleType type, int organizationId, int geographyId)
|
||||
{
|
||||
this.roleId = roleId;
|
||||
this.personId = personId;
|
||||
@@ -43,8 +43,8 @@ namespace Swarmops.Basic.Types
|
||||
/// <summary>
|
||||
/// Copy constructor.
|
||||
/// </summary>
|
||||
public BasicPersonRole(BasicPersonRole original)
|
||||
: this(original.roleId, original.personId, original.type, original.organizationId, original.geographyId)
|
||||
public BasicPersonRole (BasicPersonRole original)
|
||||
: this (original.roleId, original.personId, original.type, original.organizationId, original.geographyId)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -5,20 +5,20 @@ namespace Swarmops.Basic.Types
|
||||
[Serializable]
|
||||
public class BasicPostalCode
|
||||
{
|
||||
public BasicPostalCode(int postalCodeId, string postalCode, int cityId, int countryId)
|
||||
public BasicPostalCode (int postalCodeId, string postalCode, int cityId, int countryId)
|
||||
{
|
||||
PostalCodeId = postalCodeId;
|
||||
PostalCode = postalCode.Replace(" ", "");
|
||||
PostalCode = postalCode.Replace (" ", "");
|
||||
CityId = cityId;
|
||||
CountryId = countryId;
|
||||
}
|
||||
|
||||
public BasicPostalCode(BasicPostalCode original)
|
||||
: this(original.PostalCodeId, original.PostalCode, original.CityId, original.CountryId)
|
||||
public BasicPostalCode (BasicPostalCode original)
|
||||
: this (original.PostalCodeId, original.PostalCode, original.CityId, original.CountryId)
|
||||
{
|
||||
}
|
||||
|
||||
[Obsolete("Do not call this ctor directly. It exists to enable serialization.", true)]
|
||||
[Obsolete ("Do not call this ctor directly. It exists to enable serialization.", true)]
|
||||
public BasicPostalCode()
|
||||
{
|
||||
// this should never be called from code
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicRefund : IHasIdentity
|
||||
{
|
||||
public BasicRefund(int refundId, int paymentId, bool open, Int64 amountCents, int createdByPersonId,
|
||||
public BasicRefund (int refundId, int paymentId, bool open, Int64 amountCents, int createdByPersonId,
|
||||
DateTime createdDateTime, DateTime closedDateTime)
|
||||
{
|
||||
RefundId = refundId;
|
||||
@@ -17,8 +17,8 @@ namespace Swarmops.Basic.Types
|
||||
ClosedDateTime = closedDateTime;
|
||||
}
|
||||
|
||||
public BasicRefund(BasicRefund original)
|
||||
: this(
|
||||
public BasicRefund (BasicRefund original)
|
||||
: this (
|
||||
original.RefundId, original.PaymentId, original.Open, original.AmountCents, original.CreatedByPersonId,
|
||||
original.CreatedDateTime, original.ClosedDateTime)
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Swarmops.Basic.Types
|
||||
|
||||
#endregion
|
||||
|
||||
public BasicReporter(int reporterId, string name, string email, int[] mediaCategoryIds)
|
||||
public BasicReporter (int reporterId, string name, string email, int[] mediaCategoryIds)
|
||||
{
|
||||
this.reporterId = reporterId;
|
||||
this.name = name;
|
||||
@@ -26,8 +26,8 @@ namespace Swarmops.Basic.Types
|
||||
this.mediaCategoryIds = mediaCategoryIds;
|
||||
}
|
||||
|
||||
public BasicReporter(BasicReporter original) :
|
||||
this(original.reporterId, original.name, original.email, original.mediaCategoryIds)
|
||||
public BasicReporter (BasicReporter original) :
|
||||
this (original.reporterId, original.name, original.email, original.mediaCategoryIds)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicSalary : IHasIdentity
|
||||
{
|
||||
public BasicSalary(int salaryId, int payrollItemId, DateTime payoutDate, Int64 baseSalaryCents,
|
||||
public BasicSalary (int salaryId, int payrollItemId, DateTime payoutDate, Int64 baseSalaryCents,
|
||||
Int64 netSalaryCents,
|
||||
Int64 subtractiveTaxCents, Int64 additiveTaxCents, bool attested, bool netPaid, bool taxPaid, bool open)
|
||||
{
|
||||
@@ -22,8 +22,8 @@ namespace Swarmops.Basic.Types
|
||||
Open = open;
|
||||
}
|
||||
|
||||
public BasicSalary(BasicSalary original)
|
||||
: this(
|
||||
public BasicSalary (BasicSalary original)
|
||||
: this (
|
||||
original.SalaryId, original.PayrollItemId, original.PayoutDate, original.BaseSalaryCents,
|
||||
original.NetSalaryCents,
|
||||
original.SubtractiveTaxCents, original.AdditiveTaxCents, original.Attested, original.NetPaid,
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicSupplier : IHasIdentity
|
||||
{
|
||||
public BasicSupplier(int supplierId, string name, string email, string passwordHash, string bankAccount,
|
||||
public BasicSupplier (int supplierId, string name, string email, string passwordHash, string bankAccount,
|
||||
DateTime createdDateTime, int createdByPersonId)
|
||||
{
|
||||
SupplierId = supplierId;
|
||||
@@ -17,8 +17,8 @@ namespace Swarmops.Basic.Types
|
||||
CreatedByPersonId = createdByPersonId;
|
||||
}
|
||||
|
||||
public BasicSupplier(BasicSupplier original)
|
||||
: this(
|
||||
public BasicSupplier (BasicSupplier original)
|
||||
: this (
|
||||
original.SupplierId, original.Name, original.Email, original.PasswordHash, original.BankAccount,
|
||||
original.CreatedDateTime, original.CreatedByPersonId)
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
public class BasicSwarmopsLogEntry : IHasIdentity
|
||||
{
|
||||
public BasicSwarmopsLogEntry(int swarmopsLogEntryId, int personId, DateTime dateTime, int entryTypeId,
|
||||
public BasicSwarmopsLogEntry (int swarmopsLogEntryId, int personId, DateTime dateTime, int entryTypeId,
|
||||
string entryXml)
|
||||
{
|
||||
SwarmopsLogEntryId = swarmopsLogEntryId;
|
||||
@@ -15,8 +15,8 @@ namespace Swarmops.Basic.Types
|
||||
EntryXml = entryXml;
|
||||
}
|
||||
|
||||
public BasicSwarmopsLogEntry(BasicSwarmopsLogEntry original)
|
||||
: this(
|
||||
public BasicSwarmopsLogEntry (BasicSwarmopsLogEntry original)
|
||||
: this (
|
||||
original.SwarmopsLogEntryId, original.PersonId, original.DateTime, original.EntryTypeId,
|
||||
original.EntryXml)
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types
|
||||
private int geoId;
|
||||
private int orgId;
|
||||
|
||||
public BasicUptakeGeography(int pOrgId, int pGeoId)
|
||||
public BasicUptakeGeography (int pOrgId, int pGeoId)
|
||||
{
|
||||
this.orgId = pOrgId;
|
||||
this.geoId = pGeoId;
|
||||
@@ -15,7 +15,7 @@ namespace Swarmops.Basic.Types
|
||||
{
|
||||
}
|
||||
|
||||
public BasicUptakeGeography(BasicUptakeGeography other)
|
||||
public BasicUptakeGeography (BasicUptakeGeography other)
|
||||
{
|
||||
this.orgId = other.orgId;
|
||||
this.geoId = other.geoId;
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace Swarmops.Basic.Types
|
||||
private readonly int personId;
|
||||
private readonly int volunteerId;
|
||||
|
||||
public BasicVolunteer(int volunteerId, int personId, int ownerPersonId, DateTime openedDateTime,
|
||||
public BasicVolunteer (int volunteerId, int personId, int ownerPersonId, DateTime openedDateTime,
|
||||
bool open, DateTime closedDateTime, string closingComments)
|
||||
{
|
||||
this.volunteerId = volunteerId;
|
||||
@@ -25,8 +25,8 @@ namespace Swarmops.Basic.Types
|
||||
this.closingComments = closingComments;
|
||||
}
|
||||
|
||||
public BasicVolunteer(BasicVolunteer original)
|
||||
: this(original.volunteerId, original.personId, original.ownerPersonId, original.openedDateTime,
|
||||
public BasicVolunteer (BasicVolunteer original)
|
||||
: this (original.volunteerId, original.personId, original.ownerPersonId, original.openedDateTime,
|
||||
original.open, original.closedDateTime, original.closingComments)
|
||||
{
|
||||
// copy ctor
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace Swarmops.Basic.Types
|
||||
private readonly int volunteerId;
|
||||
private readonly int volunteerRoleId;
|
||||
|
||||
public BasicVolunteerRole(int volunteerRoleId, int volunteerId, int organizationId, int geographyId,
|
||||
public BasicVolunteerRole (int volunteerRoleId, int volunteerId, int organizationId, int geographyId,
|
||||
RoleType roleType, bool open, bool assigned)
|
||||
{
|
||||
this.volunteerRoleId = volunteerRoleId;
|
||||
@@ -25,8 +25,8 @@ namespace Swarmops.Basic.Types
|
||||
this.assigned = assigned;
|
||||
}
|
||||
|
||||
public BasicVolunteerRole(BasicVolunteerRole original)
|
||||
: this(original.volunteerRoleId, original.volunteerId, original.organizationId, original.geographyId,
|
||||
public BasicVolunteerRole (BasicVolunteerRole original)
|
||||
: this (original.volunteerRoleId, original.volunteerId, original.organizationId, original.geographyId,
|
||||
original.roleType, original.open, original.assigned)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Swarmops.Basic.Types.Communications
|
||||
/// <summary>
|
||||
/// Basic constructor.
|
||||
/// </summary>
|
||||
public BasicAutoMail(int autoMailId, AutoMailType type, int organizationId, int geographyId,
|
||||
public BasicAutoMail (int autoMailId, AutoMailType type, int organizationId, int geographyId,
|
||||
int authorPersonId, string title, string body)
|
||||
{
|
||||
this.autoMailId = autoMailId;
|
||||
@@ -32,8 +32,8 @@ namespace Swarmops.Basic.Types.Communications
|
||||
/// <summary>
|
||||
/// Copy constructor.
|
||||
/// </summary>
|
||||
public BasicAutoMail(BasicAutoMail original)
|
||||
: this(original.autoMailId, original.type, original.organizationId, original.geographyId,
|
||||
public BasicAutoMail (BasicAutoMail original)
|
||||
: this (original.autoMailId, original.type, original.organizationId, original.geographyId,
|
||||
original.authorPersonId, original.title, original.body)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Swarmops.Basic.Types.Communications
|
||||
{
|
||||
public class BasicOutboundComm : IHasIdentity
|
||||
{
|
||||
public BasicOutboundComm(int outboundCommId, int senderPersonId, int fromPersonId, int organizationId,
|
||||
public BasicOutboundComm (int outboundCommId, int senderPersonId, int fromPersonId, int organizationId,
|
||||
DateTime createdDateTime, string resolverClass, string recipientDataXml, bool resolved,
|
||||
DateTime resolvedDateTime, OutboundCommPriority priority, string transmitterClass, string payloadXml,
|
||||
bool open, DateTime startTransmitDateTime, DateTime closedDateTime, int recipientCount,
|
||||
@@ -33,8 +33,8 @@ namespace Swarmops.Basic.Types.Communications
|
||||
}
|
||||
|
||||
|
||||
public BasicOutboundComm(BasicOutboundComm original) :
|
||||
this(
|
||||
public BasicOutboundComm (BasicOutboundComm original) :
|
||||
this (
|
||||
original.OutboundCommId, original.SenderPersonId, original.FromPersonId, original.OrganizationId,
|
||||
original.CreatedDateTime, original.ResolverClass, original.RecipientDataXml, original.Resolved,
|
||||
original.ResolvedDateTime, original.Priority, original.TransmitterClass, original.PayloadXml,
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Swarmops.Basic.Types.Communications
|
||||
{
|
||||
public class BasicOutboundCommRecipient : IHasIdentity
|
||||
{
|
||||
public BasicOutboundCommRecipient(int outboundCommRecipientId, int outboundCommId, int personId, bool open,
|
||||
public BasicOutboundCommRecipient (int outboundCommRecipientId, int outboundCommId, int personId, bool open,
|
||||
bool success, string failReason)
|
||||
{
|
||||
OutboundCommRecipientId = outboundCommRecipientId;
|
||||
@@ -15,8 +15,8 @@ namespace Swarmops.Basic.Types.Communications
|
||||
FailReason = failReason;
|
||||
}
|
||||
|
||||
public BasicOutboundCommRecipient(BasicOutboundCommRecipient original) :
|
||||
this(
|
||||
public BasicOutboundCommRecipient (BasicOutboundCommRecipient original) :
|
||||
this (
|
||||
original.OutboundCommRecipientId, original.OutboundCommId, original.PersonId, original.Open,
|
||||
original.Success, original.FailReason)
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Swarmops.Basic.Types.Financial
|
||||
[Serializable]
|
||||
public class BasicCashAdvance : IHasIdentity
|
||||
{
|
||||
public BasicCashAdvance(int cashAdvanceId, int organizationId, int personId, DateTime createdDateTime,
|
||||
public BasicCashAdvance (int cashAdvanceId, int organizationId, int personId, DateTime createdDateTime,
|
||||
int createdByPersonId,
|
||||
int financialAccountId, Int64 amountCents, string description, bool open, bool attested,
|
||||
bool paidOut, int attestedByPersonId, DateTime attestedDateTime)
|
||||
@@ -26,8 +26,8 @@ namespace Swarmops.Basic.Types.Financial
|
||||
AttestedDateTime = attestedDateTime;
|
||||
}
|
||||
|
||||
public BasicCashAdvance(BasicCashAdvance original) :
|
||||
this(
|
||||
public BasicCashAdvance (BasicCashAdvance original) :
|
||||
this (
|
||||
original.CashAdvanceId, original.OrganizationId, original.PersonId, original.CreatedDateTime,
|
||||
original.CreatedByPersonId,
|
||||
original.BudgetId, original.AmountCents, original.Description, original.Open, original.Attested,
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types.Financial
|
||||
{
|
||||
public class BasicFinancialAccount : IHasIdentity
|
||||
{
|
||||
public BasicFinancialAccount(int financialAccountId, string name, FinancialAccountType accountType,
|
||||
public BasicFinancialAccount (int financialAccountId, string name, FinancialAccountType accountType,
|
||||
int organizationId, int parentFinancialAccountId, int ownerPersonId,
|
||||
bool open, int openedYear, int closedYear, bool active, bool expensable,
|
||||
bool administrative, int linkBackward, int linkForward)
|
||||
@@ -26,8 +26,8 @@ namespace Swarmops.Basic.Types.Financial
|
||||
LinkForward = linkForward;
|
||||
}
|
||||
|
||||
public BasicFinancialAccount(BasicFinancialAccount original) :
|
||||
this(
|
||||
public BasicFinancialAccount (BasicFinancialAccount original) :
|
||||
this (
|
||||
original.Identity, original.Name, original.AccountType, original.OrganizationId,
|
||||
original.ParentFinancialAccountId, original.OwnerPersonId, original.Open, original.OpenedYear,
|
||||
original.ClosedYear, original.Active, original.Expensable, original.Administrative, original.LinkBackward,
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Swarmops.Basic.Types.Financial
|
||||
{
|
||||
public class BasicFinancialAccountRow
|
||||
{
|
||||
public BasicFinancialAccountRow(int financialAccountId, int financialTransactionId, DateTime dateTime,
|
||||
public BasicFinancialAccountRow (int financialAccountId, int financialTransactionId, DateTime dateTime,
|
||||
string comment, Int64 amountCents, DateTime rowDateTime, int rowCreatedByPersonId)
|
||||
{
|
||||
FinancialAccountId = financialAccountId;
|
||||
@@ -16,8 +16,8 @@ namespace Swarmops.Basic.Types.Financial
|
||||
RowCreatedByPersonId = rowCreatedByPersonId;
|
||||
}
|
||||
|
||||
public BasicFinancialAccountRow(BasicFinancialAccountRow original)
|
||||
: this(
|
||||
public BasicFinancialAccountRow (BasicFinancialAccountRow original)
|
||||
: this (
|
||||
original.FinancialAccountId, original.FinancialTransactionId, original.TransactionDateTime,
|
||||
original.Description,
|
||||
original.AmountCents, original.RowDateTime, original.RowCreatedByPersonId)
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Swarmops.Basic.Types.Financial
|
||||
/// </summary>
|
||||
public class BasicFinancialDependency
|
||||
{
|
||||
public BasicFinancialDependency(int objectId, FinancialDependencyType dependencyType, int foreignId)
|
||||
public BasicFinancialDependency (int objectId, FinancialDependencyType dependencyType, int foreignId)
|
||||
{
|
||||
ObjectId = objectId;
|
||||
DependencyType = dependencyType;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Swarmops.Basic.Types.Financial
|
||||
private readonly int organizationId;
|
||||
private string description;
|
||||
|
||||
public BasicFinancialTransaction(int financialTransactionId, int organizationId, DateTime dateTime,
|
||||
public BasicFinancialTransaction (int financialTransactionId, int organizationId, DateTime dateTime,
|
||||
string description, string importHash)
|
||||
{
|
||||
this.financialTransactionId = financialTransactionId;
|
||||
@@ -21,8 +21,8 @@ namespace Swarmops.Basic.Types.Financial
|
||||
this.importHash = importHash;
|
||||
}
|
||||
|
||||
public BasicFinancialTransaction(BasicFinancialTransaction original) :
|
||||
this(
|
||||
public BasicFinancialTransaction (BasicFinancialTransaction original) :
|
||||
this (
|
||||
original.financialTransactionId, original.organizationId, original.dateTime, original.description,
|
||||
original.importHash)
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types.Financial
|
||||
{
|
||||
public class BasicFinancialTransactionRow : IHasIdentity
|
||||
{
|
||||
public BasicFinancialTransactionRow(int financialTransactionRowId, int financialAccountId,
|
||||
public BasicFinancialTransactionRow (int financialTransactionRowId, int financialAccountId,
|
||||
int financialTransactionId, Int64 amountCents, DateTime createdDateTime, int createdByPersonId)
|
||||
{
|
||||
FinancialTransactionRowId = financialTransactionRowId;
|
||||
@@ -16,8 +16,8 @@ namespace Swarmops.Basic.Types.Financial
|
||||
CreatedByPersonId = createdByPersonId;
|
||||
}
|
||||
|
||||
public BasicFinancialTransactionRow(BasicFinancialTransactionRow original)
|
||||
: this(
|
||||
public BasicFinancialTransactionRow (BasicFinancialTransactionRow original)
|
||||
: this (
|
||||
original.FinancialTransactionRowId, original.FinancialAccountId, original.FinancialTransactionId,
|
||||
original.AmountCents, original.CreatedDateTime, original.CreatedByPersonId)
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Swarmops.Basic.Types.Financial
|
||||
{
|
||||
public class BasicFinancialTransactionTagSet : IHasIdentity
|
||||
{
|
||||
public BasicFinancialTransactionTagSet(int financialTransactionTagSetId, int financialTransactionTagSetTypeId,
|
||||
public BasicFinancialTransactionTagSet (int financialTransactionTagSetId, int financialTransactionTagSetTypeId,
|
||||
int organizationId, int order, bool allowUntagged, int visibilityLevel, int profitLossType)
|
||||
{
|
||||
FinancialTransactionTagSetId = financialTransactionTagSetId;
|
||||
@@ -16,8 +16,8 @@ namespace Swarmops.Basic.Types.Financial
|
||||
ProfitLossType = profitLossType;
|
||||
}
|
||||
|
||||
public BasicFinancialTransactionTagSet(BasicFinancialTransactionTagSet original) :
|
||||
this(
|
||||
public BasicFinancialTransactionTagSet (BasicFinancialTransactionTagSet original) :
|
||||
this (
|
||||
original.FinancialTransactionTagSetId, original.FinancialTransactionTagSetTypeId, original.OrganizationId,
|
||||
original.Order, original.AllowUntagged, original.VisibilityLevel, original.ProfitLossType)
|
||||
{
|
||||
|
||||
@@ -4,14 +4,14 @@ namespace Swarmops.Basic.Types.Financial
|
||||
{
|
||||
public class BasicFinancialTransactionTagSetType : IHasIdentity
|
||||
{
|
||||
public BasicFinancialTransactionTagSetType(int financialTransactionTagSetTypeId, string resourceName)
|
||||
public BasicFinancialTransactionTagSetType (int financialTransactionTagSetTypeId, string resourceName)
|
||||
{
|
||||
FinancialTransactionTagSetTypeId = financialTransactionTagSetTypeId;
|
||||
ResourceName = resourceName;
|
||||
}
|
||||
|
||||
public BasicFinancialTransactionTagSetType(BasicFinancialTransactionTagSetType original) :
|
||||
this(original.FinancialTransactionTagSetTypeId, original.ResourceName)
|
||||
public BasicFinancialTransactionTagSetType (BasicFinancialTransactionTagSetType original) :
|
||||
this (original.FinancialTransactionTagSetTypeId, original.ResourceName)
|
||||
{
|
||||
// copy ctor
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Swarmops.Basic.Types.Financial
|
||||
{
|
||||
public class BasicFinancialTransactionTagType : IHasIdentity
|
||||
{
|
||||
public BasicFinancialTransactionTagType(int financialTransactionTagTypeId,
|
||||
public BasicFinancialTransactionTagType (int financialTransactionTagTypeId,
|
||||
int parentFinancialTransactionTagTypeId, int financialTransactionTagSetId, string name, bool active,
|
||||
int openedYear, int closedYear)
|
||||
{
|
||||
@@ -17,8 +17,8 @@ namespace Swarmops.Basic.Types.Financial
|
||||
ClosedYear = closedYear;
|
||||
}
|
||||
|
||||
public BasicFinancialTransactionTagType(BasicFinancialTransactionTagType original) :
|
||||
this(
|
||||
public BasicFinancialTransactionTagType (BasicFinancialTransactionTagType original) :
|
||||
this (
|
||||
original.FinancialTransactionTagTypeId, original.ParentFinancialTransactionTagTypeId,
|
||||
original.FinancialTransactionTagSetId, original.Name, original.Active, original.OpenedYear,
|
||||
original.ClosedYear)
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Swarmops.Basic.Types.Financial
|
||||
{
|
||||
public class BasicFinancialValidation : IHasIdentity
|
||||
{
|
||||
public BasicFinancialValidation(int financialValidationId, FinancialValidationType validationType, int personId,
|
||||
public BasicFinancialValidation (int financialValidationId, FinancialValidationType validationType, int personId,
|
||||
DateTime dateTime, FinancialDependencyType dependencyType, int foreignId)
|
||||
{
|
||||
FinancialValidationId = financialValidationId;
|
||||
@@ -17,8 +17,8 @@ namespace Swarmops.Basic.Types.Financial
|
||||
ForeignId = foreignId;
|
||||
}
|
||||
|
||||
public BasicFinancialValidation(BasicFinancialValidation original)
|
||||
: this(
|
||||
public BasicFinancialValidation (BasicFinancialValidation original)
|
||||
: this (
|
||||
original.Identity, original.ValidationType, original.PersonId, original.DateTime,
|
||||
original.DependencyType, original.ForeignId)
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types.Governance
|
||||
{
|
||||
public class BasicMeeting : IHasIdentity
|
||||
{
|
||||
public BasicMeeting(int meetingId, int organizationId, string name, DateTime motionSubmissionEnds,
|
||||
public BasicMeeting (int meetingId, int organizationId, string name, DateTime motionSubmissionEnds,
|
||||
DateTime amendmentSubmissionEnds, DateTime amendmentVotingStarts, DateTime amendmentVotingEnds,
|
||||
DateTime motionVotingStarts, DateTime motionVotingEnds)
|
||||
{
|
||||
@@ -20,8 +20,8 @@ namespace Swarmops.Basic.Types.Governance
|
||||
MotionVotingEnds = motionVotingEnds;
|
||||
}
|
||||
|
||||
public BasicMeeting(BasicMeeting original) :
|
||||
this(
|
||||
public BasicMeeting (BasicMeeting original) :
|
||||
this (
|
||||
original.MeetingId, original.OrganizationId, original.Name, original.MotionSubmissionEnds,
|
||||
original.AmendmentSubmissionEnds, original.AmendmentVotingStarts, original.AmendmentVotingEnds,
|
||||
original.MotionVotingStarts, original.MotionVotingEnds)
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types.Governance
|
||||
{
|
||||
public class BasicMotion : IHasIdentity
|
||||
{
|
||||
public BasicMotion(int motionId, int meetingId, int sequenceNumber, string designation, int submittedByPersonId,
|
||||
public BasicMotion (int motionId, int meetingId, int sequenceNumber, string designation, int submittedByPersonId,
|
||||
int createdByPersonId, DateTime createdDateTime, bool amended, int amendedByPersonId,
|
||||
DateTime amendedDateTime, string title, string text, string amendedText, string decisionPoints,
|
||||
string amendedDecisionPoints, string threadUrl, bool open, bool carried)
|
||||
@@ -30,8 +30,8 @@ namespace Swarmops.Basic.Types.Governance
|
||||
Carried = carried;
|
||||
}
|
||||
|
||||
public BasicMotion(BasicMotion original) :
|
||||
this(
|
||||
public BasicMotion (BasicMotion original) :
|
||||
this (
|
||||
original.MotionId, original.MeetingId, original.SequenceNumber, original.Designation,
|
||||
original.SubmittedByPersonId, original.CreatedByPersonId, original.CreatedDateTime, original.Amended,
|
||||
original.AmendedByPersonId, original.AmendedDateTime, original.Title, original.Text, original.AmendedText,
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Swarmops.Basic.Types.Governance
|
||||
{
|
||||
public class BasicMotionAmendment : IHasIdentity
|
||||
{
|
||||
public BasicMotionAmendment(int motionAmendmentId, int motionId, int sequenceNumber, int submittedByPersonId,
|
||||
public BasicMotionAmendment (int motionAmendmentId, int motionId, int sequenceNumber, int submittedByPersonId,
|
||||
int createdByPersonId, DateTime createdDateTime, string title, string text, string decisionPoint, bool open,
|
||||
bool carried)
|
||||
{
|
||||
@@ -22,8 +22,8 @@ namespace Swarmops.Basic.Types.Governance
|
||||
Carried = carried;
|
||||
}
|
||||
|
||||
public BasicMotionAmendment(BasicMotionAmendment original) :
|
||||
this(
|
||||
public BasicMotionAmendment (BasicMotionAmendment original) :
|
||||
this (
|
||||
original.MotionAmendmentId, original.MotionId, original.SequenceNumber, original.SubmittedByPersonId,
|
||||
original.CreatedByPersonId, original.CreatedDateTime, original.Title, original.Text, original.DecisionPoint,
|
||||
original.Open, original.Carried)
|
||||
|
||||
@@ -13,13 +13,13 @@ namespace Swarmops.Basic.Types.Security
|
||||
public readonly int PersonId;
|
||||
public readonly BasicPersonRole[] SystemPersonRoles;
|
||||
|
||||
public BasicAuthority(int personId, BasicPersonRole[] systemPersonRoles,
|
||||
public BasicAuthority (int personId, BasicPersonRole[] systemPersonRoles,
|
||||
BasicPersonRole[] organizationPersonRoles,
|
||||
BasicPersonRole[] nodePersonRoles)
|
||||
{
|
||||
if (personId < 1)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException("PersonId cannot be " + personId);
|
||||
throw new ArgumentOutOfRangeException ("PersonId cannot be " + personId);
|
||||
}
|
||||
|
||||
this.PersonId = personId;
|
||||
@@ -47,13 +47,13 @@ namespace Swarmops.Basic.Types.Security
|
||||
this.SystemPersonRoles.Length + this.OrganizationPersonRoles.Length + this.LocalPersonRoles.Length];
|
||||
|
||||
if (this.SystemPersonRoles.Length > 0)
|
||||
this.SystemPersonRoles.CopyTo(this.AllPersonRoles, 0);
|
||||
this.SystemPersonRoles.CopyTo (this.AllPersonRoles, 0);
|
||||
|
||||
if (this.OrganizationPersonRoles.Length > 0)
|
||||
this.OrganizationPersonRoles.CopyTo(this.AllPersonRoles, this.SystemPersonRoles.Length);
|
||||
this.OrganizationPersonRoles.CopyTo (this.AllPersonRoles, this.SystemPersonRoles.Length);
|
||||
|
||||
if (this.LocalPersonRoles.Length > 0)
|
||||
this.LocalPersonRoles.CopyTo(this.AllPersonRoles,
|
||||
this.LocalPersonRoles.CopyTo (this.AllPersonRoles,
|
||||
this.SystemPersonRoles.Length + this.OrganizationPersonRoles.Length);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Xml;
|
||||
using System.Xml.Schema;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
[XmlRoot("dictionary")]
|
||||
[XmlRoot ("dictionary")]
|
||||
public class SerializableDictionary<TKey, TValue>
|
||||
: Dictionary<TKey, TValue>, IXmlSerializable
|
||||
{
|
||||
@@ -14,10 +14,10 @@ public class SerializableDictionary<TKey, TValue>
|
||||
return null;
|
||||
}
|
||||
|
||||
public void ReadXml(XmlReader reader)
|
||||
public void ReadXml (XmlReader reader)
|
||||
{
|
||||
XmlSerializer keySerializer = new XmlSerializer(typeof (TKey));
|
||||
XmlSerializer valueSerializer = new XmlSerializer(typeof (TValue));
|
||||
XmlSerializer keySerializer = new XmlSerializer (typeof (TKey));
|
||||
XmlSerializer valueSerializer = new XmlSerializer (typeof (TValue));
|
||||
|
||||
bool wasEmpty = reader.IsEmptyElement;
|
||||
reader.Read();
|
||||
@@ -27,17 +27,17 @@ public class SerializableDictionary<TKey, TValue>
|
||||
|
||||
while (reader.NodeType != XmlNodeType.EndElement)
|
||||
{
|
||||
reader.ReadStartElement("item");
|
||||
reader.ReadStartElement ("item");
|
||||
|
||||
reader.ReadStartElement("key");
|
||||
TKey key = (TKey) keySerializer.Deserialize(reader);
|
||||
reader.ReadStartElement ("key");
|
||||
TKey key = (TKey) keySerializer.Deserialize (reader);
|
||||
reader.ReadEndElement();
|
||||
|
||||
reader.ReadStartElement("value");
|
||||
TValue value = (TValue) valueSerializer.Deserialize(reader);
|
||||
reader.ReadStartElement ("value");
|
||||
TValue value = (TValue) valueSerializer.Deserialize (reader);
|
||||
reader.ReadEndElement();
|
||||
|
||||
Add(key, value);
|
||||
Add (key, value);
|
||||
|
||||
reader.ReadEndElement();
|
||||
reader.MoveToContent();
|
||||
@@ -45,22 +45,22 @@ public class SerializableDictionary<TKey, TValue>
|
||||
reader.ReadEndElement();
|
||||
}
|
||||
|
||||
public void WriteXml(XmlWriter writer)
|
||||
public void WriteXml (XmlWriter writer)
|
||||
{
|
||||
XmlSerializer keySerializer = new XmlSerializer(typeof (TKey));
|
||||
XmlSerializer valueSerializer = new XmlSerializer(typeof (TValue));
|
||||
XmlSerializer keySerializer = new XmlSerializer (typeof (TKey));
|
||||
XmlSerializer valueSerializer = new XmlSerializer (typeof (TValue));
|
||||
|
||||
foreach (TKey key in Keys)
|
||||
{
|
||||
writer.WriteStartElement("item");
|
||||
writer.WriteStartElement ("item");
|
||||
|
||||
writer.WriteStartElement("key");
|
||||
keySerializer.Serialize(writer, key);
|
||||
writer.WriteStartElement ("key");
|
||||
keySerializer.Serialize (writer, key);
|
||||
writer.WriteEndElement();
|
||||
|
||||
writer.WriteStartElement("value");
|
||||
writer.WriteStartElement ("value");
|
||||
TValue value = this[key];
|
||||
valueSerializer.Serialize(writer, value);
|
||||
valueSerializer.Serialize (writer, value);
|
||||
writer.WriteEndElement();
|
||||
|
||||
writer.WriteEndElement();
|
||||
|
||||
Reference in New Issue
Block a user