UNPKG

node-nicovideo-api

Version:

nicovideo api (video, live, etc..) wrapper package for node.js

31 lines (22 loc) 610 B
// Generated by CoffeeScript 1.10.0 (function() { var NicoUser, NicoUserAPI; NicoUser = require("./NicoUser"); module.exports = NicoUserAPI = (function() { function NicoUserAPI(_session) { this._session = _session; this._cache = {}; } /** * @param {Number} userId * @return {Promise} */ NicoUserAPI.prototype.getUserInfo = function(userId) { if (this._cache[userId] != null) { return Promise.resolve(this._cache[userId]); } return NicoUser.instance(userId, this._session); }; return NicoUserAPI; })(); }).call(this);