HttpTransferPathData
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
namespace Relativity.Transfer.Http
{
public sealed class HttpTransferPathData
{
public const string HttpTransferPathDataKey = "HttpTransferPathData";
public int ArtifactId { get; set; }
public string RemoteGuid { get; set; }
public int FileFieldArtifactId { get; set; }
public int FileId { get; set; }
[SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "long", Justification = "The Relativity long text field.")]
public int LongTextFieldArtifactId { get; set; }
public ExportType ExportType { get; set; }
public HttpTransferPathData()
{
ArtifactId = 0;
RemoteGuid = string.Empty;
FileFieldArtifactId = 0;
FileId = 0;
LongTextFieldArtifactId = 0;
ExportType = ExportType.NativeFile;
}
public static HttpTransferPathData GetData(TransferPath transferPath)
{
if (transferPath == (TransferPath)null)
throw new ArgumentNullException("transferPath");
IReadOnlyDictionary<string, object> data = transferPath.Data;
if (data != null && data.ContainsKey("HttpTransferPathData"))
return data["HttpTransferPathData"] as HttpTransferPathData;
return null;
}
}
}