FileDownloadResponse
class FileDownloadResponse
This type represents Relativity.Distributed response for the file download request.
using System;
namespace Relativity.DataExchange.Service.RelativityDistributed
{
internal class FileDownloadResponse
{
public bool IsSuccess { get; }
public RelativityDistributedErrorType ErrorType { get; }
public Exception Exception { get; }
public FileDownloadResponse()
{
IsSuccess = true;
ErrorType = RelativityDistributedErrorType.Unknown;
}
public FileDownloadResponse(RelativityDistributedErrorType errorType)
: this(errorType, null)
{
}
public FileDownloadResponse(RelativityDistributedErrorType errorType, Exception exception)
{
IsSuccess = false;
ErrorType = errorType;
Exception = exception;
}
}
}