|
|
|
@ -235,7 +235,7 @@ export default class Notifications extends API {
|
|
|
|
|
/**
|
|
|
|
|
* Gets the first notice found matching a given filter.
|
|
|
|
|
* @param {Function} filter Function to use to filter notices by
|
|
|
|
|
* @returns {Object|null} Notice matching a given filter
|
|
|
|
|
* @returns {object|null} Notice matching a given filter
|
|
|
|
|
*/
|
|
|
|
|
getNotice (filter) {
|
|
|
|
|
try {
|
|
|
|
@ -249,7 +249,7 @@ export default class Notifications extends API {
|
|
|
|
|
/**
|
|
|
|
|
* Gets the first toast found matching a given filter.
|
|
|
|
|
* @param {Function} filter Function to use to filter toasts by
|
|
|
|
|
* @returns {Object|null} Toast matching a given filter
|
|
|
|
|
* @returns {object|null} Toast matching a given filter
|
|
|
|
|
*/
|
|
|
|
|
getToast (filter) {
|
|
|
|
|
try {
|
|
|
|
@ -263,7 +263,7 @@ export default class Notifications extends API {
|
|
|
|
|
/**
|
|
|
|
|
* Gets a notice matching a given ID.
|
|
|
|
|
* @param {string} noticeId Notice ID
|
|
|
|
|
* @returns {Object|null} Notice matching a given ID
|
|
|
|
|
* @returns {object|null} Notice matching a given ID
|
|
|
|
|
*/
|
|
|
|
|
getNoticeById (noticeId) {
|
|
|
|
|
try {
|
|
|
|
@ -277,7 +277,7 @@ export default class Notifications extends API {
|
|
|
|
|
/**
|
|
|
|
|
* Gets a toast matching a given ID.
|
|
|
|
|
* @param {string} toastId Toast ID
|
|
|
|
|
* @returns {Object|null} Toast matching a given ID
|
|
|
|
|
* @returns {object|null} Toast matching a given ID
|
|
|
|
|
*/
|
|
|
|
|
getToastById (toastId) {
|
|
|
|
|
try {
|
|
|
|
@ -291,7 +291,7 @@ export default class Notifications extends API {
|
|
|
|
|
/**
|
|
|
|
|
* Gets all notices found matching a given filter.
|
|
|
|
|
* @param {Function} filter Function to use to filter notices by
|
|
|
|
|
* @returns {Array<Object|null>} Notices matching a given filter
|
|
|
|
|
* @returns {Array<object|null>} Notices matching a given filter
|
|
|
|
|
*/
|
|
|
|
|
getNotices (filter) {
|
|
|
|
|
try {
|
|
|
|
@ -305,7 +305,7 @@ export default class Notifications extends API {
|
|
|
|
|
/**
|
|
|
|
|
* Gets all toasts found matching a given filter.
|
|
|
|
|
* @param {Function} filter Function to use to filter toasts by
|
|
|
|
|
* @returns {Array<Object|null>} Toasts matching a given filter
|
|
|
|
|
* @returns {Array<object|null>} Toasts matching a given filter
|
|
|
|
|
*/
|
|
|
|
|
getToasts (filter) {
|
|
|
|
|
try {
|
|
|
|
@ -319,7 +319,7 @@ export default class Notifications extends API {
|
|
|
|
|
/**
|
|
|
|
|
* Gets all notices matching a given caller.
|
|
|
|
|
* @param {string} addonId Addon ID
|
|
|
|
|
* @returns {Array<Object|null>} Notices matching a given caller
|
|
|
|
|
* @returns {Array<object|null>} Notices matching a given caller
|
|
|
|
|
*/
|
|
|
|
|
getNoticesByCaller (addonId) {
|
|
|
|
|
try {
|
|
|
|
@ -333,7 +333,7 @@ export default class Notifications extends API {
|
|
|
|
|
/**
|
|
|
|
|
* Gets all toasts matching a given caller.
|
|
|
|
|
* @param {string} addonId Addon ID
|
|
|
|
|
* @returns {Array<Object|null>} Toasts matching a given caller
|
|
|
|
|
* @returns {Array<object|null>} Toasts matching a given caller
|
|
|
|
|
*/
|
|
|
|
|
getToastsByCaller (addonId) {
|
|
|
|
|
try {
|
|
|
|
@ -346,7 +346,7 @@ export default class Notifications extends API {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gets all notices.
|
|
|
|
|
* @returns {Array<Object|null>} All notices
|
|
|
|
|
* @returns {Array<object|null>} All notices
|
|
|
|
|
*/
|
|
|
|
|
getAllNotices () {
|
|
|
|
|
try {
|
|
|
|
@ -358,7 +358,7 @@ export default class Notifications extends API {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gets all toasts.
|
|
|
|
|
* @returns {Array<Object|null>} All toasts
|
|
|
|
|
* @returns {Array<object|null>} All toasts
|
|
|
|
|
*/
|
|
|
|
|
getAllToasts () {
|
|
|
|
|
try {
|
|
|
|
@ -370,7 +370,7 @@ export default class Notifications extends API {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gets all active toasts.
|
|
|
|
|
* @returns {Array<Object|null>} All active toasts
|
|
|
|
|
* @returns {Array<object|null>} All active toasts
|
|
|
|
|
*/
|
|
|
|
|
getAllActiveToasts () {
|
|
|
|
|
try {
|
|
|
|
@ -388,7 +388,7 @@ export default class Notifications extends API {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gets all queued toasts.
|
|
|
|
|
* @returns {Array<Object|null>} All queued toasts
|
|
|
|
|
* @returns {Array<object|null>} All queued toasts
|
|
|
|
|
*/
|
|
|
|
|
getAllQueuedToasts () {
|
|
|
|
|
try {
|
|
|
|
|