import Service from 'ember-service';

export default Service.extend({
  init() {
    this._super(...arguments);
    this._invocations = [];
  },

  success(message) {
    this._invocations.push(message);
  },

  error(message) {
    this._invocations.push(message);
  },

  alert(message) {
    this._invocations.push(message);
  },

  notice(message) {
    this._invocations.push(message);
  },

  resetInvocations() {
    this._invocations = [];
  }
});
