📄 bsconfconsadapter.java
字号:
package edu.ou.kmi.buddyspace.plugins.conference.core;
/*
* BSConfConsAdapter.java
*
* Project: BuddySpace
* (C) Copyright Knowledge Media Institute 2003
*
*
* Created on 13 May 2003, 16:42
*/
//import java.util.EventListener;
//import edu.ou.kmi.buddyspace.xml.*;
import org.jabber.jabberbeans.util.*;
import edu.ou.kmi.buddyspace.core.*;
/**
* <code>BSConfConsAdapter</code> is an empty implementation of
* <code>BSConfConsumer</code> is interface you can implement to get
* conference events notifications and return their consumption.
*
* @author Jiri Komzak, Knowledge Media Institute, Open University, United Kingdom
*/
public class BSConfConsAdapter implements BSConfConsumer {
/** Called when message from room arrived */
public BSConsumationResult roomMessage(JID roomJID, String body) {
return new BSConsumationResult(BSConsumationResult.PASS);
}
/** Called when groupchat message arrived */
public BSConsumationResult groupMessage(JID fromAddress, String nick, String body) {
return new BSConsumationResult(BSConsumationResult.PASS);
}
/** Called when private message arrived */
public BSConsumationResult privateMessage(JID fromAddress, String nick, String body) {
return new BSConsumationResult(BSConsumationResult.PASS);
}
/** Called when invitation into a room arrived */
public BSConsumationResult invitation(JID fromAddress, JID roomJID, String subject, String body) {
return new BSConsumationResult(BSConsumationResult.PASS);
}
/** Called when presence of a nick in a room has changed */
public BSConsumationResult presenceChanged(JID fromAddress, String nick, BSPresenceInfo pi) {
return new BSConsumationResult(BSConsumationResult.PASS);
}
/** Called when state of room changed */
public BSConsumationResult stateChanged(JID roomJID, int state) {
return new BSConsumationResult(BSConsumationResult.PASS);
}
/** Called when an error occured */
public BSConsumationResult error(JID roomJID, String errCode, String errMsg) {
return new BSConsumationResult(BSConsumationResult.PASS);
}
/** Called when myJID is set */
public BSConsumationResult setMyJID(JID roomJID, JID myJID) {
return new BSConsumationResult(BSConsumationResult.PASS);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -