com.eg.agent.android.analytics.AnalyticsEventFactory Maven / Gradle / Ivy
package com.eg.agent.android.analytics;
import java.util.Set;
public class AnalyticsEventFactory {
static AnalyticsEvent createEvent(String name, AnalyticsEventCategory eventCategory, String eventType, Set eventAttributes) {
switch (eventCategory) {
case Session:
return new SessionEvent(eventAttributes);
case Interaction:
return new InteractionEvent(name, eventAttributes);
case Crash:
return new CrashEvent(name, eventAttributes);
case Custom:
return new CustomEvent(name, eventType, eventAttributes);
default:
return null;
}
}
private AnalyticsEventFactory() {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy