Skip to content

Commit 33baf73

Browse files
committed
Fix a few bugs related to spelling mistakes.
1 parent b18c25f commit 33baf73

File tree

4 files changed

+76
-74
lines changed

4 files changed

+76
-74
lines changed

src/main/kotlin/com/api/igdb/request/JsonRequest.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fun IGDBWrapper.jsonCompanies(APICalypse: APICalypse): String {
7171

7272
@Throws(RequestException::class)
7373
fun IGDBWrapper.jsonCompanyStatuses(APICalypse: APICalypse): String {
74-
return apiJsonRequest(Endpoints.COMPANY_STATUS, APICalypse.buildQuery())
74+
return apiJsonRequest(Endpoints.COMPANY_STATUSES, APICalypse.buildQuery())
7575
}
7676

7777
@Throws(RequestException::class)
@@ -101,7 +101,7 @@ fun IGDBWrapper.jsonExternalGames(APICalypse: APICalypse): String {
101101

102102
@Throws(RequestException::class)
103103
fun IGDBWrapper.jsonExternalGameSources(APICalypse: APICalypse): String {
104-
return apiJsonRequest(Endpoints.EXTERNAL_GAMES_SOURCES, APICalypse.buildQuery())
104+
return apiJsonRequest(Endpoints.EXTERNAL_GAME_SOURCES, APICalypse.buildQuery())
105105
}
106106

107107
@Throws(RequestException::class)

src/main/kotlin/com/api/igdb/request/ProtoRequest.kt

+7-7
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ fun IGDBWrapper.companies(APICalypse: APICalypse): List<Company> {
8787

8888
@Throws(RequestException::class)
8989
fun IGDBWrapper.companyStatuses(APICalypse: APICalypse): List<CompanyStatus> {
90-
val bytes = apiProtoRequest(Endpoints.COMPANIES, APICalypse.buildQuery())
90+
val bytes = apiProtoRequest(Endpoints.COMPANY_STATUSES, APICalypse.buildQuery())
9191
return CompanyStatusResult.parseFrom(bytes).companystatusesList
9292
}
9393

@@ -123,7 +123,7 @@ fun IGDBWrapper.externalGames(APICalypse: APICalypse): List<ExternalGame> {
123123

124124
@Throws(RequestException::class)
125125
fun IGDBWrapper.externalGameSources(APICalypse: APICalypse): List<ExternalGameSource> {
126-
val bytes = apiProtoRequest(Endpoints.EXTERNAL_GAMES, APICalypse.buildQuery())
126+
val bytes = apiProtoRequest(Endpoints.EXTERNAL_GAME_SOURCES, APICalypse.buildQuery())
127127
return ExternalGameSourceResult.parseFrom(bytes).externalgamesourcesList
128128
}
129129

@@ -171,13 +171,13 @@ fun IGDBWrapper.gameReleaseFormats(APICalypse: APICalypse): List<GameReleaseForm
171171

172172
@Throws(RequestException::class)
173173
fun IGDBWrapper.gameStatuses(APICalypse: APICalypse): List<GameStatus> {
174-
val bytes = apiProtoRequest(Endpoints.GAME_MODES, APICalypse.buildQuery())
174+
val bytes = apiProtoRequest(Endpoints.GAME_STATUSES, APICalypse.buildQuery())
175175
return GameStatusResult.parseFrom(bytes).gamestatusesList
176176
}
177177

178178
@Throws(RequestException::class)
179179
fun IGDBWrapper.gameTypes(APICalypse: APICalypse): List<GameType> {
180-
val bytes = apiProtoRequest(Endpoints.GAME_MODES, APICalypse.buildQuery())
180+
val bytes = apiProtoRequest(Endpoints.GAME_TYPES, APICalypse.buildQuery())
181181
return GameTypeResult.parseFrom(bytes).gametypesList
182182
}
183183

@@ -261,7 +261,7 @@ fun IGDBWrapper.platformLogos(APICalypse: APICalypse): List<PlatformLogo> {
261261

262262
@Throws(RequestException::class)
263263
fun IGDBWrapper.platformTypes(APICalypse: APICalypse): List<PlatformType> {
264-
val bytes = apiProtoRequest(Endpoints.PLATFORM_LOGOS, APICalypse.buildQuery())
264+
val bytes = apiProtoRequest(Endpoints.PLATFORM_TYPES, APICalypse.buildQuery())
265265
return PlatformTypeResult.parseFrom(bytes).platformtypesList
266266
}
267267

@@ -315,7 +315,7 @@ fun IGDBWrapper.releaseDates(APICalypse: APICalypse): List<ReleaseDate> {
315315

316316
@Throws(RequestException::class)
317317
fun IGDBWrapper.releaseDateRegions(APICalypse: APICalypse): List<ReleaseDateRegion> {
318-
val bytes = apiProtoRequest(Endpoints.RELEASE_DATES, APICalypse.buildQuery())
318+
val bytes = apiProtoRequest(Endpoints.RELEASE_DATE_REGIONS, APICalypse.buildQuery())
319319
return ReleaseDateRegionResult.parseFrom(bytes).releasedateregionsList
320320
}
321321

@@ -345,7 +345,7 @@ fun IGDBWrapper.websites(APICalypse: APICalypse): List<Website> {
345345

346346
@Throws(RequestException::class)
347347
fun IGDBWrapper.websiteTypes(APICalypse: APICalypse): List<WebsiteType> {
348-
val bytes = apiProtoRequest(Endpoints.WEBSITES, APICalypse.buildQuery())
348+
val bytes = apiProtoRequest(Endpoints.WEBSITE_TYPES, APICalypse.buildQuery())
349349
return WebsiteTypeResult.parseFrom(bytes).websitetypesList
350350
}
351351

src/main/kotlin/com/api/igdb/utils/Endpoints.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ enum class Endpoints : Endpoint {
77
AGE_RATING_CATEGORIES, AGE_RATING_CONTENT_DESCRIPTIONS, AGE_RATING_CONTENT_DESCRIPTIONS_V2, AGE_RATING_ORGANIZATIONS, AGE_RATINGS,
88
ALTERNATIVE_NAMES, ARTWORKS, CHARACTERS, CHARACTER_GENDERS, CHARACTER_MUG_SHOTS, CHARACTER_SPECIES, COLLECTION_MEMBERSHIPS,
99
COLLECTION_MEMBERSHIP_TYPES, COLLECTION_RELATIONS, COLLECTION_RELATION_TYPES, COLLECTION_TYPES, COLLECTIONS, COMPANIES,
10-
COMPANY_LOGOS, COMPANY_STATUS, COMPANY_WEBSITES, COVERS, DATE_FORMATS, EVENTS, EVENT_LOGOS,
11-
EVENT_NETWORKS, EXTERNAL_GAMES, EXTERNAL_GAMES_SOURCES, FRANCHISES, GAMES, GAME_ENGINES, GAME_ENGINE_LOGOS, GAME_LOCALIZATIONS,
10+
COMPANY_LOGOS, COMPANY_STATUSES, COMPANY_WEBSITES, COVERS, DATE_FORMATS, EVENTS, EVENT_LOGOS,
11+
EVENT_NETWORKS, EXTERNAL_GAMES, EXTERNAL_GAME_SOURCES, FRANCHISES, GAMES, GAME_ENGINES, GAME_ENGINE_LOGOS, GAME_LOCALIZATIONS,
1212
GAME_MODES, GAME_RELEASE_FORMATS, GAME_STATUSES, GAME_TYPES, GAME_VERSIONS, GAME_VERSION_FEATURES, GAME_VERSION_FEATURE_VALUES,
1313
GAME_VIDEOS, GENRES, INVOLVED_COMPANIES, KEYWORDS, LANGUAGES, LANGUAGE_SUPPORTS, LANGUAGE_SUPPORT_TYPES, MULTIPLAYER_MODES,
1414
NETWORK_TYPES, PLATFORMS, PLATFORM_FAMILIES, PLATFORM_LOGOS, PLATFORM_TYPES, PLATFORM_VERSIONS, PLATFORM_VERSION_COMPANIES,

0 commit comments

Comments
 (0)