IREncoding Encoding { get ; set ; } public int CarrierFrequency { get ; set ; } public int DutyCycle { get ; set ; } public int Gap { get ; set ; } public int [] Header { get ; set ; } public byte [] CodeData { get ; set ; } public int MinRepeat { get ; set ; } public int [] One { get ; set ; } public int [] Repeat { get ; set ; } public int Trail { get ; set ; } public int [] Zero { get ; set ; } } } namespace Coding4Fun.MissionControl.API.Models { public class Set { public Set () { Commands = new List < Command >(); } public string Name { get ; set ; } public bool IsList { get ; set ; } public List < Command > Commands { get ; set ; } } } /// </summary> /// <param name="command">The command instance to be added.</param> /// <param name="targetSet">The name of the target set.</param> ///…