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

namespace Bellwether.Model
{
    public class SolarEnergyModel
    {
        public string Area { get; set; }
        public string Unit { get; set; }
        public string Energy { get; set; }
        public string CO2EmissionSaved { get; set; }
        public string EquivalentTreesPlanted { get; set; }

        public static SolarEnergyModel Parse(SolarEnergyRawModel rawModel)
        {
            if (rawModel == null)
            {
                return new SolarEnergyModel();
            }
            return new SolarEnergyModel()
            {
                Area = rawModel.Area,
                Unit = rawModel.Unit,
                Energy = rawModel.Energy,
                CO2EmissionSaved = rawModel.CO2EmissionSaved,
                EquivalentTreesPlanted = rawModel.EquivalentTreesPlanted
            };
        }
    }

    public class SolarEnergyRawModel
    {
        public string Area { get; set; }
        public string Unit { get; set; }
        public string Energy { get; set; }
        public string CO2EmissionSaved { get; set; }
        public string EquivalentTreesPlanted { get; set; }
    }
}
