Esempio n. 1
0
        private static async Task GetTrainingData()
        {
            var api = new ApiWrapper();

            var entryViewModels = await api.GetEntries();

            foreach (var entry in entryViewModels)
            {
                entries.Add(new Entry()
                {
                    Dairy        = entry.Dairy,
                    Gluten       = entry.Gluten,
                    Alcohol      = entry.Alcohol,
                    Caffeine     = entry.Caffeine,
                    FattyFood    = entry.FattyFood,
                    Spice        = entry.Spice,
                    OnionsPulses = entry.OnionsPulses,
                    Exercise     = entry.Exercise,
                    Rating       = entry.Rating
                });
            }
        }