示例#1
0
 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;
 }
示例#2
0
        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;
        }
示例#3
0
文件: Service.cs 项目: GULPF/SAAB-CM
 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);
 }
示例#4
0
文件: Service.cs 项目: GULPF/SAAB-CM
 public void UpdateAP2Ce(AP2Ce ap2ce)
 {
 }