import { ViscaCommand } from 'visca-over-ip';
import { ActionAPI, ActionAPI_StatusTypes } from '../../../ActionAPI';
import { simpleCommandEditor, simpleCommandHandle } from '../simpleCommandHandler';

module.exports = (actionAPI: ActionAPI) => {
	actionAPI.handle((properties, status: (text: string, type: ActionAPI_StatusTypes) => void) => {
		var command = ViscaCommand.cameraIrisUp();
		simpleCommandHandle(actionAPI, command, properties, status);
	});

	actionAPI.onOpenEditor(simpleCommandEditor);
};
