/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE  AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE:  you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { Base, markType, getInstanceType } from "igniteui-angular-core/ES2015/type";
import { DictionaryUtil } from "igniteui-angular-core/ES2015/dictionary";
/**
 * @hidden
 */
export class MessageHandler_Spark extends Base {
    constructor() {
        super(...arguments);
        this.a = DictionaryUtil.dictionaryCreate();
    }
    addHandler(a, b) {
        this.a.set(a.typeName, b);
    }
    messageReceived(a) {
        let b;
        let c = getInstanceType(a).typeName;
        if (this.a.has(c)) {
            b = this.a.get(c);
            b(a);
        }
    }
}
MessageHandler_Spark.$t = markType(MessageHandler_Spark, 'MessageHandler_Spark');
//# sourceMappingURL=MessageHandler_Spark.js.map