FieldFileExportRequest
using kCura.WinEDDS.Exporters;
using Relativity.Transfer;
using Relativity.Transfer.Http;
namespace Relativity.DataExchange.Export.VolumeManagerV2.Download
{
public class FieldFileExportRequest : ExportRequest
{
public int FileId { get; }
public int FileFieldArtifactId { get; }
public FieldFileExportRequest(ObjectExportInfo artifact, int fileFieldArtifactId, string destinationLocation)
: base(artifact.ArtifactID, artifact.NativeSourceLocation, destinationLocation)
{
FileId = artifact.FileID;
FileFieldArtifactId = fileFieldArtifactId;
}
protected override TransferPath CreateTransferPath()
{
HttpTransferPathData val = new HttpTransferPathData();
val.set_ArtifactId(base.ArtifactId);
val.set_FileId(FileId);
val.set_FileFieldArtifactId(FileFieldArtifactId);
val.set_ExportType(2);
HttpTransferPathData data = val;
return ExportRequest.CreateTransferPath(base.ArtifactId, base.Order, base.SourceLocation, base.DestinationLocation, data);
}
}
}