All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.chutneytesting.execution.api.CampaignExecutionApiMapperImpl Maven / Gradle / Ivy

The newest version!
package com.chutneytesting.execution.api;

import com.chutneytesting.server.core.domain.execution.report.ServerReportStatus;
import com.chutneytesting.server.core.domain.scenario.campaign.CampaignExecution;
import java.time.LocalDateTime;
import javax.annotation.processing.Generated;
import org.springframework.stereotype.Component;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2024-11-25T22:31:19+0000",
    comments = "version: 1.6.2, compiler: javac, environment: Java 17.0.13 (Eclipse Adoptium)"
)
@Component
public class CampaignExecutionApiMapperImpl implements CampaignExecutionApiMapper {

    @Override
    public CampaignExecutionReportSummaryDto toCampaignExecutionReportSummaryDto(CampaignExecution campaignExecution) {
        if ( campaignExecution == null ) {
            return null;
        }

        ServerReportStatus status = null;
        Long executionId = null;
        String campaignName = null;
        LocalDateTime startDate = null;

        status = mapStatus( campaignExecution );
        executionId = campaignExecution.executionId;
        campaignName = campaignExecution.campaignName;
        startDate = campaignExecution.startDate;

        String dataSetId = null;

        CampaignExecutionReportSummaryDto campaignExecutionReportSummaryDto = new CampaignExecutionReportSummaryDto( executionId, campaignName, startDate, status, dataSetId );

        return campaignExecutionReportSummaryDto;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy