diff --git a/app/src/main/java/org/ntlab/acanthus_client/resources/gallery/StrokesRest.java b/app/src/main/java/org/ntlab/acanthus_client/resources/gallery/StrokesRest.java index 3737343..a1032b0 100644 --- a/app/src/main/java/org/ntlab/acanthus_client/resources/gallery/StrokesRest.java +++ b/app/src/main/java/org/ntlab/acanthus_client/resources/gallery/StrokesRest.java @@ -6,7 +6,9 @@ import java.util.ArrayList; import java.util.Collection; +import kotlin.jvm.JvmDefaultWithoutCompatibility; import retrofit2.Call; +import retrofit2.http.DELETE; import retrofit2.http.Field; import retrofit2.http.FormUrlEncoded; import retrofit2.http.GET; @@ -27,7 +29,7 @@ @FormUrlEncoded @POST("gallery/{aid}/pageMap/0/layers/0/strokes") Call addStroke(@Path("aid") Integer aid, @Field("uid") Integer uid, @Field("uidToken") String uidToken, - @Field("pen") Integer pen, @Field("color") Integer color, @Field("thick") Integer thick); + @Field("pen") Integer pen, @Field("color") Integer color, @Field("thick") Integer thick); //----------------------------------------------------------------- // @@ -40,5 +42,15 @@ @POST("gallery/{aid}/pageMap/0/layers/0/strokes/{strokeNo}/position") Call addPositions(@Path("aid") Integer aid, @Path("strokeNo") Integer strokeNo, @Field("x") double x, @Field("y") double y); + + //----------------------------------------------------------------- + // + @DELETE("gallery/{aid}/pageMap/0/layers/0/strokes") + Call deleteStrokes(@Path("aid") Integer aid, @Field("uid") Integer uid); + + //----------------------------------------------------------------- + // + @GET("gallery/{aid}/pageMap/0/layers/0/strokes/{strokeNo}/position") + Call deleteStrokeNo(@Path("aid") Integer aid, @Path("strokeNo") Integer strokeNo); //----------------------------------------------------------------- }