/*----------------------------------------------------------------------------+
*| |
*| Android's Hooker |
*| |
*+---------------------------------------------------------------------------+
*| Copyright (C) 2011 Georges Bossert and Dimitri Kirchner |
*| This program is free software: you can redistribute it and/or modify |
*| it under the terms of the GNU General Public License as published by |
*| the Free Software Foundation, either version 3 of the License, or |
*| (at your option) any later version. |
*| |
*| 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/>. |
*+---------------------------------------------------------------------------+
*| @url : http://www.amossys.fr |
*| @contact : android-hooker@amossys.fr |
*| @sponsors : Amossys, http://www.amossys.fr |
*+---------------------------------------------------------------------------+
*/
package com.amossys.hooker.reporting;
import com.amossys.hooker.common.InterceptEvent;
/**
* @author Georges Bossert
*
*/
public abstract class AbstractReporter {
private String idXp = "0";
public void reportEvent(InterceptEvent event) {
event.setIDXP(this.getIdXp());
this.report(event);
}
protected abstract void report(InterceptEvent parcelableEvent);
/**
* @return the idXp
*/
public String getIdXp() {
return idXp;
}
/**
* @param idXp the idXp to set
*/
public void setIdXp(String idXp) {
this.idXp = idXp;
}
}