common/Logic.PrdoctionToProductMapper/Files/Fw/FilePart.cs
2026-04-23 17:50:07 +02:00

42 lines
1.2 KiB
C#

using System;
namespace Logic.ProductionToProductMapper.Files.Fw
{
/// <summary>
/// Serialized files
/// </summary>
[Serializable]
public class FilePart
{
/// <summary>
/// The name of the parent file
/// </summary>
public Int32 ParentFileId { get; set; }
/// <summary>
/// The file id
/// </summary>
public Int32 FileId { get; set; }
/// <summary>
/// The name of the file without any path information
/// </summary>
public String FileName { get; set; }
/// <summary>
/// Location of file from base path (e.g the FwUpdateSw has a subfolder for language [de]
/// </summary>
public String SubDirectory { get; set; }
/// <summary>
/// Data stream
/// </summary>
public Byte[] FileContent { get; set; }
/// <summary>
/// Length of data stream for comparison of length at data exchange
/// </summary>
public Int32 FileContentLength { get; set; }
/// <summary>
/// Checksum of data stream for comparison of length at data exchange
/// </summary>
public UInt16 FileContentCrc16CcittMsb { get; set; }
}
}