using Core.DomainObjects;

namespace WeatherForecast.Models {

  /// <summary>
  /// 
  /// </summary>
  public class LocalizationModel {
    
    /// <summary>
    /// 
    /// </summary>
    public string? TimeZone { get; set; }
    
    /// <summary>
    /// 
    /// </summary>
    public string? Locale { get; set; }
    
    /// <summary>
    /// 
    /// </summary>
    public string? DateFormat { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public string? TimeFormat { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public string? Currency { get; set; }

    /// <summary>
    /// 
    /// </summary>

    public string? CurrencySymbol { get; set; }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="localization"></param>
    public LocalizationModel(Localization localization) {
      TimeZone = localization.TimeZone;
      Locale = localization.Locale;
      DateFormat = localization.DateFormat;
      TimeFormat = localization.TimeFormat;
      Currency = localization.Currency;
      CurrencySymbol = localization.CurrencySymbol;
    }
  }
}
