use of com.optimizely.ab.event.LogEvent in project java-sdk by optimizely.
the class ActivateNotificationListener method notify.
/**
* Base notify called with var args. This method parses the parameters and calls the abstract method.
*
* @param args - variable argument list based on the type of notification.
*
* @deprecated by {@link ActivateNotificationListener#handle(ActivateNotification)}
*/
@Override
@Deprecated
public final void notify(Object... args) {
assert (args[0] instanceof Experiment);
Experiment experiment = (Experiment) args[0];
assert (args[1] instanceof String);
String userId = (String) args[1];
Map<String, ?> attributes = null;
if (args[2] != null) {
assert (args[2] instanceof java.util.Map);
attributes = (Map<String, ?>) args[2];
}
assert (args[3] instanceof Variation);
Variation variation = (Variation) args[3];
assert (args[4] instanceof LogEvent);
LogEvent logEvent = (LogEvent) args[4];
onActivate(experiment, userId, attributes, variation, logEvent);
}
Aggregations