public static Chunks FromElement(XElement e)
 {
     var r = new Chunks
     {
         ticket_id = e.Attribute("id").Value,
         Items = new List<Chunk>()
     };
     foreach (var item in e.Element("chunks").Elements("chunk"))
     {
         r.Items.Add(Chunk.FromElement(item));
     }
     return r;
 }
Esempio n. 2
0
        public static Chunks FromElement(XElement e)
        {
            var r = new Chunks
            {
                ticket_id = e.Attribute("id").Value,
                Items     = new List <Chunk>()
            };

            foreach (var item in e.Element("chunks").Elements("chunk"))
            {
                r.Items.Add(Chunk.FromElement(item));
            }
            return(r);
        }