Skip to content

Commit 373fd6e

Browse files
committed
Add methods to signIn/out in sports
1 parent b96a04a commit 373fd6e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/main/java/api/myitmo/MyItmoApi.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
import api.myitmo.model.sport.*;
1414
import org.jetbrains.annotations.Nullable;
1515
import retrofit2.Call;
16-
import retrofit2.http.GET;
17-
import retrofit2.http.Path;
18-
import retrofit2.http.Query;
16+
import retrofit2.http.*;
1917

2018
import java.time.LocalDate;
2119
import java.util.HashMap;
@@ -87,6 +85,12 @@ Call<ResultResponse<List<SportSchedule>>> getSportSchedule(@Query("date_start")
8785
@GET("/api/sport/sign/chosen")
8886
Call<ResultResponse<List<ChosenSportSection>>> getChosenSportSections();
8987

88+
@POST("/api/sport/sign/schedule/lessons")
89+
Call<ResultResponse<List<Long>>> signInLessons(@Body List<Long> lessonIds);
90+
91+
@DELETE("/api/sport/sign/schedule/lessons")
92+
Call<ResultResponse<List<Long>>> signOutLessons(@Body List<Long> lessonIds);
93+
9094
// endregion sport
9195

9296
// region other

0 commit comments

Comments
 (0)