com.eg.agent.android.harvest.Events Maven / Gradle / Ivy
package com.eg.agent.android.harvest;
import com.eg.agent.android.harvest.type.HarvestableArray;
import com.eg.google.gson.JsonArray;
import java.util.ArrayList;
import java.util.Collection;
public class Events extends HarvestableArray {
private final Collection events = new ArrayList();
public JsonArray asJsonArray() {
JsonArray array = new JsonArray();
for (Event event : this.events) {
array.add(event.asJson());
}
return array;
}
public void addEvent(Event event) {
this.events.add(event);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy