class InterviewInviteServiceImpl extends InviteService<InterviewInvite> implements InterviewInviteService {

    @Override
    public ServiceResult<InterviewInviteResource> openInvite(String inviteHash) {
        return getByHashIfOpen(inviteHash)
                .andOnSuccessReturn(this::openInvite)
                .andOnSuccessReturn(interviewInviteMapper::mapToResource);
    }

}