import AbstractController from '@js/Controller/AbstractController';
import SystemService from '@js/Services/SystemService';

export default class Status extends AbstractController {

    /**
     *
     * @param {Message} message
     * @param {Message} reply
     */
    async execute(message, reply) {
        let info   = await SystemService.getBrowserInfo(),
            status = {device: info.device};

        reply
            .setType('passlink.data')
            .setPayload(status);
    }
}