﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NumbersGame.Win8.Data
{
    public class DesignTimeData
    {
        public List<Set> SetsList { get; set; }
        public List<Badge> BadgesList { get; set; }
        public string BackgroundSource { get; set; }
        public string BackgroundSourceAbout { get; set; }
        public int CorrectAnswers { get; set; }
        public int IncorrectAnswers { get; set; }

        public DesignTimeData()
        {
            SetsList = LoadSets();
            BadgesList = LoadBadges();
            BackgroundSource = "Assets/Background/1.png";
            BackgroundSourceAbout = "Assets/Background/AboutView.png";
            CorrectAnswers = 3;
            IncorrectAnswers = 4;
        }

        List<Set> LoadSets()
        {
            return new List<Set>
            {
                new Set { Id = 1, IsActive = true, IsPassed=false, Name = "Rybak1"},
                new Set { Id = 2, IsActive = true, IsPassed=false, Name = "Rybak2"},
                new Set { Id = 3, IsActive = true, IsPassed=false, Name = "Rybak3"},
                new Set { Id = 4, IsActive = true, IsPassed=false, Name = "Rybak4"},
                new Set { Id = 5, IsActive = true, IsPassed=false, Name = "Rybak5"},
                new Set { Id = 6, IsActive = true, IsPassed=false, Name = "Rybak6"}
            };
        }

        List<Badge> LoadBadges()
        {
            return new List<Badge>
            {
                new Badge { Id = 1, PictureURL = "Assets/Badges/bg1.png", PictureURLDisabled = "Assets/Badges/bg1dis.png", IsAchieved = true, Name = "One"},
                new Badge { Id = 1, PictureURL = "Assets/Badges/bg2.png", PictureURLDisabled = "Assets/Badges/bg2dis.png", IsAchieved = false, Name = "One"},
                new Badge { Id = 1, PictureURL = "Assets/Badges/bg3.png", PictureURLDisabled = "Assets/Badges/bg3dis.png", IsAchieved = false, Name = "One"},
                new Badge { Id = 1, PictureURL = "Assets/Badges/bg4.png", PictureURLDisabled = "Assets/Badges/bg4dis.png", IsAchieved = false, Name = "One"},
                new Badge { Id = 1, PictureURL = "Assets/Badges/bg5.png", PictureURLDisabled = "Assets/Badges/bg5dis.png", IsAchieved = false, Name = "One"},
                new Badge { Id = 1, PictureURL = "Assets/Badges/bg6.png", PictureURLDisabled = "Assets/Badges/bg6dis.png", IsAchieved = false, Name = "One"}
            };
        }
    }

    public class Set
    {
        public int Id { get; set; }
        public bool IsActive { get; set; }
        public bool IsPassed { get; set; }
        public string Name { get; set; }
    }

    public class Badge
    {
        public int Id { get; set; }
        public string PictureURL { get; set; }
        public string PictureURLDisabled { get; set; }
        public bool IsAchieved { get; set; }
        public string Name { get; set; }
    }
}