"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const events_1 = require("events");
const constants_1 = require("../../common/constants");
class IOSNotification extends events_1.EventEmitter {
    getAttachRequest(appId, deviceId) {
        this.emit(constants_1.ATTACH_REQUEST_EVENT_NAME, { deviceId, appId });
        return this.formatNotification(IOSNotification.ATTACH_REQUEST_NOTIFICATION_NAME, appId);
    }
    getReadyForAttach(projectId) {
        return this.formatNotification(IOSNotification.READY_FOR_ATTACH_NOTIFICATION_NAME, projectId);
    }
    formatNotification(notification, projectId) {
        return `${projectId}:NativeScript.Debug.${notification}`;
    }
}
IOSNotification.ATTACH_REQUEST_NOTIFICATION_NAME = "AttachRequest";
IOSNotification.READY_FOR_ATTACH_NOTIFICATION_NAME = "ReadyForAttach";
exports.IOSNotification = IOSNotification;
$injector.register("iOSNotification", IOSNotification);
