-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add support for missing GetRecentGameAwards API * add support for missing GetGameHashes API and GetRecentGameAwards parameters * add support for missing GetUserWantToPlayList API and fix bug on GetUsersFollowingMe * add support for missing GetComments endpoint. Rephrase comments to not use the term endpoint but function. * update version
- Loading branch information
1 parent
c10cb0b
commit b0cc2aa
Showing
14 changed files
with
717 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/main/kotlin/org/retroachivements/api/data/pojo/comments/GetComments.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.retroachivements.api.data.pojo.comments | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
class GetComments { | ||
data class Response( | ||
@SerializedName("Count") | ||
val count: Long, | ||
@SerializedName("Total") | ||
val total: Long, | ||
@SerializedName("Results") | ||
val results: List<Result>, | ||
) | ||
|
||
data class Result( | ||
@SerializedName("User") | ||
val user: String, | ||
@SerializedName("Submitted") | ||
val submitted: String, | ||
@SerializedName("CommentText") | ||
val commentText: String, | ||
) | ||
|
||
} |
32 changes: 32 additions & 0 deletions
32
src/main/kotlin/org/retroachivements/api/data/pojo/feed/GetRecentGameAwards.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.retroachivements.api.data.pojo.feed | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
class GetRecentGameAwards { | ||
data class Response( | ||
@SerializedName("Count") | ||
val count: Long, | ||
@SerializedName("Total") | ||
val total: Long, | ||
@SerializedName("Results") | ||
val results: List<Result>, | ||
) | ||
|
||
data class Result( | ||
@SerializedName("User") | ||
val user: String, | ||
@SerializedName("AwardKind") | ||
val awardKind: String, | ||
@SerializedName("AwardDate") | ||
val awardDate: String, | ||
@SerializedName("GameID") | ||
val gameId: Long, | ||
@SerializedName("GameTitle") | ||
val gameTitle: String, | ||
@SerializedName("ConsoleID") | ||
val consoleId: Long, | ||
@SerializedName("ConsoleName") | ||
val consoleName: String, | ||
) | ||
|
||
} |
22 changes: 22 additions & 0 deletions
22
src/main/kotlin/org/retroachivements/api/data/pojo/game/GetGameHashes.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.retroachivements.api.data.pojo.game | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
class GetGameHashes { | ||
data class Response( | ||
@SerializedName("Results") | ||
val results: List<Result>, | ||
) | ||
|
||
data class Result( | ||
@SerializedName("Name") | ||
val name: String, | ||
@SerializedName("MD5") | ||
val md5: String, | ||
@SerializedName("Labels") | ||
val labels: List<String>, | ||
@SerializedName("PatchUrl") | ||
val patchUrl: String?, | ||
) | ||
|
||
} |
32 changes: 32 additions & 0 deletions
32
src/main/kotlin/org/retroachivements/api/data/pojo/user/GetUserWantToPlayList.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.retroachivements.api.data.pojo.user | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
class GetUserWantToPlayList { | ||
data class Response( | ||
@SerializedName("Count") | ||
val count: Long, | ||
@SerializedName("Total") | ||
val total: Long, | ||
@SerializedName("Results") | ||
val results: List<Result>, | ||
) | ||
|
||
data class Result( | ||
@SerializedName("ID") | ||
val id: Long, | ||
@SerializedName("Title") | ||
val title: String, | ||
@SerializedName("ConsoleID") | ||
val consoleId: Long, | ||
@SerializedName("ConsoleName") | ||
val consoleName: String, | ||
@SerializedName("ImageIcon") | ||
val imageIcon: String, | ||
@SerializedName("PointsTotal") | ||
val pointsTotal: Long, | ||
@SerializedName("AchievementsPublished") | ||
val achievementsPublished: Long, | ||
) | ||
|
||
} |
Oops, something went wrong.