All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.eg.agent.android.harvest.Events Maven / Gradle / Ivy

There is a newer version: 2.1.3
Show newest version
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