File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
app/src/main/java/it/niedermann/owncloud/notes/persistence/sync Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1212import androidx .annotation .Nullable ;
1313
1414import com .google .gson .annotations .Expose ;
15+ import com .nextcloud .android .sso .api .EmptyResponse ;
1516import com .nextcloud .android .sso .api .NextcloudAPI ;
1617import com .nextcloud .android .sso .api .ParsedResponse ;
1718
@@ -119,7 +120,7 @@ public Call<Note> editNote(@NonNull Note note) {
119120 }
120121 }
121122
122- public Call <Void > deleteNote (long noteId ) {
123+ public Call <EmptyResponse > deleteNote (long noteId ) {
123124 if (ApiVersion .API_VERSION_1_0 .equals (usedApiVersion )) {
124125 return notesAPI_1_0 .deleteNote (noteId );
125126 } else if (ApiVersion .API_VERSION_0_2 .equals (usedApiVersion )) {
Original file line number Diff line number Diff line change 66 */
77package it .niedermann .owncloud .notes .persistence .sync ;
88
9+ import com .nextcloud .android .sso .api .EmptyResponse ;
910import com .nextcloud .android .sso .api .ParsedResponse ;
1011
1112import java .util .List ;
@@ -43,5 +44,5 @@ public interface NotesAPI_0_2 {
4344 Call <Note > editNote (@ Body NotesAPI .Note_0_2 note , @ Path ("remoteId" ) long remoteId );
4445
4546 @ DELETE ("notes/{remoteId}" )
46- Call <Void > deleteNote (@ Path ("remoteId" ) long noteId );
47+ Call <EmptyResponse > deleteNote (@ Path ("remoteId" ) long noteId );
4748}
Original file line number Diff line number Diff line change 66 */
77package it .niedermann .owncloud .notes .persistence .sync ;
88
9+ import com .nextcloud .android .sso .api .EmptyResponse ;
910import com .nextcloud .android .sso .api .ParsedResponse ;
1011
1112import java .util .List ;
@@ -44,7 +45,7 @@ public interface NotesAPI_1_0 {
4445 Call <Note > editNote (@ Body Note note , @ Path ("remoteId" ) long remoteId );
4546
4647 @ DELETE ("notes/{remoteId}" )
47- Call <Void > deleteNote (@ Path ("remoteId" ) long noteId );
48+ Call <EmptyResponse > deleteNote (@ Path ("remoteId" ) long noteId );
4849
4950 @ GET ("settings" )
5051 Call <NotesSettings > getSettings ();
You can’t perform that action at this time.
0 commit comments