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

com.bugsnag.Notification Maven / Gradle / Ivy

There is a newer version: 3.7.2
Show newest version
package com.bugsnag;

import com.bugsnag.serialization.Expose;

import java.util.ArrayList;
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 new Notifier();
    }

    @Expose
    public List getEvents() {
        return Collections.singletonList(report);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy