mediawiki-extensions-Discus.../modules/CommentDetails.js
Bartosz Dziewoński ea68e1a8f0 Introduce CommentDetails to group up and document stuff we pass around
Change-Id: I809524ea8d89130548964ba9e5a73f00f6089ff4
2021-06-21 22:12:18 +02:00

17 lines
442 B
JavaScript

/**
* More information about a comment obtained from various APIs, rather than parsed from the page.
*
* @class CommentDetails
* @constructor
* @param {string} pageName Page name the reply is being saved to
* @param {number} oldId Revision ID of page at time of editing
*/
function CommentDetails( pageName, oldId ) {
this.pageName = pageName;
this.oldId = oldId;
}
OO.initClass( CommentDetails );
module.exports = CommentDetails;