FileDocCategorySizeDatePackage
IncomingMessageListener.javaAPI DocWireless Messaging API1536Thu Oct 09 23:12:28 BST 2003wmafw

IncomingMessageListener.java

/*
 *  IncomingMessageListener.java
 *
 *  Author: C. Enrique Ortiz, October 2003
 *
 *  Companion source code to "Advanced Messaging Coding with JSR 120".
 *
 *  Based on original work by C. Enrique Ortiz.
 *
 *  COPYRIGHT All rights reserved Sony Ericsson Mobile Communications AB 2003.
 *  The software is the copyrighted work of Sony Ericsson Mobile Communications AB.
 *  The use of the software is subject to the terms of the end-user license
 *  agreement which accompanies or is included with the software. The software is
 *  provided "as is" and Sony Ericsson specifically disclaim any warranty or
 *  condition whatsoever regarding merchantability or fitness for a specific
 *  purpose, title or non-infringement. No warranty of any kind is made in
 *  relation to the condition, suitability, availability, accuracy, reliability,
 *  merchantability and/or non-infringement of the software provided herein.
 */

package wmafw;

/**
 * Defines a WMA Framework incoming message lister.
 */
public interface IncomingMessageListener {

    /**
     * New Text Message Notification Callback.
     * @param from is the address of the sender
     * @param message is the received text message
     */
    public void onTextMessage(String from, String message);

    /**
     * New BinaryMessage Notification Callback.
     * @param from is the address of the sender
     * @param message is the received binary message
     */
    public void onBinaryMessage(String from, byte[] message);
}