diff options
author | desperateCoder <admin@life-style-art.de> | 2019-09-15 18:23:17 +0300 |
---|---|---|
committer | desperateCoder <admin@life-style-art.de> | 2019-09-15 18:24:35 +0300 |
commit | 76ffea7705b13b027edccf64748f880e5e16fbcc (patch) | |
tree | 4b52542466b1d231b3de11bdc2c6169f2e6a1095 /app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters | |
parent | 7c8ce87caab83e00bd6c3ae35fbccd03b5c34981 (diff) |
started implementing reorder
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/ServerAdapter.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/ServerAdapter.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/ServerAdapter.java index b182dd60b..f35764239 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/ServerAdapter.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/ServerAdapter.java @@ -205,6 +205,8 @@ public class ServerAdapter { RequestHelper.request(sourceActivity, provider, () -> provider.getDeckAPI().updateLabel(boardId, label.getId(), label), responseCallback); } - public void reorder(Long accountId, FullCard movedCard, long newStackId, int newPosition) { - } + public void reorder(Long boardId, FullCard movedCard, long newStackId, int newPosition, IResponseCallback<List<FullCard>> responseCallback) { + ensureInternetConnection(); + RequestHelper.request(sourceActivity, provider, () -> provider.getDeckAPI().moveCard(boardId, movedCard.getCard().getStackId(), movedCard.getCard().getId(), (int)newStackId, newPosition), responseCallback); +} } |