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

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

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

import com.aizuda.snailjob.server.web.model.response.NotifyConfigResponseVO;
import com.aizuda.snailjob.template.datasource.persistence.po.NotifyConfig;
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 NotifyConfigResponseVOConverterImpl implements NotifyConfigResponseVOConverter {

    @Override
    public NotifyConfigResponseVO convert(NotifyConfig notifyConfig) {
        if ( notifyConfig == null ) {
            return null;
        }

        NotifyConfigResponseVO notifyConfigResponseVO = new NotifyConfigResponseVO();

        notifyConfigResponseVO.setId( notifyConfig.getId() );
        notifyConfigResponseVO.setGroupName( notifyConfig.getGroupName() );
        notifyConfigResponseVO.setBusinessId( notifyConfig.getBusinessId() );
        notifyConfigResponseVO.setSystemTaskType( notifyConfig.getSystemTaskType() );
        notifyConfigResponseVO.setNotifyStatus( notifyConfig.getNotifyStatus() );
        notifyConfigResponseVO.setNotifyThreshold( notifyConfig.getNotifyThreshold() );
        notifyConfigResponseVO.setNotifyScene( notifyConfig.getNotifyScene() );
        notifyConfigResponseVO.setRateLimiterStatus( notifyConfig.getRateLimiterStatus() );
        notifyConfigResponseVO.setRateLimiterThreshold( notifyConfig.getRateLimiterThreshold() );
        notifyConfigResponseVO.setDescription( notifyConfig.getDescription() );
        notifyConfigResponseVO.setCreateDt( notifyConfig.getCreateDt() );
        notifyConfigResponseVO.setUpdateDt( notifyConfig.getUpdateDt() );

        notifyConfigResponseVO.setRecipientIds( NotifyConfigResponseVOConverter.toNotifyRecipientIds(notifyConfig.getRecipientIds()) );

        return notifyConfigResponseVO;
    }

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

        List list = new ArrayList( notifyConfigs.size() );
        for ( NotifyConfig notifyConfig : notifyConfigs ) {
            list.add( convert( notifyConfig ) );
        }

        return list;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy