/* * TestInterface.java * * Copyright (C) 2008 Mark Fenton * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package tspeaklibtest; /** * A simple text based interface example to the backend library * @author markf */ import TSpeakLib.*; public class TestInterface implements TSpeakLib.ClientInterface { public TestInterface(ClientConnection connection) { connection.registerInterface(this); } public void textMessageReceived(ClientConnection.textMessage message) { System.out.println(message.senderName + ": " + message.msg); return; } public void audioDataReceived() { } }