Esempio n. 1
0
        public Wmp11ContentDirectory Build()
        {
            var containers = new List <Object>(4);

            containers.Add(music_builder.Build(ContainerInfoConsumer));

            ContainerInfoConsumer(new ContainerInfo(new Container(Wmp11Ids.Root, "-1",
                                                                  new ContainerOptions {
                Title = "Root", ChildCount = 4
            }), containers));

            var content_directory = new Wmp11ContentDirectory(url, this.objects, this.containers);

            this.objects    = new Dictionary <string, ObjectInfo>();
            this.containers = new Dictionary <string, ContainerInfo>();
            return(content_directory);
        }
 public Wmp11QueryVisitor (Wmp11ContentDirectory contentDirectory, string container_id)
 {
     this.content_directory = contentDirectory;
     this.container_id = container_id;
 }
 public Wmp11QueryVisitor(Wmp11ContentDirectory contentDirectory, string container_id)
 {
     this.content_directory = contentDirectory;
     this.container_id      = container_id;
 }
        public Wmp11ContentDirectory Build ()
        {
            var containers = new List<Object> (4);

            containers.Add (music_builder.Build (ContainerInfoConsumer));

            ContainerInfoConsumer (new ContainerInfo (new Container (Wmp11Ids.Root, "-1",
                new ContainerOptions { Title = "Root", ChildCount = 4 }), containers));

            var content_directory = new Wmp11ContentDirectory (url, this.objects, this.containers);
            this.objects = new Dictionary<string, ObjectInfo> ();
            this.containers = new Dictionary<string, ContainerInfo> ();
            return content_directory;
        }