Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: catch up on missing features #5

Merged
merged 5 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/main/kotlin/org/retroachivements/api/RetroInterface.kt
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,16 @@ interface RetroInterface {

/**
* A call to this endpoint will retrieve the complete list of all system ID and name pairs on the site.
*
* [activeSystemsOnly] set to 1
* [gameSystemsOnly] set to 1
*/
@Mock @MockResponse(body = "/v1/system/GetConsoleIDs.json")
@POST("/API/API_GetConsoleIDs.php")
suspend fun getConsoleIds(): NetworkResponse<GetConsoleID.Response, ErrorResponse>
suspend fun getConsoleIds(
@Query("a") activeSystemsOnly: Int = 0,
@Query("g") gameSystemsOnly: Int = 0
): NetworkResponse<GetConsoleID.Response, ErrorResponse>

/**
* A call to this endpoint will retrieve the complete list of games for a specified console on the site,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ class GetUserRecentAchievements {
@SerializedName("ConsoleName")
val consoleName: String,

@SerializedName("CumulScore")
val cumulScore: Int,

@SerializedName("BadgeUrl")
val badgeUrl: String,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"Description": "Solo defeat Golden Beetles at 2nd block (normal or above)",
"BadgeName": "228985",
"Points": 10,
"TrueRatio": 25,
"Type": "missable",
"Author": "Altomar",
"GameTitle": "Persona 3 Portable",
Expand All @@ -17,4 +18,4 @@
"BadgeURL": "/Badge/228985.png",
"GameURL": "/game/3164"
}
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"Description": "Completed Rank F in the Monster Arena",
"BadgeName": "277506",
"Points": 5,
"TrueRatio": 25,
"Type": null,
"Author": "TheMysticalOne",
"GameTitle": "Dragon Quest VIII: Journey of the Cursed King",
Expand All @@ -17,4 +18,4 @@
"BadgeURL": "/Badge/277506.png",
"GameURL": "/game/2721"
}
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"Description": "Clear stages 01 - 05 in Quest.",
"BadgeName": "108302",
"Points": 5,
"TrueRatio": 25,
"Type": null,
"Author": "jos",
"GameTitle": "Pokemon Pinball mini",
Expand All @@ -16,4 +17,4 @@
"BadgeURL": "/Badge/108302.png",
"GameURL": "/game/14715"
}
]
]