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

edu.stanford.protege.webprotege.projectsettings.WebhookSettings Maven / Gradle / Ivy

There is a newer version: 2.0.2-WHO
Show newest version
package edu.stanford.protege.webprotege.projectsettings;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.auto.value.AutoValue;
import com.google.common.collect.ImmutableList;

import javax.annotation.Nonnull;
import java.util.List;

/**
 * Matthew Horridge
 * Stanford Center for Biomedical Informatics Research
 * 8 Jun 2017
 */
@AutoValue

public abstract class WebhookSettings {

    @JsonProperty("webhookSettings")
    @Nonnull
    public abstract ImmutableList getWebhookSettings();

    @Nonnull
    @JsonCreator
    public static WebhookSettings get(@Nonnull @JsonProperty("webhookSettings") List webhookSettings) {
        return new AutoValue_WebhookSettings(ImmutableList.copyOf(webhookSettings));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy