Moved BasicDocument to Basic.Structure
This commit is contained in:
+1
-1
@@ -92,7 +92,7 @@
|
||||
<Compile Include="Types\Swarm\BasicChurnDataPoint.cs" />
|
||||
<Compile Include="Types\Structure\BasicCity.cs" />
|
||||
<Compile Include="Types\Structure\BasicCountry.cs" />
|
||||
<Compile Include="Types\Common\BasicDocument.cs" />
|
||||
<Compile Include="Types\Structure\BasicDocument.cs" />
|
||||
<Compile Include="Types\Financial\BasicExpenseClaim.cs" />
|
||||
<Compile Include="Types\Security\BasicExternalCredential.cs" />
|
||||
<Compile Include="Types\Security\BasicExternalIdentity.cs" />
|
||||
|
||||
@@ -1,97 +0,0 @@
|
||||
using System;
|
||||
using Swarmops.Common.Enums;
|
||||
using Swarmops.Common.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; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ using System.Data;
|
||||
using System.Data.Common;
|
||||
using MySql.Data.MySqlClient;
|
||||
using Swarmops.Basic.Types;
|
||||
using Swarmops.Basic.Types.Common;
|
||||
using Swarmops.Basic.Types.Structure;
|
||||
using Swarmops.Common.Enums;
|
||||
|
||||
namespace Swarmops.Database
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using Swarmops.Basic.Types;
|
||||
using Swarmops.Basic.Types.Common;
|
||||
using Swarmops.Basic.Types.Structure;
|
||||
using Swarmops.Common.Enums;
|
||||
using Swarmops.Common.Interfaces;
|
||||
using Swarmops.Database;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Swarmops.Basic.Types;
|
||||
using Swarmops.Basic.Types.Common;
|
||||
using Swarmops.Basic.Types.Structure;
|
||||
using Swarmops.Common.Interfaces;
|
||||
using Swarmops.Database;
|
||||
using Swarmops.Logic.Swarm;
|
||||
|
||||
Reference in New Issue
Block a user