Report.java 1.31 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.day.cq.analytics.testandtarget;

import com.day.cq.analytics.testandtarget.ReportType;
import com.day.cq.analytics.testandtarget.Resolution;
import com.day.cq.analytics.testandtarget.Sample;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Report {
    private final String campaignId;
    private final Date start;
    private final Date end;
    private final Resolution resolution;
    private final ReportType type;
    private final List<Sample> samples = new ArrayList<Sample>();

    public Report(String campaignId, Date start, Date end, Resolution resolution, ReportType type) {
        this.campaignId = campaignId;
        this.start = start;
        this.end = end;
        this.resolution = resolution;
        this.type = type;
    }

    public void addSample(Sample sample) {
        this.samples.add(sample);
    }

    public String getCampaignId() {
        return this.campaignId;
    }

    public Date getStart() {
        return this.start;
    }

    public Date getEnd() {
        return this.end;
    }

    public Resolution getResolution() {
        return this.resolution;
    }

    public ReportType getType() {
        return this.type;
    }

    public List<Sample> getSamples() {
        return this.samples;
    }
}