package com.openosrs.client.plugins;

/**
 * Plugin information.
 */
public class PluginInfo {
    private final PluginMetadata metadata;
    private final PluginState state;
    private final boolean enabled;
    private final String error;
    
    public PluginInfo(PluginMetadata metadata, PluginState state, boolean enabled, String error) {
        this.metadata = metadata;
        this.state = state;
        this.enabled = enabled;
        this.error = error;
    }
    
    public PluginMetadata getMetadata() { return metadata; }
    public PluginState getState() { return state; }
    public boolean isEnabled() { return enabled; }
    public String getError() { return error; }
}