using System;
namespace ICD.Common.Utils.IO.Compression
{
///
/// Zip archive entry.
///
public sealed class IcdZipEntry
{
///
/// Gets or sets the name of a file or a directory.
///
public string Name { get; set; }
///
/// Gets or sets the comment.
///
public string Comment { get; set; }
///
/// Gets or sets the CRC32.
///
public uint Crc32 { get; set; }
///
/// Gets or sets the compressed size of the file.
///
public int CompressedSize { get; set; }
///
/// Gets or sets the original size of the file.
///
public int OriginalSize { get; set; }
///
/// Gets or sets a value indicating whether this is deflated.
///
public bool Deflated { get; set; }
///
/// Gets a value indicating whether this is a directory.
///
public bool IsDirectory { get { return Name.EndsWith("/"); } }
///
/// Gets or sets the timestamp.
///
public DateTime Timestamp { get; set; }
///
/// Gets a value indicating whether this is a file.
///
public bool IsFile { get { return !IsDirectory; } }
public int HeaderOffset { get; set; }
public int DataOffset { get; set; }
}
}