// 
// Decompiled by Procyon v0.6.0
// 

package org.jline.builtins.telnet;

public class ConnectionEvent
{
    private final Connection source;
    private final Type type;
    
    public ConnectionEvent(final Connection source, final Type type) {
        this.type = type;
        this.source = source;
    }
    
    public Connection getSource() {
        return this.source;
    }
    
    public Type getType() {
        return this.type;
    }
    
    public enum Type
    {
        CONNECTION_IDLE, 
        CONNECTION_TIMEDOUT, 
        CONNECTION_LOGOUTREQUEST, 
        CONNECTION_BREAK, 
        CONNECTION_TERMINAL_GEOMETRY_CHANGED;
    }
}
