using System;
using Xylem.Common.Hardware.WaterMeter.Genesis.Applications.Const;
namespace Xylem.Common.Hardware.WaterMeter.Genesis.Applications
{
///
/// Meter FW and application information
///
public class MeterApplications
{
///
/// Name of application
///
public String AppName;
///
/// Identification number of application
///
///
/// - AppId from Byte to UInt16 including typecast for Byte[] return. To external, it will be used as Byte
/// as before this change. But being able to parse the configuration.json with OPTICALINTERFACE using the
/// AppId 256, which exceeds the byte range as this isn't a real application, but will be used to identify
/// the interface (configuration.json) version.
///
public UInt16 AppId;
///
/// Version of application
///
public UInt32 Version;
///
/// Version string of application because of FLEXNETVERSION does return a different layout, instead of decimals
/// it uses 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;
///
/// Check if application is installed
///
public Boolean IsInstalled;
///
/// Update this version
///
public Boolean Update;
///
/// Erase this version
///
public Boolean Erase;
///
/// Status text
///
public MeterAppState Status;
}
}