@@ -13,12 +13,30 @@ fun IGDBWrapper.ageRatings(APICalypse: APICalypse): List<AgeRating> {
13
13
return AgeRatingResult .parseFrom(bytes).ageratingsList
14
14
}
15
15
16
+ @Throws(RequestException ::class )
17
+ fun IGDBWrapper.ageRatingCategories (APICalypse : APICalypse ): List <AgeRatingCategory > {
18
+ val bytes = apiProtoRequest(Endpoints .AGE_RATING_CATEGORIES , APICalypse .buildQuery())
19
+ return AgeRatingCategoryResult .parseFrom(bytes).ageratingcategoriesList
20
+ }
21
+
16
22
@Throws(RequestException ::class )
17
23
fun IGDBWrapper.ageRatingContentDescriptions (APICalypse : APICalypse ): List <AgeRatingContentDescription > {
18
24
val bytes = apiProtoRequest(Endpoints .AGE_RATING_CONTENT_DESCRIPTIONS , APICalypse .buildQuery())
19
25
return AgeRatingContentDescriptionResult .parseFrom(bytes).ageratingcontentdescriptionsList
20
26
}
21
27
28
+ @Throws(RequestException ::class )
29
+ fun IGDBWrapper.ageRatingContentDescriptionsV2 (APICalypse : APICalypse ): List <AgeRatingContentDescriptionV2 > {
30
+ val bytes = apiProtoRequest(Endpoints .AGE_RATING_CONTENT_DESCRIPTIONS_V2 , APICalypse .buildQuery())
31
+ return AgeRatingContentDescriptionV2Result .parseFrom(bytes).ageratingcontentdescriptionsv2List
32
+ }
33
+
34
+ @Throws(RequestException ::class )
35
+ fun IGDBWrapper.ageRatingOrganizations (APICalypse : APICalypse ): List <AgeRatingOrganization > {
36
+ val bytes = apiProtoRequest(Endpoints .AGE_RATING_ORGANIZATIONS , APICalypse .buildQuery())
37
+ return AgeRatingOrganizationResult .parseFrom(bytes).ageratingorganizationsList
38
+ }
39
+
22
40
@Throws(RequestException ::class )
23
41
fun IGDBWrapper.alternativeNames (APICalypse : APICalypse ): List <AlternativeName > {
24
42
val bytes = apiProtoRequest(Endpoints .ALTERNATIVE_NAMES , APICalypse .buildQuery())
@@ -37,6 +55,18 @@ fun IGDBWrapper.characters(APICalypse: APICalypse): List<Character> {
37
55
return CharacterResult .parseFrom(bytes).charactersList
38
56
}
39
57
58
+ @Throws(RequestException ::class )
59
+ fun IGDBWrapper.characterGenders (APICalypse : APICalypse ): List <CharacterGender > {
60
+ val bytes = apiProtoRequest(Endpoints .CHARACTER_GENDERS , APICalypse .buildQuery())
61
+ return CharacterGenderResult .parseFrom(bytes).charactergendersList
62
+ }
63
+
64
+ @Throws(RequestException ::class )
65
+ fun IGDBWrapper.characterSpecies (APICalypse : APICalypse ): List <CharacterSpecie > {
66
+ val bytes = apiProtoRequest(Endpoints .CHARACTER_SPECIES , APICalypse .buildQuery())
67
+ return CharacterSpecieResult .parseFrom(bytes).characterspeciesList
68
+ }
69
+
40
70
@Throws(RequestException ::class )
41
71
fun IGDBWrapper.collections (APICalypse : APICalypse ): List <Collection > {
42
72
val bytes = apiProtoRequest(Endpoints .COLLECTIONS , APICalypse .buildQuery())
@@ -55,6 +85,12 @@ fun IGDBWrapper.companies(APICalypse: APICalypse): List<Company> {
55
85
return CompanyResult .parseFrom(bytes).companiesList
56
86
}
57
87
88
+ @Throws(RequestException ::class )
89
+ fun IGDBWrapper.companyStatuses (APICalypse : APICalypse ): List <CompanyStatus > {
90
+ val bytes = apiProtoRequest(Endpoints .COMPANIES , APICalypse .buildQuery())
91
+ return CompanyStatusResult .parseFrom(bytes).companystatusesList
92
+ }
93
+
58
94
@Throws(RequestException ::class )
59
95
fun IGDBWrapper.companyWebsites (APICalypse : APICalypse ): List <CompanyWebsite > {
60
96
val bytes = apiProtoRequest(Endpoints .COMPANY_WEBSITES , APICalypse .buildQuery())
@@ -73,12 +109,24 @@ fun IGDBWrapper.covers(APICalypse: APICalypse): List<Cover> {
73
109
return CoverResult .parseFrom(bytes).coversList
74
110
}
75
111
112
+ @Throws(RequestException ::class )
113
+ fun IGDBWrapper.dateFormats (APICalypse : APICalypse ): List <DateFormat > {
114
+ val bytes = apiProtoRequest(Endpoints .COVERS , APICalypse .buildQuery())
115
+ return DateFormatResult .parseFrom(bytes).dateformatsList
116
+ }
117
+
76
118
@Throws(RequestException ::class )
77
119
fun IGDBWrapper.externalGames (APICalypse : APICalypse ): List <ExternalGame > {
78
120
val bytes = apiProtoRequest(Endpoints .EXTERNAL_GAMES , APICalypse .buildQuery())
79
121
return ExternalGameResult .parseFrom(bytes).externalgamesList
80
122
}
81
123
124
+ @Throws(RequestException ::class )
125
+ fun IGDBWrapper.externalGameSources (APICalypse : APICalypse ): List <ExternalGameSource > {
126
+ val bytes = apiProtoRequest(Endpoints .EXTERNAL_GAMES , APICalypse .buildQuery())
127
+ return ExternalGameSourceResult .parseFrom(bytes).externalgamesourcesList
128
+ }
129
+
82
130
@Throws(RequestException ::class )
83
131
fun IGDBWrapper.franchises (APICalypse : APICalypse ): List <Franchise > {
84
132
val bytes = apiProtoRequest(Endpoints .FRANCHISES , APICalypse .buildQuery())
@@ -115,6 +163,24 @@ fun IGDBWrapper.gameModes(APICalypse: APICalypse): List<GameMode> {
115
163
return GameModeResult .parseFrom(bytes).gamemodesList
116
164
}
117
165
166
+ @Throws(RequestException ::class )
167
+ fun IGDBWrapper.gameReleaseFormats (APICalypse : APICalypse ): List <GameReleaseFormat > {
168
+ val bytes = apiProtoRequest(Endpoints .GAME_RELEASE_FORMATS , APICalypse .buildQuery())
169
+ return GameReleaseFormatResult .parseFrom(bytes).gamereleaseformatsList
170
+ }
171
+
172
+ @Throws(RequestException ::class )
173
+ fun IGDBWrapper.gameStatuses (APICalypse : APICalypse ): List <GameStatus > {
174
+ val bytes = apiProtoRequest(Endpoints .GAME_MODES , APICalypse .buildQuery())
175
+ return GameStatusResult .parseFrom(bytes).gamestatusesList
176
+ }
177
+
178
+ @Throws(RequestException ::class )
179
+ fun IGDBWrapper.gameTypes (APICalypse : APICalypse ): List <GameType > {
180
+ val bytes = apiProtoRequest(Endpoints .GAME_MODES , APICalypse .buildQuery())
181
+ return GameTypeResult .parseFrom(bytes).gametypesList
182
+ }
183
+
118
184
@Throws(RequestException ::class )
119
185
fun IGDBWrapper.gameVersion (APICalypse : APICalypse ): List <GameVersion > {
120
186
val bytes = apiProtoRequest(Endpoints .GAME_VERSIONS , APICalypse .buildQuery())
@@ -193,6 +259,12 @@ fun IGDBWrapper.platformLogos(APICalypse: APICalypse): List<PlatformLogo> {
193
259
return PlatformLogoResult .parseFrom(bytes).platformlogosList
194
260
}
195
261
262
+ @Throws(RequestException ::class )
263
+ fun IGDBWrapper.platformTypes (APICalypse : APICalypse ): List <PlatformType > {
264
+ val bytes = apiProtoRequest(Endpoints .PLATFORM_LOGOS , APICalypse .buildQuery())
265
+ return PlatformTypeResult .parseFrom(bytes).platformtypesList
266
+ }
267
+
196
268
@Throws(RequestException ::class )
197
269
fun IGDBWrapper.platformVersions (APICalypse : APICalypse ): List <PlatformVersion > {
198
270
val bytes = apiProtoRequest(Endpoints .PLATFORM_VERSIONS , APICalypse .buildQuery())
@@ -241,6 +313,12 @@ fun IGDBWrapper.releaseDates(APICalypse: APICalypse): List<ReleaseDate> {
241
313
return ReleaseDateResult .parseFrom(bytes).releasedatesList
242
314
}
243
315
316
+ @Throws(RequestException ::class )
317
+ fun IGDBWrapper.releaseDateRegions (APICalypse : APICalypse ): List <ReleaseDateRegion > {
318
+ val bytes = apiProtoRequest(Endpoints .RELEASE_DATES , APICalypse .buildQuery())
319
+ return ReleaseDateRegionResult .parseFrom(bytes).releasedateregionsList
320
+ }
321
+
244
322
@Throws(RequestException ::class )
245
323
fun IGDBWrapper.screenshots (APICalypse : APICalypse ): List <Screenshot > {
246
324
val bytes = apiProtoRequest(Endpoints .SCREENSHOTS , APICalypse .buildQuery())
@@ -265,6 +343,12 @@ fun IGDBWrapper.websites(APICalypse: APICalypse): List<Website> {
265
343
return WebsiteResult .parseFrom(bytes).websitesList
266
344
}
267
345
346
+ @Throws(RequestException ::class )
347
+ fun IGDBWrapper.websiteTypes (APICalypse : APICalypse ): List <WebsiteType > {
348
+ val bytes = apiProtoRequest(Endpoints .WEBSITES , APICalypse .buildQuery())
349
+ return WebsiteTypeResult .parseFrom(bytes).websitetypesList
350
+ }
351
+
268
352
@Throws(RequestException ::class )
269
353
fun IGDBWrapper.events (APICalypse : APICalypse ): List <Event > {
270
354
val bytes = apiProtoRequest(Endpoints .EVENTS , APICalypse .buildQuery())
@@ -277,7 +361,6 @@ fun IGDBWrapper.eventLogos(APICalypse: APICalypse): List<EventLogo> {
277
361
return EventLogoResult .parseFrom(bytes).eventlogosList
278
362
}
279
363
280
-
281
364
@Throws(RequestException ::class )
282
365
fun IGDBWrapper.eventNetworks (APICalypse : APICalypse ): List <EventNetwork > {
283
366
val bytes = apiProtoRequest(Endpoints .EVENT_NETWORKS , APICalypse .buildQuery())
@@ -328,6 +411,6 @@ fun IGDBWrapper.popularityTypes(APICalypse: APICalypse): List<PopularityType> {
328
411
329
412
@Throws(RequestException ::class )
330
413
fun IGDBWrapper.popularityPrimitives (APICalypse : APICalypse ): List <PopularityPrimitive > {
331
- val bytes = apiProtoRequest(Endpoints .COLLECTION_MEMBERSHIP_TYPES , APICalypse .buildQuery())
414
+ val bytes = apiProtoRequest(Endpoints .POPULARITY_PRIMITIVES , APICalypse .buildQuery())
332
415
return PopularityPrimitiveResult .parseFrom(bytes).popularityprimitivesList
333
416
}
0 commit comments