text: import BaseStore from '../lib/base-store';
  
  
  class AppStore extends BaseStore {
    /**
     * @constructor
     */
    constructor () {
      super();
  
      this.state = {
        appsGrammar: undefined,
        contacts: [],
        contactsGrammar: undefined
      };
    }
  
    /**
     * Gets the apps grammar state
     */
    getAppsGrammar () {
      return this.state.appsGrammar;
    }
  
    /**
     * Updates the apps grammar state and emits a change event
     */
    updateAppsGrammar (grammar) {
      this.state.appsGrammar = grammar;
  
      this.emitChange();
    }
  
    /**
     * Gets the contacts grammar state
     */
    getContactsGrammar () {
      return this.state.contactsGrammar;
    }
  
    /**
     * Updates the contacts grammar state and emits a change event
     */
    updateContactsGrammar (grammar) {
      this.state.contactsGrammar = grammar;
  
      this.emitChange();
    }
  
    /**
     * Gets the contacts state
     */
    getContacts () {
      return this.state.contacts;
    }
  
    /**
     * Updates the contacts state and emits a change event
     */
    updateContacts (contacts) {
      this.state.contacts = contacts;
  
      this.emitChange();
    }
  }
  
  
  export default new AppStore();
  