1 /*
2  * Copyright (C) 2022 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.adservices.service.measurement.actions;
18 
19 import org.json.JSONObject;
20 
21 import java.util.ArrayList;
22 import java.util.List;
23 
24 /**
25  * Report objects include destination, report time, and payload.
26  */
27 public final class ReportObjects {
28     public final List<JSONObject> mEventReportObjects;
29     public final List<JSONObject> mAggregateReportObjects;
30     public final List<JSONObject> mDebugEventReportObjects;
31     public final List<JSONObject> mDebugAggregateReportObjects;
32     public final List<JSONObject> mDebugReportObjects;
33 
ReportObjects()34     public ReportObjects() {
35         mEventReportObjects = new ArrayList<>();
36         mAggregateReportObjects = new ArrayList<>();
37         mDebugEventReportObjects = new ArrayList<>();
38         mDebugAggregateReportObjects = new ArrayList<>();
39         mDebugReportObjects = new ArrayList<>();
40     }
41 
ReportObjects( List<JSONObject> eventReportObjects, List<JSONObject> aggregateReportObjects, List<JSONObject> debugEventReportObjects, List<JSONObject> debugAggregateReportObjects, List<JSONObject> debugReportObjects)42     public ReportObjects(
43             List<JSONObject> eventReportObjects,
44             List<JSONObject> aggregateReportObjects,
45             List<JSONObject> debugEventReportObjects,
46             List<JSONObject> debugAggregateReportObjects,
47             List<JSONObject> debugReportObjects) {
48         mEventReportObjects = eventReportObjects;
49         mAggregateReportObjects = aggregateReportObjects;
50         mDebugEventReportObjects = debugEventReportObjects;
51         mDebugAggregateReportObjects = debugAggregateReportObjects;
52         mDebugReportObjects = debugReportObjects;
53     }
54 }
55