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

edu.stanford.protege.webprotege.issues.CommentPostedEvent Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package edu.stanford.protege.webprotege.issues;


import com.fasterxml.jackson.annotation.JsonTypeName;
import edu.stanford.protege.webprotege.common.EventId;
import edu.stanford.protege.webprotege.common.ProjectEvent;
import edu.stanford.protege.webprotege.common.ProjectId;
import edu.stanford.protege.webprotege.entity.OWLEntityData;

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

/**
 * Matthew Horridge
 * Stanford Center for Biomedical Informatics Research
 * 11 Oct 2016
 */
@JsonTypeName("webprotege.events.discussions.CommentPosted")
public record CommentPostedEvent(@Nonnull EventId eventId,
                                 @Nonnull ProjectId projectId,
                                 @Nonnull ThreadId threadId,
                                 @Nonnull Comment comment,
                                 @Nonnull Optional entity,
                                 int commentCountForEntity,
                                 int openCommentCountForEntity) implements ProjectEvent {

    public static final String CHANNEL = "webprotege.events.discussions.CommentPosted";

    @Override
    public String getChannel() {
        return CHANNEL;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy