package com.openosrs.client.scripting;

/**
 * Script event for notifications.
 */
public class ScriptEvent {
    private final ScriptEventType type;
    private final String scriptName;
    private final String executionId;
    private final ScriptStatus status;
    private final long timestamp;
    
    public ScriptEvent(ScriptEventType type, String scriptName, String executionId, ScriptStatus status) {
        this.type = type;
        this.scriptName = scriptName;
        this.executionId = executionId;
        this.status = status;
        this.timestamp = System.currentTimeMillis();
    }
    
    public ScriptEventType getType() { return type; }
    public String getScriptName() { return scriptName; }
    public String getExecutionId() { return executionId; }
    public ScriptStatus getStatus() { return status; }
    public long getTimestamp() { return timestamp; }
}