Skip to content

Commit

Permalink
Add PlayerServiceWrapper to SteamWebApi
Browse files Browse the repository at this point in the history
  • Loading branch information
j4ckofalltrades committed Jul 24, 2021
1 parent a3bec4b commit 1dac936
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.github.j4ckofalltrades.steam_webapi.core

import io.github.j4ckofalltrades.steam_webapi.wrapper.IPlayerServiceWrapper
import io.github.j4ckofalltrades.steam_webapi.wrapper.ISteamAppsWrapper
import io.github.j4ckofalltrades.steam_webapi.wrapper.ISteamNewsWrapper
import io.github.j4ckofalltrades.steam_webapi.wrapper.ISteamUserStatsWrapper
Expand Down Expand Up @@ -36,6 +37,10 @@ class SteamWebApi(private val webApikey: WebApiKey) {
ISteamUserStatsWrapper(webApikey)
}

private val playerService: IPlayerServiceWrapper by lazy {
IPlayerServiceWrapper(webApikey)
}

fun appsApi(): ISteamAppsWrapper {
return this.appsApi
}
Expand All @@ -55,4 +60,8 @@ class SteamWebApi(private val webApikey: WebApiKey) {
fun userStatsApi(): ISteamUserStatsWrapper {
return this.userStatsApi
}

fun playerService(): IPlayerServiceWrapper {
return this.playerService
}
}

0 comments on commit 1dac936

Please sign in to comment.