bsauthevent.java

来自「一款即时通讯软件」· Java 代码 · 共 64 行

JAVA
64
字号
package edu.ou.kmi.buddyspace.core;

/*
 * BSAuthEvent.java
 *
 * Project: BuddySpace
 * (C) Copyright Knowledge Media Institute 2002
 *
 *
 * Created on 16 July 2002, 11:49
 */

import java.util.EventObject;

//import org.jabber.jabberbeans.*;

/**
 * <code>BSAuthEvent</code> contains information about event
 * during authentication process. It contains new current state.
 *
 * @author  Jiri Komzak, Knowledge Media Institute, Open University, United Kingdom
 */
public class BSAuthEvent extends EventObject {
    protected BSAuthState state;
    //protected PacketID id;
    
    // * @deprecated - Use the <code>BSAuthEvent(Object source, int state, String id)</code> instead!
    
    /**
     * Constructor.
     */
    BSAuthEvent(Object source, int state) {
        super(source);
        this.state = new BSAuthState();
        this.state.value = state;
        //id = new PacketID();
    }
    
    /**
     * Constructor.
     */
    /*BSAuthEvent(Object source, int state, String id) {
        super(source);
        this.state = new BSAuthState();
        this.state.value = state;
        this.id = new PacketID(id);
    }*/
    
    /**
     * Returns <code>BSAuthState</code>.
     */
    public BSAuthState getState() {
        return state;
    }
    
    /**
     * Returns id of the authentication packet.
     */
    /*public String getID() {
        return id.getID();
    }*/
    
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?