From c3f5b492b3715e4fa6fb37751bc91f627d9d89ea Mon Sep 17 00:00:00 2001 From: Alexander Corn Date: Mon, 7 Sep 2015 00:01:35 -0400 Subject: [PATCH] Added inventory methods to CSteamUser --- classes/CSteamUser.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/classes/CSteamUser.js b/classes/CSteamUser.js index e21b3d9..c382f44 100644 --- a/classes/CSteamUser.js +++ b/classes/CSteamUser.js @@ -134,3 +134,11 @@ CSteamUser.prototype.comment = function(message, callback) { CSteamUser.prototype.inviteToGroup = function(groupID, callback) { this._community.inviteUserToGroup(this.steamID, groupID, callback); }; + +CSteamUser.prototype.getInventoryContexts = function(callback) { + this._community.getUserInventoryContexts(this.steamID, callback); +}; + +CSteamUser.prototype.getInventory = function(appID, contextID, tradableOnly, callback) { + this._community.getInventory(appID, contextID, tradableOnly, callback); +};