From 5b708a2e87e2386072368dd509d986c84ebf1483 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Wed, 22 May 2024 20:17:45 +0200 Subject: [PATCH] fix: Move to EmptyResponse instead off now unsupported Void Signed-off-by: Andy Scherzinger --- .../niedermann/owncloud/notes/persistence/sync/NotesAPI.java | 3 ++- .../owncloud/notes/persistence/sync/NotesAPI_0_2.java | 3 ++- .../owncloud/notes/persistence/sync/NotesAPI_1_0.java | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/it/niedermann/owncloud/notes/persistence/sync/NotesAPI.java b/app/src/main/java/it/niedermann/owncloud/notes/persistence/sync/NotesAPI.java index bb684d7e..2cf077b9 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/persistence/sync/NotesAPI.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/persistence/sync/NotesAPI.java @@ -12,6 +12,7 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.google.gson.annotations.Expose; +import com.nextcloud.android.sso.api.EmptyResponse; import com.nextcloud.android.sso.api.NextcloudAPI; import com.nextcloud.android.sso.api.ParsedResponse; @@ -119,7 +120,7 @@ public class NotesAPI { } } - public Call deleteNote(long noteId) { + public Call deleteNote(long noteId) { if (ApiVersion.API_VERSION_1_0.equals(usedApiVersion)) { return notesAPI_1_0.deleteNote(noteId); } else if (ApiVersion.API_VERSION_0_2.equals(usedApiVersion)) { diff --git a/app/src/main/java/it/niedermann/owncloud/notes/persistence/sync/NotesAPI_0_2.java b/app/src/main/java/it/niedermann/owncloud/notes/persistence/sync/NotesAPI_0_2.java index efda4d6d..fa12f0f0 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/persistence/sync/NotesAPI_0_2.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/persistence/sync/NotesAPI_0_2.java @@ -6,6 +6,7 @@ */ package it.niedermann.owncloud.notes.persistence.sync; +import com.nextcloud.android.sso.api.EmptyResponse; import com.nextcloud.android.sso.api.ParsedResponse; import java.util.List; @@ -43,5 +44,5 @@ public interface NotesAPI_0_2 { Call editNote(@Body NotesAPI.Note_0_2 note, @Path("remoteId") long remoteId); @DELETE("notes/{remoteId}") - Call deleteNote(@Path("remoteId") long noteId); + Call deleteNote(@Path("remoteId") long noteId); } diff --git a/app/src/main/java/it/niedermann/owncloud/notes/persistence/sync/NotesAPI_1_0.java b/app/src/main/java/it/niedermann/owncloud/notes/persistence/sync/NotesAPI_1_0.java index 9d133c55..ea5d822c 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/persistence/sync/NotesAPI_1_0.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/persistence/sync/NotesAPI_1_0.java @@ -6,6 +6,7 @@ */ package it.niedermann.owncloud.notes.persistence.sync; +import com.nextcloud.android.sso.api.EmptyResponse; import com.nextcloud.android.sso.api.ParsedResponse; import java.util.List; @@ -44,7 +45,7 @@ public interface NotesAPI_1_0 { Call editNote(@Body Note note, @Path("remoteId") long remoteId); @DELETE("notes/{remoteId}") - Call deleteNote(@Path("remoteId") long noteId); + Call deleteNote(@Path("remoteId") long noteId); @GET("settings") Call getSettings();