package com.sybotan.android.demo.bean;

import com.framework.mvvm.model.db.entity.dict.PipeConfigEntity;

import java.util.ArrayList;
import java.util.Objects;

/**
 * Created by lihao.
 * Date: 2021/10/18
 */
public class PipeConfigEntityPackClass {
    public String pipeTypeName;
    public PipeConfigEntity entity;
    public ArrayList<TargetPipeType> targetTypes = new ArrayList<>();

    public boolean samePipeConfig(PipeConfigEntity cfg) {
        return Objects.equals(entity.getPipeType(), cfg.getPipeType()) && Objects.equals(entity.getPipeSubType(), cfg.getPipeSubType());
    }

    public static class TargetPipeType {
        public boolean canFrom;
        public boolean canTo;
        public boolean canConnect;
        public String srcCode;
        public String pipeType;
        public String pipeSubType;
        public String targetCode;
    }
}
