diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-07-15 16:13:14 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-07-15 16:13:14 +0300 |
commit | 23a8442bb8883991b0b951cb1660599d5dc14a9d (patch) | |
tree | f66defed36d2a4b3e706a674289319be4c39db7e /app/src/main/java/it/niedermann/nextcloud/deck/model | |
parent | 6c948e36df83c3200fb34d1e6f8fe79ebff7cd73 (diff) |
#573 Projects - Add initial model
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/model')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/model/ocs/projects/OcsProject.java | 14 | ||||
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/model/ocs/projects/OcsProjectResource.java | 16 |
2 files changed, 30 insertions, 0 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/model/ocs/projects/OcsProject.java b/app/src/main/java/it/niedermann/nextcloud/deck/model/ocs/projects/OcsProject.java new file mode 100644 index 000000000..a3fa45bd0 --- /dev/null +++ b/app/src/main/java/it/niedermann/nextcloud/deck/model/ocs/projects/OcsProject.java @@ -0,0 +1,14 @@ +package it.niedermann.nextcloud.deck.model.ocs.projects; + +import androidx.annotation.NonNull; + +import java.util.ArrayList; +import java.util.List; + +import it.niedermann.nextcloud.deck.model.interfaces.IRemoteEntity; + +public class OcsProject implements IRemoteEntity { + String name; + @NonNull + List<OcsProjectResource> resources = new ArrayList<>(); +} diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/model/ocs/projects/OcsProjectResource.java b/app/src/main/java/it/niedermann/nextcloud/deck/model/ocs/projects/OcsProjectResource.java new file mode 100644 index 000000000..a8a29b3c0 --- /dev/null +++ b/app/src/main/java/it/niedermann/nextcloud/deck/model/ocs/projects/OcsProjectResource.java @@ -0,0 +1,16 @@ +package it.niedermann.nextcloud.deck.model.ocs.projects; + +import androidx.annotation.Nullable; + +import it.niedermann.nextcloud.deck.model.interfaces.IRemoteEntity; + +public class OcsProjectResource implements IRemoteEntity { + String type; + String name; + String link; + String iconUrl; + @Nullable + String mimetype; + @Nullable + Boolean previewAvailable; +} |