feat: 添加 AppConfig 配置类
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
57bfb756ef
commit
ae29ac8255
1 file changed
+35
@@ -0,0 +1,35 @@
|
||||
package cn.hugh.bz.gk2.model;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class AppConfig {
|
||||
private List<String> selectedFolders;
|
||||
private PlayMode playMode;
|
||||
private int intervalMinutes;
|
||||
private boolean isEnabled;
|
||||
private int currentIndex;
|
||||
|
||||
public AppConfig() {
|
||||
this.selectedFolders = new java.util.ArrayList<>();
|
||||
this.playMode = PlayMode.SEQUENTIAL;
|
||||
this.intervalMinutes = 30;
|
||||
this.isEnabled = false;
|
||||
this.currentIndex = 0;
|
||||
}
|
||||
|
||||
// Getters and Setters
|
||||
public List<String> getSelectedFolders() { return selectedFolders; }
|
||||
public void setSelectedFolders(List<String> folders) { this.selectedFolders = folders; }
|
||||
|
||||
public PlayMode getPlayMode() { return playMode; }
|
||||
public void setPlayMode(PlayMode mode) { this.playMode = mode; }
|
||||
|
||||
public int getIntervalMinutes() { return intervalMinutes; }
|
||||
public void setIntervalMinutes(int minutes) { this.intervalMinutes = minutes; }
|
||||
|
||||
public boolean isEnabled() { return isEnabled; }
|
||||
public void setEnabled(boolean enabled) { this.isEnabled = enabled; }
|
||||
|
||||
public int getCurrentIndex() { return currentIndex; }
|
||||
public void setCurrentIndex(int index) { this.currentIndex = index; }
|
||||
}
|
||||
Reference in new issue
Block a user