internal static EntityEquipmentSensorCBRNAP2Ce Convert(AP2Ce input) { EntityEquipmentSensorCBRNAP2Ce output = new EntityEquipmentSensorCBRNAP2Ce(); output.ExternalId = input.Id; output.Name = input.Name; output.Description = input.Description; //output.SensorData = Convert(input.Data); return output; }
internal static AP2Ce Convert(EntityEquipmentSensorCBRNAP2Ce input) { AP2Ce output = new AP2Ce(); output.Id = input.ExternalId; output.Name = input.Name; output.Description = input.Description; output.Position = null; // TODO: Get from parent (input.Parent) //output.Data = Convert(input.SensorData); //output.DetectionMode = (LCDDetectionMode)Enum.Parse(typeof(LCDDetectionMode), input.DetectionMode.ToString()); //output.State = Convert(input.SensorState); return output; }
public void CreateAP2Ce(AP2Ce ap2ce) { EntityEquipmentSensorCBRNAP2Ce wap2ce = Converter.Convert(ap2ce); wap2ce.CreateInstance(_sink, _hDatabase); // TODO: how do we choose the id? maybe leave it out and let the class handle it? wap2ce.AddToDatabase(_hDatabase); }
public void UpdateAP2Ce(AP2Ce ap2ce) { }