com.eg.agent.android.measurement.producer.ActivityMeasurementProducer Maven / Gradle / Ivy
package com.eg.agent.android.measurement.producer;
import com.eg.agent.android.activity.MeasuredActivity;
import com.eg.agent.android.measurement.ActivityMeasurement;
import com.eg.agent.android.measurement.MeasurementType;
public class ActivityMeasurementProducer extends BaseMeasurementProducer {
public ActivityMeasurementProducer() {
super(MeasurementType.Activity);
}
public void produceMeasurement(MeasuredActivity measuredActivity) {
super.produceMeasurement(new ActivityMeasurement(measuredActivity.getMetricName(), measuredActivity.getStartTime(), measuredActivity.getEndTime()));
super.produceMeasurement(new ActivityMeasurement(measuredActivity.getBackgroundMetricName(), measuredActivity.getStartTime(), measuredActivity.getEndTime()));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy