download and open files from the cloud

This commit is contained in:
Branislav Stojkovic
2016-10-23 17:06:28 +02:00
parent 3c4b4adfb4
commit 81a0ff1d44
12 changed files with 329 additions and 246 deletions
@@ -158,5 +158,5 @@ public interface ServiceAPI {
/**
* @return a {@link List} of available sortings.
*/
List<String> getAvailableSortings();
List<String> getSortings();
}
@@ -247,6 +247,14 @@ public class CloudPresenter {
throw new CloudException(e);
}
}
public String[] getSortings() throws CloudException {
try {
return service.getSortings().toArray(new String[0]);
} catch (Exception e) {
throw new CloudException(e);
}
}
private String getMachineId() {
if (machineId == null) {