![JAR search and dependency download from the Maven repository](/logo.png)
com.bugsnag.Notification Maven / Gradle / Ivy
package com.bugsnag;
import com.bugsnag.serialization.Expose;
import java.util.Collections;
import java.util.List;
class Notification {
private Configuration config;
private Report report;
Notification(Configuration config, Report report) {
this.config = config;
this.report = report;
}
@Expose
public String getApiKey() {
String reportApiKey = report.getApiKey();
return reportApiKey != null ? reportApiKey : config.apiKey;
}
@Expose
public Notifier getNotifier() {
return NotifierUtils.getNotifier();
}
@Expose
public List getEvents() {
return Collections.singletonList(report);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy