private Gnarum.Gestensis.Core.Entities.Device getDevice(AdvanticMeasure advanticMeasure) { Gnarum.Gestensis.Core.Entities.TypeDevice typeDevice = getTypeDevice(); Gnarum.Gestensis.Core.Entities.Application application = getApplication(); Gnarum.Gestensis.Core.Entities.Manufacture manufacture = getManufacture(); return Gnarum.Gestensis.Core.Entities.Device.Create ( advanticMeasure.AdvanticSignal.Device.id.ToString(), typeDevice, advanticMeasure.AdvanticSignal.Device.Dispositivo, advanticMeasure.AdvanticSignal.Device.Dispositivo, true, application, manufacture, DateTime.UtcNow, "DVELASCO"); }
private Gnarum.Gestensis.Core.Entities.Signal getSignal(AdvanticMiddlewareParse word, AdvanticMeasure advanticMeasure) { Gnarum.Gestensis.Core.Entities.Device device = getDevice(advanticMeasure); Gnarum.Gestensis.Core.Entities.Source source = getSource(); Gnarum.Gestensis.Core.Entities.DataVariable datavariable = getDatavariable(advanticMeasure); Gnarum.Gestensis.Core.Entities.Resolution resolution = getResolution(); return Gnarum.Gestensis.Core.Entities.Signal.Create ( advanticMeasure.AdvanticSignal.Signal.id.ToString(), device, source, datavariable, resolution, advanticMeasure.AdvanticSignal.Signal.senal, advanticMeasure.AdvanticSignal.Signal.senal, true, 0, DateTime.UtcNow, "DVELASCO" ); }
private DataVariable getDatavariable(AdvanticMeasure advanticMeasure) { return DataVariable.Create("DatavariableId", "DatavariableName", "DatavariableDescription", advanticMeasure.Data.unit, true); }