56 lines
1.5 KiB
C#
56 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Xylem.ServiceFwUpdate.Common.FwUpdateSafe.MeterRecovery
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class RecoverySettings
|
|
{
|
|
|
|
/// <summary>
|
|
/// Null if check in not necessary if is an number check it agianst the pcbid from meter
|
|
/// </summary>
|
|
public Int32? PcbId { get; set; }
|
|
/// <summary>
|
|
/// Null if check in not necessary if is an number check it agianst the radio FRQ
|
|
/// </summary>
|
|
public Int32? RadioFrequencyMhz { get; set; }
|
|
/// <summary>
|
|
/// Null till meter handles regions
|
|
/// </summary>
|
|
public String Region { get; set; } = null;
|
|
/// <summary>
|
|
/// Null till meter handles regions
|
|
/// </summary>
|
|
public String Release { get; set; }
|
|
|
|
/// <summary>
|
|
/// User name
|
|
/// </summary>
|
|
public String ApproverName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
///null means not approved
|
|
/// </summary>
|
|
public DateTimeOffset? ApprovalDate { get; set; }
|
|
|
|
/// <summary>
|
|
/// List of registers to recover
|
|
/// </summary>
|
|
public List<RecoveryRegisterItem> RecoveryRegisters { get; set; }
|
|
|
|
/// <summary>
|
|
/// File name for this recovery register set
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public String GenerateFileName()
|
|
{
|
|
return $"{PcbId}_{RadioFrequencyMhz}_{Region}_{Release}.config";
|
|
|
|
}
|
|
}
|
|
}
|