public SlaveInfo(ec_slave_info_t slaveIdentification, List <SlaveInfo> children) { this.Manufacturer = slaveIdentification.manufacturer; this.ProductCode = slaveIdentification.productCode; this.Revision = slaveIdentification.revision; this.OldCsa = slaveIdentification.oldCsa; this.Csa = slaveIdentification.csa; this.Children = children; this.Extensions = new List <SlaveExtension>(); }
public SlaveInfo(ec_slave_info_t slaveIdentification, List <SlaveInfo> childSet) { Contract.Requires(childSet != null, nameof(childSet)); this.Manufacturer = slaveIdentification.manufacturer; this.ProductCode = slaveIdentification.productCode; this.Revision = slaveIdentification.revision; this.OldCsa = slaveIdentification.oldCsa; this.Csa = slaveIdentification.csa; this.ChildSet = childSet; this.SlaveExtensionSet = new List <SlaveExtensionSettingsBase>(); }
public SlaveInfo(ec_slave_info_t slaveIdentification) : this(slaveIdentification, new List <SlaveInfo>()) { // }