"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const Mdc_1 = __importDefault(require("./MDC/Mdc"));
/**
 * The `sos.native` API groups together methods for controlling the device using native commands.
 */
class NativeCommands {
    messagePrefix;
    postMessage;
    static MESSAGE_PREFIX = 'native_commands';
    mdc;
    /** @internal */
    constructor(messagePrefix, postMessage) {
        this.messagePrefix = messagePrefix;
        this.postMessage = postMessage;
        this.mdc = new Mdc_1.default(this.getMessagePrefix(), this.postMessage);
    }
    getMessagePrefix() {
        return this.messagePrefix + '.' + NativeCommands.MESSAGE_PREFIX;
    }
}
exports.default = NativeCommands;
//# sourceMappingURL=NativeCommands.js.map