Skip to content

Commit c2b5d7d

Browse files
feat(GetAchievementUnlocks, GetAchievementOfTheWeek): add support for RASoftcorePoints in response (#9)
* feat(GetConsoleID): Add support for new variable 'IconURL' in request introduced in @RetroAchievements/RAWeb/pull/2264 * docs(api): add TrueRatio field to recent achievement endpoints ( RetroAchievements/RAWeb#2278) * feat(api): add TrueRatio field to recent achievement endpoints ( RetroAchievements/RAWeb#2278) * feat(api): add query options for getConsoleIds to filter active systems only, and/or game systems only * docs: update versioning * feat: add RASoftcorePoints * docs: add RASoftcorePoints * docs: update docs * chore: update version * feat: add RASoftcorePoints * docs: add RASoftcorePoints
1 parent 4ee7ad6 commit c2b5d7d

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.retroachievements</groupId>
88
<artifactId>api-kotlin</artifactId>
9-
<version>1.0.2</version>
9+
<version>1.0.3</version>
1010

1111
<dependencyManagement>
1212
<dependencies>
@@ -142,7 +142,7 @@
142142
<dependency>
143143
<groupId>com.squareup.retrofit2</groupId>
144144
<artifactId>converter-gson</artifactId>
145-
<version>2.9.0</version>
145+
<version>2.11.0</version>
146146
</dependency>
147147

148148
<dependency>

src/main/kotlin/org/retroachivements/api/data/pojo/achievement/GetAchievementUnlocks.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ class GetAchievementUnlocks {
3939
val dateAwarded: String,
4040

4141
@SerializedName("HardcoreMode")
42-
val hardcoreMode: Int
42+
val hardcoreMode: Int,
43+
44+
@SerializedName("RASoftcorePoints")
45+
val raSoftcorePoints: Int
4346
)
4447

4548
data class Game(

src/main/kotlin/org/retroachivements/api/data/pojo/event/GetAchievementOfTheWeek.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ class GetAchievementOfTheWeek {
9393
val dateAwarded: String,
9494

9595
@SerializedName("HardcoreMode")
96-
val hardcoreMode: Int
96+
val hardcoreMode: Int,
97+
98+
@SerializedName("RASoftcorePoints")
99+
val raSoftcorePoints: Int
97100
)
98101
}
99102
}

src/main/resources/mock/v1/achievement/GetAchievementUnlocks.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"user": "Podgicus0305",
44
"raPoints": 15544,
55
"dateAwarded": "2022-07-12 19:06:34",
6-
"hardcoreMode": true
6+
"hardcoreMode": true,
7+
"raSoftcorePoints": 0
78
}
8-
]
9+
]

src/main/resources/mock/v1/event/GetAchievementOfTheWeek.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828
"User": "Agnam",
2929
"RAPoints": 56120,
3030
"DateAwarded": "2023-10-26T22:13:34.000000Z",
31-
"HardcoreMode": 1
31+
"HardcoreMode": 1,
32+
"RASoftcorePoints": 323
3233
}
3334
],
3435
"UnlocksCount": 280,
3536
"UnlocksHardcoreCount": 268
36-
}
37+
}

0 commit comments

Comments
 (0)