using System;
using System.Collections.Generic;
namespace Xylem.Common.Hardware.WaterMeter.Genesis.Applications
{
///
/// File FW and application information
///
public class FileApplications
{
///
/// Name of application
///
public String AppName;
///
/// File name of the file system where the binaries are stored
///
public String BinaryFilename;
///
/// File name of the meter including the "1\\upg" string and the AppId as hexadecimal 2 digits
///
public String MeterFilename;
///
/// Ctor file applications
///
///
public FileApplications(String binaryFilename)
{
BinaryFilename = binaryFilename;
}
///
/// Identification number of application
///
public Byte AppId;
///
/// Version of application
///
public UInt32 Version;
///
/// 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
///
public String StrVersion;
///
/// Check of application for verification
///
public UInt16 Crc;
///
/// Validation of application
///
public Boolean IsValid;
///
/// Binary file content
///
public List BinData = new List();
///
/// Actual part if file is going to be partitioned
///
public Int32 Part = 0;
///
/// Number of parts for entire file if partitioned
///
public Int32 Parts = 1;
///
/// Meter file offset if file is partitioned
///
public Int32 MeterFileOffset = 0;
}
}