Skip to content
Snippets Groups Projects
Commit a18c1730 authored by Maximilian Betz's avatar Maximilian Betz
Browse files

added some TODOs and comments

parent 5a88e760
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,9 @@ class AddEvent extends StatelessWidget { ...@@ -19,6 +19,9 @@ class AddEvent extends StatelessWidget {
)); ));
} }
//TODO: add field validators for freetext fields. Check allowed characters in sensor.awi.de
//TODO: (Description, Label, Latitude, Longitude, Elevation, )
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
/* Get singletons to access relevant data here.*/ /* Get singletons to access relevant data here.*/
......
...@@ -16,17 +16,21 @@ void main() { ...@@ -16,17 +16,21 @@ void main() {
// Add some dummy devices // Add some dummy devices
// TODO: load from shared preferences.
// TODO: this shall be requested from sensor.awi.de after selecting a collection in configuration.
availableDevice.store.add(Device.fromJson({'id': 8311, 'urn':'station:neumayer_iii:awi_snow_sampler_1'})); availableDevice.store.add(Device.fromJson({'id': 8311, 'urn':'station:neumayer_iii:awi_snow_sampler_1'}));
availableDevice.store.add(Device.fromJson({'id': 4086, 'urn':'acoustic_backscatter_sensor:test'})); availableDevice.store.add(Device.fromJson({'id': 4086, 'urn':'acoustic_backscatter_sensor:test'}));
availableDevice.store.add(Device.fromJson({'id': 1393, 'urn':'vessel:polarstern:hydrosweep_ds3'}));
// Create current event as basis when starting add event widget // Fill the textboxes in addevent with some usefull data.
// TODO: store this in shared preferences so that last entered data reappears when restarting the app.
currentEvent.store.urn = 'acoustic_backscatter_sensor:test'; currentEvent.store.urn = 'acoustic_backscatter_sensor:test';
currentEvent.store.id = 1234; currentEvent.store.id = 1234;
currentEvent.store.description = 'blabla'; currentEvent.store.description = 'blabla';
currentEvent.store.label = 'PS129_ABC'; currentEvent.store.label = 'PS129_ABC';
currentEvent.store.type = 'Deployment'; currentEvent.store.type = 'Deployment';
//Add some dummy events to eventstore //Add some dummy events to eventstore. Just development purpose. TODO: Remove after development.
events.store.add(Event.fromJson({ events.store.add(Event.fromJson({
'id': 8311, 'id': 8311,
'urn': 'station:neumayer_iii:awi_snow_sampler_1', 'urn': 'station:neumayer_iii:awi_snow_sampler_1',
...@@ -60,7 +64,9 @@ void main() { ...@@ -60,7 +64,9 @@ void main() {
'status': 'PENDING' 'status': 'PENDING'
})); }));
//Add some dummy eventtypes. TODO: request from https://sensor.awi.de/rest/sensors/events/getAllEventTypes //Add some dummy eventtypes.
// TODO: loard from shared preferences.
// TODO: request from https://sensor.awi.de/rest/sensors/events/getAllEventTypes in configuration widget.
eventTypes.store.add(EventType.fromJson({'id': 317, 'name':'Configuration'})); eventTypes.store.add(EventType.fromJson({'id': 317, 'name':'Configuration'}));
eventTypes.store.add(EventType.fromJson({'id': 216, 'name':'Decommissioned'})); eventTypes.store.add(EventType.fromJson({'id': 216, 'name':'Decommissioned'}));
eventTypes.store.add(EventType.fromJson({'id': 187, 'name':'Deployment'})); eventTypes.store.add(EventType.fromJson({'id': 187, 'name':'Deployment'}));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment