b021558193eb67e47ec6f6842a61ec67c60ab1e8
4 * This is the abstract base class for MessagePoster implementations.
10 * @param {mw.Title} title Title to post to
12 mw
.messagePoster
.MessagePoster
= function MwMessagePoster() {};
14 OO
.initClass( mw
.messagePoster
.MessagePoster
);
17 * Post a message (with subject and body) to a talk page.
19 * @param {string} subject Subject/topic title; plaintext only (no wikitext or HTML)
20 * @param {string} body Body, as wikitext. Signature code will automatically be added
21 * by MessagePosters that require one, unless the message already contains the string
23 * @return {jQuery.Promise} Promise completing when the post succeeds or fails.
24 * @return {Function} return.done
25 * @return {Function} return.fail
26 * @return {string} return.fail.primaryError Primary error code. For a mw.Api failure,
27 * this should be 'api-fail'.
28 * @return {string} return.fail.secondaryError Secondary error code. For a mw.Api failure,
29 * this, should be mw.Api's code, e.g. 'http', 'ok-but-empty', or the error passed through
31 * @return {Mixed} return.fail.details Further details about the error
34 * The base class currently does nothing, but could be used for shared analytics or
37 mw
.messagePoster
.MessagePoster
.prototype.post = function () {};