package com.openosrs.client.scripting;

/**
 * Information about a script execution.
 */
public class ScriptInfo {
    private final String executionId;
    private final String scriptName;
    private final ScriptStatus status;
    private final long startTime;
    private final String error;
    
    public ScriptInfo(String executionId, String scriptName, ScriptStatus status, long startTime, String error) {
        this.executionId = executionId;
        this.scriptName = scriptName;
        this.status = status;
        this.startTime = startTime;
        this.error = error;
    }
    
    public String getExecutionId() { return executionId; }
    public String getScriptName() { return scriptName; }
    public ScriptStatus getStatus() { return status; }
    public long getStartTime() { return startTime; }
    public String getError() { return error; }
    public long getRuntime() { return System.currentTimeMillis() - startTime; }
}