Skip to content

Commit 6f14ebd

Browse files
committed
Add sport attempts request
1 parent 2cf47b0 commit 6f14ebd

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
}

0 commit comments

Comments
 (0)