namespace Resumable.Models
{
public class ResumableConfiguration
{
///
/// Gets or sets number of expected chunks in this upload.
///
public int Chunks { get; set; }
///
/// Gets or sets unique identifier for current upload.
///
public string Identifier { get; set; }
///
/// Gets or sets file name.
///
public string FileName { get; set; }
public ResumableConfiguration()
{
}
///
/// Creates an object with file upload configuration.
///
/// Upload unique identifier.
/// File name.
/// Number of file chunks.
/// File upload configuration.
public static ResumableConfiguration Create(string identifier, string filename, int chunks)
{
return new ResumableConfiguration { Identifier = identifier, FileName = filename, Chunks = chunks };
}
}
}