akvo / akvo-caddisfly

Android app integrated with Akvo Flow
https://akvo.org/products/akvo-caddisfly/
GNU General Public License v3.0
12 stars 9 forks source link

Allow for multiple images to be returned with result #70

Closed nhternup closed 7 years ago

nhternup commented 8 years ago

The JSON image key format could be an array to allow for multiple images to be returned with result.

mtwestra commented 8 years ago

This means we will forward the following structures to the FLOW app:

In the intent, the image property will be an array of paths to images, in which the strings are escaped: ["\/storage\/emulated\/0\/Akvo Caddisfly\/result-images\/7416c217-b2b5-4670-8626-628dd16c2f05.png"]

In the answer, the image property is an array of image names: {"result":[{"name":"Total Chlorine (ppm)","value":10,"unit":"ppm","id":1},{"name":"Free Chlorine (ppm)","value":0.5,"unit":"ppm","id":2}],"type":"caddisfly","name":"Chlorine and Free Chlorine","uuid":"bf1c19c0-9788-4e26-999e-1b5c6ca28111","image":["5a59a588-056b-4750-99bb-fd655c7105bb.png"]}

mtwestra commented 8 years ago

We will handle this later.

nhternup commented 7 years ago

Not implementing as feature not required