File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,9 @@ Call<ResultResponse<List<SportSchedule>>> getSportSchedule(@Query("date_start")
6767 @ GET ("/api/sport/personal/score" )
6868 Call <ResultResponse <SportScore >> getSportScore (@ Query ("semester_id" ) Long semesterId );
6969
70+ @ GET ("/api/sport/personal/have_attempts" )
71+ Call <ResultResponse <SportAttempts >> getSportAttempts ();
72+
7073 // endregion sport
7174
7275 // region other
Original file line number Diff line number Diff line change 1+ package api .myitmo .model ;
2+
3+ import com .google .gson .annotations .SerializedName ;
4+ import lombok .Data ;
5+
6+ @ Data
7+ public class SportAttempts {
8+
9+ @ SerializedName ("total_attempts" )
10+ private int totalAttempts ;
11+
12+ @ SerializedName ("used_attempts" )
13+ private int usedAttempts ;
14+
15+ @ SerializedName ("free_attempts" )
16+ private int freeAttempts ;
17+
18+ @ SerializedName ("can_sign_in" )
19+ private String canSignIn ;
20+ }
You can’t perform that action at this time.
0 commit comments