Files
thomaskippster-comfymodeldo…/src/main/java/de/tki/comfymodels/domain/ModelInfo.java
T
Thomas 5c6f37741f feat: comprehensive model management enhancements and platform fixes
- Block 1: Refactored path logic into a centralized PathResolver for OS-agnostic and relative path handling.
- Block 2: Improved platform compatibility (shutdown, macOS menu, System Tray fallback).
- Block 3: Added Power-User features (Model Updater, Smart Cleanup, Thumbnails, Node Sync, Remote Status).
- Fixes: Recursive subfolder scanning, archive detection logic, and UI progress throttling.
2026-05-02 19:53:49 +02:00

63 lines
2.2 KiB
Java

package de.tki.comfymodels.domain;
import java.util.Objects;
public class ModelInfo {
private String type;
private String name;
private String url;
private String size = "Unknown";
private long byteSize = -1;
private String popularity = ""; // Download-Zahlen zur Sicherheit
private String base;
private String save_path;
private String description;
private String reference;
private String filename;
public ModelInfo() {}
public ModelInfo(String type, String name, String url) {
this.type = type;
this.name = name;
this.url = url;
}
public String getType() { return type; }
public void setType(String type) { this.type = type; }
public String getName() { return name; }
public void setName(String name) { this.name = name; }
public String getUrl() { return url; }
public void setUrl(String url) { this.url = url; }
public String getSize() { return size; }
public void setSize(String size) { this.size = size; }
public long getByteSize() { return byteSize; }
public void setByteSize(long byteSize) { this.byteSize = byteSize; }
public String getPopularity() { return popularity; }
public void setPopularity(String popularity) { this.popularity = popularity; }
public String getBase() { return base; }
public void setBase(String base) { this.base = base; }
public String getSave_path() { return save_path; }
public void setSave_path(String save_path) { this.save_path = save_path; }
public String getDescription() { return description; }
public void setDescription(String description) { this.description = description; }
public String getReference() { return reference; }
public void setReference(String reference) { this.reference = reference; }
public String getFilename() { return filename; }
public void setFilename(String filename) { this.filename = filename; }
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ModelInfo info = (ModelInfo) o;
return Objects.equals(name, info.name);
}
@Override
public int hashCode() {
return Objects.hash(name);
}
}