using System; namespace Xylem.Common.Logic.ProductionOrderCore { /// /// Source for final properties of Cordonel /// public enum ProgrammingSource { Vako, Csd, Order } /// /// Values for single registers /// public class ProgrammingParameters { /// /// Single register setup value assignment /// /// /// /// public ProgrammingParameters(String registerName, Byte[] registerValue, ProgrammingSource programmingSource = ProgrammingSource.Vako) { RegisterName = registerName; RegisterValue = registerValue; Source = programmingSource; } /// /// The register name /// public String RegisterName { get; } /// /// The register value converted to raw bytes by register converter /// public Byte[] RegisterValue { get; } /// /// The data source either VAKO, CSD or order based with priorities: /// - lowest: VAKO /// - middle: CSD /// - highest: Order /// /// ATTENTION: DO NOT REMOVE setter as the Json.Serialize will NOT operate and always set the /// default (ProgrammingSource.Vako) causing malfunction!!!!! /// /// // ReSharper disable once AutoPropertyCanBeMadeGetOnly.Global // ATTENTION: DO NOT REMOVE (see comment in description) public ProgrammingSource Source { get; set; } } }