package _VisualDVM.TestingSystem.SAPFOR.Json;
import Common.CommonConstants;
import _VisualDVM.Passes.PassCode;
import _VisualDVM.TestingSystem.SAPFOR.SapforSettings.SapforSettings;
import com.google.gson.annotations.Expose;

import java.io.Serializable;
import java.util.List;
import java.util.Vector;
//на самом деле уже settings. конфиграция = группы + параметры
public class SapforConfiguration_json implements Serializable {
    @Expose
    public int id = CommonConstants.Nan;
    @Expose
    public String name = "";
    @Expose
    public String flags = "";
    @Expose
    public List<PassCode> codes = new Vector<>();
    //--
    public SapforConfiguration_json() {
    }
    public SapforConfiguration_json(SapforSettings sapforSettings) {
        id = sapforSettings.id;
        name = sapforSettings.description;
        flags = sapforSettings.flags;
        codes = sapforSettings.getCheckedCodes();
    }
}
