/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package scriptbuilder.structures.events;

import scriptbuilder.structures.ELEMENT;
import scriptbuilder.structures.I_XML_Writable;
import scriptbuilder.structures.ScriptEvent;
import scriptbuilder.structures.XMLBuilder;

/**
 * Data model for a CCTV event(Just a stub; CCTV events aren't currently
 * used). A CCTV event has, for now, a string message.
 *
 * @author Bryan McGuffin
 */
public class CCTVEvent extends ScriptEvent implements I_XML_Writable
{

    /**
     * Constructor.
     */
    public CCTVEvent()
    {
        super(ScriptEventType.CCTV_EVENT);
    }

    /**
     * The message represented by this event.
     */
    public String message = "";

    @Override
    public String toXML()
    {
        // Fix defect #202
        //String output = XMLWriter.simpleTag(message, ELEMENT.CCTV_INFO);
        String output = "<CCTV_INFO ID=\"0\" Dir=\"NORTH\" Toggle=\"false\"/>\n";
        return output;
    }
}
