package com.eactive.testmaster.api.dto;

import com.eactive.testmaster.api.entity.MockRoute;
import com.eactive.testmaster.common.search.BaseSearch;
import com.eactive.testmaster.common.search.ColumnSearchModel;
import com.eactive.testmaster.common.search.SearchCondition;
import com.eactive.testmaster.common.search.SearchModel;
import java.util.ArrayList;
import java.util.List;

public class MockRouteSearch implements BaseSearch<MockRoute> {

    private String name;

    @Override
    public List<SearchModel> buildSearchCondition() {
        List<SearchModel> models = new ArrayList<>();
        models.add(new ColumnSearchModel("name", SearchCondition.LIKE, name));
        return models;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
