package com.keyboard.keyboardtheme.skin.datamanager.resourceconfig;



import java.util.ArrayList;
import java.util.List;

public class ConfigP {
    private String name;
    private List<KeyBean> keyBeans = new ArrayList<>();


    public ConfigP(String name) {
        this.name = name;
    }

    // Getters and Setters
    public String getName() {
        return name;
    }

    public List<KeyBean> getKeys() {
        return keyBeans;
    }

    public void addKey(KeyBean keyBean) {
        this.keyBeans.add(keyBean);
    }

    public KeyBean getLastKey() {
        return keyBeans.isEmpty() ? null : keyBeans.get(keyBeans.size() - 1);
    }


}