Example #1
0
        public async Task <Vplan> Load()
        {
            using (var client = new HttpClient {
                BaseAddress = new Uri($"{App.BackendUrl}/")
            })
            {
                var xml = await client.GetStringAsync($"raw/vplan?version=1.2.4");

                return(await VplanParser.Parse(xml));
            }
        }
Example #2
0
        public async Task <List <SchoolClassBookmark> > LoadSchoolClassBookmarks()
        {
            var vplan = await VplanParser.Parse(xml);

            var schoolClassBookmarks = new HashSet <SchoolClassBookmark>();

            foreach (var change in vplan.Changes)
            {
                schoolClassBookmarks.Add(new SchoolClassBookmark(change.SchoolClass, false, false));
            }
            return(schoolClassBookmarks.ToList());
        }
Example #3
0
 public async Task <Vplan> Load()
 {
     return(await VplanParser.Parse(xml));
 }