package be.ehealth.businessconnector.test.mycarenet.memberdatav2.session.builders.impl;

import be.ehealth.business.mycarenetdomaincommons.domain.InputReference;
import be.ehealth.businessconnector.mycarenet.memberdatacommons.builders.RequestObjectBuilderFactory;
import be.ehealth.businessconnector.mycarenet.memberdatacommons.exception.MemberDataBusinessConnectorException;
import be.ehealth.businessconnector.test.mycarenet.memberdatav2.session.builders.BuilderStrategy;
import be.ehealth.technicalconnector.exception.TechnicalConnectorException;
import be.fgov.ehealth.mycarenet.memberdata.protocol.v1.MemberDataConsultationRequest;

public class EncryptedBuilderStrategy implements BuilderStrategy {

    @Override
    public MemberDataConsultationRequest build(boolean isTest, InputReference inputReference, Object attributeQuery) throws MemberDataBusinessConnectorException, TechnicalConnectorException {
        return RequestObjectBuilderFactory.getEncryptedRequestObjectBuilder().buildConsultationRequest(true, inputReference, attributeQuery);
    }

}
