MetaDocument
using kCura.WinEDDS.Api;
using Relativity.DataExchange.Io;
using System.Runtime.CompilerServices;
namespace kCura.WinEDDS
{
public class MetaDocument
{
private string _fileGuid;
private string _identityValue;
private bool _indexFileInDB;
private string _filename;
private string _fullFilePath;
private bool _uploadFile;
private int _lineNumber;
private int _parentFolderID;
private ArtifactFieldCollection _record;
private IFileTypeInfo _fileTypeInfo;
private long _lineStatus;
private string _destinationVolume;
[CompilerGenerated]
private string _FolderPath;
[CompilerGenerated]
private string _DataGridID;
public string DestinationVolume {
get {
return _destinationVolume;
}
set {
_destinationVolume = value;
}
}
public string FileGuid {
get {
return _fileGuid;
}
set {
_fileGuid = value;
}
}
public string IdentityValue {
get {
return _identityValue;
}
set {
_identityValue = value;
}
}
public bool IndexFileInDB {
get {
return _indexFileInDB;
}
set {
_indexFileInDB = value;
}
}
public string Filename {
get {
return _filename;
}
set {
_filename = value;
}
}
public bool UploadFile {
get {
return _uploadFile;
}
set {
_uploadFile = value;
}
}
public int LineNumber {
get {
return _lineNumber;
}
set {
_lineNumber = value;
}
}
public int ParentFolderID {
get {
return _parentFolderID;
}
set {
_parentFolderID = value;
}
}
public ArtifactFieldCollection Record {
get {
return _record;
}
set {
_record = value;
}
}
public string FullFilePath {
get {
return _fullFilePath;
}
set {
_fullFilePath = value;
}
}
public IFileTypeInfo FileTypeInfo {
get {
return _fileTypeInfo;
}
set {
_fileTypeInfo = value;
}
}
public long LineStatus {
get {
return _lineStatus;
}
set {
_lineStatus = value;
}
}
public string FolderPath { get; set; }
public string DataGridID { get; set; }
public MetaDocument(string fileGuid, string identityValue, bool indexFileInDB, string filename, string fullFilePath, bool uploadFile, int lineNumber, int parentFolderID, ArtifactFieldCollection record, IFileTypeInfo fileTypeInfo, long lineStatus, string destinationVolume, string folderPath, string dataGridID)
{
_fileGuid = fileGuid;
_identityValue = identityValue;
_indexFileInDB = indexFileInDB;
_filename = filename;
_fullFilePath = fullFilePath;
_uploadFile = uploadFile;
_lineNumber = lineNumber;
_parentFolderID = parentFolderID;
_record = record;
_fileTypeInfo = fileTypeInfo;
_lineStatus = lineStatus;
_destinationVolume = destinationVolume;
FolderPath = folderPath;
DataGridID = dataGridID;
}
public string GetFileType()
{
if (FileTypeInfo != null)
return FileTypeInfo.Description;
return "Unknown format";
}
}
}