-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathJsonApplicationState.java
47 lines (37 loc) · 953 Bytes
/
JsonApplicationState.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package listfix.json;
import listfix.config.IApplicationState;
import java.util.ArrayList;
import java.util.TreeMap;
public class JsonApplicationState implements IApplicationState
{
/**
* Keep track of playlist opened
*/
private final ArrayList<String> playlistsOpened = new ArrayList<>();
/**
* Index of active playlist
*/
private Integer activePlaylistIndex = null;
/**
* Keep track of frame positions
*/
private final TreeMap<String, JsonFrameSettings> framePositions = new TreeMap<>();
@Override
public ArrayList<String> getPlaylistsOpened()
{
return playlistsOpened;
}
@Override
public TreeMap<String, JsonFrameSettings> getFramePositions()
{
return this.framePositions;
}
public Integer getActivePlaylistIndex()
{
return activePlaylistIndex;
}
public void setActivePlaylistIndex(Integer activePlaylistIndex)
{
this.activePlaylistIndex = activePlaylistIndex;
}
}