43 lines
1.3 KiB
C#
43 lines
1.3 KiB
C#
using System;
|
|
|
|
namespace Xylem.Common.Hardware.WaterMeter.Genesis.Applications
|
|
{
|
|
/// <summary>
|
|
/// describe a genesis register.
|
|
/// need for read and write
|
|
/// all request protocols uses RegisterDefinition
|
|
/// </summary>
|
|
public class ApplicationDefinition
|
|
{
|
|
|
|
/// <summary>
|
|
/// name of the application
|
|
/// </summary>
|
|
public String AppName;
|
|
|
|
/// <summary>
|
|
/// address of application
|
|
/// </summary>
|
|
/// <remarks date="2025-Aug-05" author="Thomas Wiedebusch">
|
|
/// - 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.
|
|
/// </remarks>
|
|
public UInt16 AppId;
|
|
|
|
/// <summary>
|
|
/// version of the application
|
|
/// </summary>
|
|
public Int32? AppVersion;
|
|
|
|
/// <summary>
|
|
/// Get application name
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public String GetIdent()
|
|
{
|
|
return $"{AppName}";
|
|
}
|
|
}
|
|
} |