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

com.aizuda.snailjob.server.web.service.convert.SceneConfigResponseVOConverterImpl Maven / Gradle / Ivy

package com.aizuda.snailjob.server.web.service.convert;

import com.aizuda.snailjob.server.web.model.response.SceneConfigResponseVO;
import com.aizuda.snailjob.template.datasource.persistence.po.RetrySceneConfig;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.processing.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2024-05-29T12:27:56+0800",
    comments = "version: 1.5.3.Final, compiler: javac, environment: Java 17.0.10 (Amazon.com Inc.)"
)
public class SceneConfigResponseVOConverterImpl implements SceneConfigResponseVOConverter {

    @Override
    public SceneConfigResponseVO convert(RetrySceneConfig retrySceneConfig) {
        if ( retrySceneConfig == null ) {
            return null;
        }

        SceneConfigResponseVO sceneConfigResponseVO = new SceneConfigResponseVO();

        sceneConfigResponseVO.setId( retrySceneConfig.getId() );
        sceneConfigResponseVO.setGroupName( retrySceneConfig.getGroupName() );
        sceneConfigResponseVO.setSceneName( retrySceneConfig.getSceneName() );
        sceneConfigResponseVO.setSceneStatus( retrySceneConfig.getSceneStatus() );
        sceneConfigResponseVO.setMaxRetryCount( retrySceneConfig.getMaxRetryCount() );
        sceneConfigResponseVO.setBackOff( retrySceneConfig.getBackOff() );
        sceneConfigResponseVO.setTriggerInterval( retrySceneConfig.getTriggerInterval() );
        sceneConfigResponseVO.setDescription( retrySceneConfig.getDescription() );
        sceneConfigResponseVO.setDeadlineRequest( retrySceneConfig.getDeadlineRequest() );
        sceneConfigResponseVO.setRouteKey( retrySceneConfig.getRouteKey() );
        sceneConfigResponseVO.setExecutorTimeout( retrySceneConfig.getExecutorTimeout() );
        sceneConfigResponseVO.setCreateDt( retrySceneConfig.getCreateDt() );
        sceneConfigResponseVO.setUpdateDt( retrySceneConfig.getUpdateDt() );

        return sceneConfigResponseVO;
    }

    @Override
    public List convertList(List retrySceneConfigs) {
        if ( retrySceneConfigs == null ) {
            return null;
        }

        List list = new ArrayList( retrySceneConfigs.size() );
        for ( RetrySceneConfig retrySceneConfig : retrySceneConfigs ) {
            list.add( convert( retrySceneConfig ) );
        }

        return list;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy