2021-06-09 23:22:28 +00:00
|
|
|
/**
|
|
|
|
* 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
|
2020-12-03 22:32:35 +00:00
|
|
|
* @param {Object.<string,string>} notices Edit notices for the page where the reply is being saved.
|
|
|
|
* Keys are message names; values are HTML to display.
|
2021-06-09 23:22:28 +00:00
|
|
|
*/
|
2020-12-03 22:32:35 +00:00
|
|
|
function CommentDetails( pageName, oldId, notices ) {
|
2021-06-09 23:22:28 +00:00
|
|
|
this.pageName = pageName;
|
|
|
|
this.oldId = oldId;
|
2020-12-03 22:32:35 +00:00
|
|
|
this.notices = notices;
|
2021-06-09 23:22:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
OO.initClass( CommentDetails );
|
|
|
|
|
|
|
|
module.exports = CommentDetails;
|