node-steamcommunity/classes/CConfirmation.js

21 lines
568 B
JavaScript
Raw Normal View History

2015-12-03 10:31:17 +08:00
module.exports = CConfirmation;
function CConfirmation(community, data) {
this._community = community;
this.id = data.id;
this.key = data.key;
this.title = data.title;
this.receiving = data.receiving;
this.time = data.time;
this.icon = data.icon;
}
CConfirmation.prototype.getOfferID = function(time, key, callback) {
this._community.getConfirmationOfferID(this.id, time, key, callback);
};
CConfirmation.prototype.respond = function(time, key, accept, callback) {
this._community.respondToConfirmation(this.id, this.key, time, key, accept, callback);
};