package com.atlassian.stash.internal.pull.cleanup;

import com.atlassian.event.api.AsynchronousPreferred;
import com.atlassian.bitbucket.event.repository.AbstractRepositoryRefsChangedEvent;
import com.atlassian.bitbucket.repository.RefChange;
import com.atlassian.bitbucket.repository.Repository;

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

/**
 * @since 2.3
 */
@AsynchronousPreferred
public class PullRequestSourceBranchDeletedEvent extends AbstractRepositoryRefsChangedEvent {

    public PullRequestSourceBranchDeletedEvent(@Nonnull Object source, @Nonnull Repository repository,
                                               @Nonnull RefChange refChange) {
        super(source, repository, Collections.singleton(refChange));
    }
}
