Skip to content

Commit 04da6f6

Browse files
Chore: Fixes a few fields that are missing from the project, specifically GetUserRecentlyPlayedGames.kt (#17)
* chore: fix UserWallActive value type, which is expected to be a Boolean * chore: fix a few "Boolean" values that are actually Integer values. * docs: fix a few "Boolean" values that are actually Integer values. * chore: fix syntax * docs: update documentation to add missing fields * docs: update version
1 parent 9f7f510 commit 04da6f6

File tree

4 files changed

+24
-20
lines changed

4 files changed

+24
-20
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Then add this `api-kotlin` dependency to your `pom.xml` project!
2626
<dependency>
2727
<groupId>com.github.RetroAchievements</groupId>
2828
<artifactId>api-kotlin</artifactId>
29-
<version>1.0.2</version>
29+
<version>1.0.6</version>
3030
</dependency>
3131
```
3232

pom.xml

Lines changed: 1 addition & 1 deletion
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.5</version>
9+
<version>1.0.6</version>
1010

1111
<dependencyManagement>
1212
<dependencies>

src/main/kotlin/org/retroachivements/api/data/pojo/user/GetUserRecentlyPlayedGames.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ class GetUserRecentlyPlayedGames {
3232

3333
@SerializedName("LastPlayed")
3434
val lastPlayed: String,
35-
35+
3636
@SerializedName("AchievementsTotal")
3737
val achievementsTotal: Long,
38-
38+
3939
@SerializedName("NumPossibleAchievements")
4040
val numPossibleAchievements: Long,
4141

@@ -46,7 +46,7 @@ class GetUserRecentlyPlayedGames {
4646
val numAchieved: Long,
4747

4848
@SerializedName("ScoreAchieved")
49-
val scoreAchieved: Long
49+
val scoreAchieved: Long,
5050

5151
@SerializedName("NumAchievedHardcore")
5252
val numAchievedHardcore: Long,
Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
[
2-
{
3-
"gameId": 19010,
4-
"consoleId": 21,
5-
"consoleName": "PlayStation 2",
6-
"title": "Simpsons, The: Hit & Run",
7-
"imageIcon": "/Images/066024.png",
8-
"lastPlayed": "2022-10-24 22:05:12",
9-
"numPossibleAchievements": 131,
10-
"possibleScore": 865,
11-
"numAchieved": 23,
12-
"scoreAchieved": 84,
13-
"numAchievedHardcore": 23,
14-
"scoreAchievedHardcore": 84
15-
}
16-
]
2+
{
3+
"GameID": 11332,
4+
"ConsoleID": 12,
5+
"ConsoleName": "PlayStation",
6+
"Title": "Final Fantasy Origins",
7+
"ImageIcon": "/Images/060249.png",
8+
"ImageTitle": "/Images/026707.png",
9+
"ImageIngame": "/Images/026708.png",
10+
"ImageBoxArt": "/Images/046257.png",
11+
"LastPlayed": "2023-10-27 00:30:04",
12+
"AchievementsTotal": 119,
13+
"NumPossibleAchievements": 119,
14+
"PossibleScore": 945,
15+
"NumAchieved": 38,
16+
"ScoreAchieved": 382,
17+
"NumAchievedHardcore": 38,
18+
"ScoreAchievedHardcore": 382
19+
}
20+
]

0 commit comments

Comments
 (0)