package org.piwik.reporting;

import org.piwik.reporting.PiwikConnection;
import org.piwik.reporting.PiwikParameters;

abstract public class PiwikModule {

	protected PiwikConnection connection;
	
	public PiwikModule (PiwikConnection connection) {
		this.connection = connection;
	}
	
	protected String request() {
		return request(new PiwikParameters());
	}

	protected String request(PiwikParameters params) {
		return connection.request(params);
	}

}