public override void Init() { this.counter = 0; SensorDetailMessage detail = GetSensorDetail().message; this.binId = detail.currentPinAllocated.projectpinID; this.binName = detail.currentPinAllocated.name; this.binCategory = detail.currentPinAllocated.pinType.pinTypeName; this.latitude = detail.currentPinAllocated.latitude; this.longitude = detail.currentPinAllocated.longitude; this.depthWhenEmpty = detail.currentPinAllocated.pinType.depthWhenEmpty_cm; this.distanceSensorToFillLine = detail.currentPinAllocated.pinType.distanceSensorToFillLine_cm; }
public override void Init() { this.counter = 0; SensorDetailMessage detail = GetSensorDetail().message; // TODO check if file exists, throw exception this.binId = detail.currentPinAllocated.projectpinID; this.binName = detail.currentPinAllocated.name; this.binCategory = detail.currentPinAllocated.pinType.pinTypeName; this.latitude = detail.currentPinAllocated.latitude; this.longitude = detail.currentPinAllocated.longitude; this.depthWhenEmpty = detail.currentPinAllocated.pinType.depthWhenEmpty_cm; this.distanceSensorToFillLine = detail.currentPinAllocated.pinType.distanceSensorToFillLine_cm; this.data = GetSensorData().message.lists; // TODO check if file exists, throw exception }