package com.saas.shared.dto.mapper;

import com.saas.admin.entity.TenantVoipConfig;
import com.saas.shared.dto.VoipConfigDTO;
import javax.annotation.processing.Generated;
import org.springframework.stereotype.Component;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2025-10-22T21:40:36+0100",
    comments = "version: 1.6.3, compiler: javac, environment: Java 25 (Homebrew)"
)
@Component
public class VoipConfigDtoMapperImpl implements VoipConfigDtoMapper {

    @Override
    public VoipConfigDTO toDto(TenantVoipConfig entity) {
        if ( entity == null ) {
            return null;
        }

        VoipConfigDTO.VoipConfigDTOBuilder voipConfigDTO = VoipConfigDTO.builder();

        voipConfigDTO.tenantId( entity.getTenantId() );
        voipConfigDTO.provider( entity.getProvider() );
        voipConfigDTO.aiAssistantId( entity.getAiAssistantId() );
        voipConfigDTO.aiType( entity.getAiType() );
        voipConfigDTO.messagingProfileId( entity.getMessagingProfileId() );
        voipConfigDTO.streamUrl( entity.getStreamUrl() );
        if ( entity.getIsActive() != null ) {
            voipConfigDTO.isActive( entity.getIsActive() );
        }

        voipConfigDTO.fromDatabase( true );

        return voipConfigDTO.build();
    }
}
