52 lines
1.4 KiB
C#
52 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Xylem.ServiceFwUpdate.Common.FwUpdateSafe.MeterRecovery
|
|
{
|
|
public class RecoverySettings
|
|
{
|
|
|
|
/// <summary>
|
|
/// Null if check in not necessary if is an number check it agianst the pcbid from meter
|
|
/// </summary>
|
|
public int? PcbID { get; set; }
|
|
/// <summary>
|
|
/// Null if check in not necessary if is an number check it agianst the radio FRQ
|
|
/// </summary>
|
|
public int? RadioFrequencyMhz { get; set; }
|
|
/// <summary>
|
|
/// Null till meter handels regions
|
|
/// </summary>
|
|
public string Region { get; set; } = null;
|
|
/// <summary>
|
|
/// Null till meter handels 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; }
|
|
|
|
public string GenerateFileName()
|
|
{
|
|
return $"{PcbID}_{RadioFrequencyMhz}_{Region}_{Release}.config";
|
|
|
|
}
|
|
}
|
|
}
|