import { GitLabMergeRequestAdapter } from './gitlabMergeRequest.adapter.js';
import { GitHubPullRequestAdapter } from './githubPullRequest.adapter.js';
import { parseReviewRequest } from '../../../../modules/review-execution/entities/reviewRequest/reviewRequest.guard.js';
export class PlatformAdapter {
    gitlabAdapter = new GitLabMergeRequestAdapter();
    githubAdapter = new GitHubPullRequestAdapter();
    translateGitLabEvent(event) {
        const reviewRequest = this.gitlabAdapter.translate(event);
        return parseReviewRequest(reviewRequest);
    }
    translateGitHubEvent(event) {
        const reviewRequest = this.githubAdapter.translate(event);
        return parseReviewRequest(reviewRequest);
    }
}
//# sourceMappingURL=platformAdapter.js.map