using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using SLCommon.Entities;
using SLAdvanced.LocalData.GeoDataService;

namespace SLAdvanced.Translators
{
    public static class ClientGeoCityTranslator
    {
        #region Translation methods

        public static ClientGeoCity ToClientEntity(ExposedGeoCity city)
        {
            return new ClientGeoCity()
            {
                Description = city.CityInformation,
                Title = city.CityName,
                Latitude = city.Latitude,
                Longitude = city.Longitude, 
                Population = city.DemographicInformation,
                Distance = city.Distance
            };
        }

        #endregion
    }
}
