@j4ckofalltrades/steam-webapi-ts
Version:
Isomorphic Steam WebAPI wrapper in TypeScript
66 lines (65 loc) • 2.34 kB
JavaScript
/* istanbul ignore file */
import { defaultWebApiClient } from "./webApiClient";
import { ISteamUserWrapper } from "../wrapper/steamUserWrapper";
import { ISteamAppsWrapper } from "../wrapper/steamAppsWrapper";
import { ISteamUserStatsWrapper } from "../wrapper/steamUserStatsWrapper";
import { ISteamNewsWrapper } from "../wrapper/steamNewsWrapper";
import { IPlayerServiceWrapper } from "../wrapper/playerServiceWrapper";
import { ISteamWebAPIUtilWrapper } from "../wrapper/steamWebApiUtilWrapper";
/**
* Steam WebAPI wrapper.
*/
var SteamWebApi = /** @class */ (function () {
function SteamWebApi(apiKey) {
this._appsApi = new ISteamAppsWrapper(defaultWebApiClient);
this._newsApi = new ISteamNewsWrapper(defaultWebApiClient);
this._playerService = new IPlayerServiceWrapper(apiKey, defaultWebApiClient);
this._usersApi = new ISteamUserWrapper(apiKey, defaultWebApiClient);
this._userStatsApi = new ISteamUserStatsWrapper(apiKey, defaultWebApiClient);
this._webApiUtil = new ISteamWebAPIUtilWrapper(defaultWebApiClient);
}
Object.defineProperty(SteamWebApi.prototype, "appsApi", {
get: function () {
return this._appsApi;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SteamWebApi.prototype, "newsApi", {
get: function () {
return this._newsApi;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SteamWebApi.prototype, "playerService", {
get: function () {
return this._playerService;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SteamWebApi.prototype, "usersApi", {
get: function () {
return this._usersApi;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SteamWebApi.prototype, "userStatsApi", {
get: function () {
return this._userStatsApi;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SteamWebApi.prototype, "webApiUtil", {
get: function () {
return this._webApiUtil;
},
enumerable: false,
configurable: true
});
return SteamWebApi;
}());
export { SteamWebApi };