package com.axis.innovators.box.plugins;

import com.google.gson.annotations.SerializedName;

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

public class PluginMetadata {
    @SerializedName("id")
    private String id;

    @SerializedName("name")
    private String name;

    @SerializedName("version")
    private String version = "1.0.0";

    @SerializedName("description")
    private String description = "";

    @SerializedName("author")
    private String author = "Unknown";

    @SerializedName("dependencies")
    private List<String> dependencies = new ArrayList<>();

    public String getId() { return id; }
    public String getName() { return name; }
    public String getVersion() { return version; }
    public String getDescription() { return description; }
    public String getAuthor() { return author; }
    public List<String> getDependencies() { return dependencies; }

    public boolean isValid() {
        return id != null && !id.isEmpty() &&
                name != null && !name.isEmpty() &&
                version != null && !version.isEmpty();
    }
}
