3 import interfaces
.Constants
;
4 import interfaces
.DJInterface
;
8 import util
.command
.databases
.Browse
;
9 import util
.command
.databases
.Containers
;
10 import util
.command
.databases
.Edit
;
11 import util
.command
.databases
.Groups
;
14 public class Databases
extends PathNode
implements Command
{
16 public void init(Map
<String
, String
> args
) {
17 // no parameters expected
20 public Response
run(DJInterface dj
) {
21 int items
= dj
.library().size();
22 int containers
= dj
.library().numCollections();
24 util
.response
.Databases databases
=
25 new util
.response
.Databases(1, 0xf35226b7c8ee14d3l
,
26 "Memphis Stereo", items
, containers
);
31 public Command
browse(int db
) {
35 public Command
groups(int db
) {
39 public Command
containers(int db
) {
40 return new Containers();
43 public Command
edit(int db
) {
47 public Command
artists() {
48 return new Browse(1, Constants
.daap_browseartistlisting
, Constants
.daap_songartist
);
51 public Command
albums() {
52 return new Browse(1, Constants
.daap_browsealbumlisting
, Constants
.daap_songalbum
);
55 public Command
genres() {
56 return new Browse(1, Constants
.daap_browsegenrelisting
, Constants
.daap_songgenre
);