package com.atlassian.bitbucket.event.pull;

import com.atlassian.event.api.AsynchronousPreferred;
import com.atlassian.bitbucket.pull.PullRequest;
import com.atlassian.bitbucket.pull.PullRequestAction;
import com.atlassian.bitbucket.pull.PullRequestParticipant;

import javax.annotation.Nonnull;

/**
 * Event raised when a {@link PullRequestParticipant participant} approves a {@link PullRequest pull request}.
 *
 * @deprecated in 4.2 for removal in 5.0. Listen for {@link PullRequestParticipantApprovedEvent} instead.
 */
@AsynchronousPreferred
@Deprecated
public class PullRequestApprovedEvent extends PullRequestApprovalEvent {

    public PullRequestApprovedEvent(@Nonnull Object source, @Nonnull PullRequestParticipant participant,
                                    @Nonnull PullRequest pullRequest) {
        super(source, participant, pullRequest, PullRequestAction.APPROVED);
    }
}
