package com.imofan.android.pns;

import android.content.Context;
import android.text.TextUtils;
import android.util.Log;
import org.jivesoftware.smack.PacketListener;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.packet.Message;
import org.jivesoftware.smack.packet.Packet;

/**
 *
 */
class XmppPacketListener implements PacketListener {
    private final static String LOG_TAG = "Mofang_PNS_XmppPacketListener";
    private Context mCtx;
    private XMPPConnection mConnection;

    public XmppPacketListener(XMPPConnection connection, Context ctx) {
        this.mConnection = connection;
        this.mCtx = ctx;
    }

    public void processPacket(Packet packet) {
        PNService.processMessage((Message) packet);
    }
}
