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

namespace KlassenBIB
{
    /// <summary>
    /// 
    /// </summary>
    [ContentProperty("Sanierung")]
    public class Inspektionsobjekt
    {
        private string strasseName = "none";
        /// <summary>
        /// 
        /// </summary>
        public string StrasseName  { get => strasseName; set => strasseName = value; }
        /// <summary>
        /// 
        /// </summary>
        public string OrtName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Hausnummer { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Projektnummer { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Objektbezeichnung { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string VonPunkt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string BisPunkt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string RohrMaterial { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public uint Kanalrohrweite { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double Haltungslaenge { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double Schachtlaenge { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime HaltungGemessen { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public InspektionskuerzelnCollection Schadenskuerzeln { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Bemerkung { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public SanierungCollection Sanierung { get;set; }
        /// <summary>
        /// In welcher Richtung wurde Inspiziert
        /// </summary>
        public string Inspektionsrichtung { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Inspektionsobjekt()
        {
            Schadenskuerzeln = new InspektionskuerzelnCollection();
            Sanierung = new SanierungCollection();
            if (HaltungGemessen <= DateTime.MinValue || HaltungGemessen >= DateTime.MaxValue) HaltungGemessen = DateTime.Now;
        }
    }
}
