AbstractReportSuite.java 1.03 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  org.apache.sling.commons.json.JSONException
 *  org.apache.sling.commons.json.JSONObject
 */
package com.day.cq.analytics.sitecatalyst.rsmerger;

import com.day.cq.analytics.sitecatalyst.rsmerger.ReportSuiteVariable;
import org.apache.sling.commons.json.JSONException;
import org.apache.sling.commons.json.JSONObject;

@Deprecated
public abstract class AbstractReportSuite
implements ReportSuiteVariable {
    protected String rsid;
    protected String siteTitle;
    protected JSONObject jsonObj;

    public AbstractReportSuite(JSONObject jsonObj) throws JSONException {
        this.rsid = jsonObj.getString("rsid");
        this.siteTitle = jsonObj.getString("site_title");
        this.jsonObj = jsonObj;
    }

    @Override
    public String getRsid() {
        return this.rsid;
    }

    @Override
    public String getSiteTitle() {
        return this.siteTitle;
    }

    @Override
    public JSONObject getJSONObject() {
        return this.jsonObj;
    }
}