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 12
12
import androidx .annotation .Nullable ;
13
13
14
14
import com .google .gson .annotations .Expose ;
15
+ import com .nextcloud .android .sso .api .EmptyResponse ;
15
16
import com .nextcloud .android .sso .api .NextcloudAPI ;
16
17
import com .nextcloud .android .sso .api .ParsedResponse ;
17
18
@@ -119,7 +120,7 @@ public Call<Note> editNote(@NonNull Note note) {
119
120
}
120
121
}
121
122
122
- public Call <Void > deleteNote (long noteId ) {
123
+ public Call <EmptyResponse > deleteNote (long noteId ) {
123
124
if (ApiVersion .API_VERSION_1_0 .equals (usedApiVersion )) {
124
125
return notesAPI_1_0 .deleteNote (noteId );
125
126
} else if (ApiVersion .API_VERSION_0_2 .equals (usedApiVersion )) {
Original file line number Diff line number Diff line change 6
6
*/
7
7
package it .niedermann .owncloud .notes .persistence .sync ;
8
8
9
+ import com .nextcloud .android .sso .api .EmptyResponse ;
9
10
import com .nextcloud .android .sso .api .ParsedResponse ;
10
11
11
12
import java .util .List ;
@@ -43,5 +44,5 @@ public interface NotesAPI_0_2 {
43
44
Call <Note > editNote (@ Body NotesAPI .Note_0_2 note , @ Path ("remoteId" ) long remoteId );
44
45
45
46
@ DELETE ("notes/{remoteId}" )
46
- Call <Void > deleteNote (@ Path ("remoteId" ) long noteId );
47
+ Call <EmptyResponse > deleteNote (@ Path ("remoteId" ) long noteId );
47
48
}
Original file line number Diff line number Diff line change 6
6
*/
7
7
package it .niedermann .owncloud .notes .persistence .sync ;
8
8
9
+ import com .nextcloud .android .sso .api .EmptyResponse ;
9
10
import com .nextcloud .android .sso .api .ParsedResponse ;
10
11
11
12
import java .util .List ;
@@ -44,7 +45,7 @@ public interface NotesAPI_1_0 {
44
45
Call <Note > editNote (@ Body Note note , @ Path ("remoteId" ) long remoteId );
45
46
46
47
@ DELETE ("notes/{remoteId}" )
47
- Call <Void > deleteNote (@ Path ("remoteId" ) long noteId );
48
+ Call <EmptyResponse > deleteNote (@ Path ("remoteId" ) long noteId );
48
49
49
50
@ GET ("settings" )
50
51
Call <NotesSettings > getSettings ();
You can’t perform that action at this time.
0 commit comments