common/Hardware/WaterMeter/Genesis/Applications/FileApplications.cs
2026-04-23 17:50:07 +02:00

84 lines
2.3 KiB
C#

using System;
using System.Collections.Generic;
namespace Xylem.Common.Hardware.WaterMeter.Genesis.Applications
{
/// <summary>
/// File FW and application information
/// </summary>
public class FileApplications
{
/// <summary>
/// Name of application
/// </summary>
public String AppName;
/// <summary>
/// File name of the file system where the binaries are stored
/// </summary>
public String BinaryFilename;
/// <summary>
/// File name of the meter including the "1\\upg" string and the AppId as hexadecimal 2 digits
/// </summary>
public String MeterFilename;
/// <summary>
/// Ctor file applications
/// </summary>
/// <param name="binaryFilename"></param>
public FileApplications(String binaryFilename)
{
BinaryFilename = binaryFilename;
}
/// <summary>
/// Identification number of application
/// </summary>
public Byte AppId;
/// <summary>
/// Version of application
/// </summary>
public UInt32 Version;
/// <summary>
/// Version string of application because of FLEXNETVERSION
/// does return a different layout, instead of decimals it
/// used hexadecimals. Therefore the version has to be saved as
/// string at time of receiving for the FW-Update comparison
/// </summary>
public String StrVersion;
/// <summary>
/// Check of application for verification
/// </summary>
public UInt16 Crc;
/// <summary>
/// Validation of application
/// </summary>
public Boolean IsValid;
/// <summary>
/// Binary file content
/// </summary>
public List<Byte> BinData = new List<Byte>();
/// <summary>
/// Actual part if file is going to be partitioned
/// </summary>
public Int32 Part = 0;
/// <summary>
/// Number of parts for entire file if partitioned
/// </summary>
public Int32 Parts = 1;
/// <summary>
/// Meter file offset if file is partitioned
/// </summary>
public Int32 MeterFileOffset = 0;
}
}