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

namespace SchnittstelleImporter.XML2006
{
    /// <summary>
    /// 
    /// </summary>
    public struct Quantifizierung
    {
        /// <summary>
        /// 
        /// </summary>
        public decimal Numerisch;
        /// <summary>
        /// 
        /// </summary>
        public string Text;

        /// <summary>
        /// 
        /// </summary>
        public override string ToString()
        {
            if (Text != null)
                return Text;
            if (Numerisch == 0)
                return "";
            return Numerisch.ToString();
        }
    }
    /// <summary>
    /// 
    /// </summary>
    public class RZustand
    {
        decimal station;
        string inspektionskode;
        string charakterisierung1;
        string charakterisierung2;
        bool verbindung;
        Quantifizierung quantifizierung1;
        Quantifizierung quantifizierung2;
        string streckenschaden;
        int streckenschadennr;
        int positionVon;
        int positionBis;
        string kommentar;

        /// <summary>
        /// 
        /// </summary>
        public decimal Station { get => station; set => station = value; }
        /// <summary>
        /// 
        /// </summary>
        public string Inspektionskode { get => inspektionskode; set => inspektionskode = value; }
        /// <summary>
        /// 
        /// </summary>
        public string Charakterisierung1 { get => charakterisierung1; set => charakterisierung1 = value; }
        /// <summary>
        /// 
        /// </summary>
        public string Charakterisierung2 { get => charakterisierung2; set => charakterisierung2 = value; }
        /// <summary>
        /// 
        /// </summary>
        public bool Verbindung { get => verbindung; set => verbindung = value; }
        /// <summary>
        /// 
        /// </summary>
        public Quantifizierung Quantifizierung1 { get => quantifizierung1; set => quantifizierung1 = value; }
        /// <summary>
        /// 
        /// </summary>
        public Quantifizierung Quantifizierung2 { get => quantifizierung2; set => quantifizierung2 = value; }
        /// <summary>
        /// 
        /// </summary>
        public string Streckenschaden { get => streckenschaden; set => streckenschaden = value; }
        /// <summary>
        /// 
        /// </summary>
        public int Streckenschadennr { get => streckenschadennr; set => streckenschadennr = value; }
        /// <summary>
        /// 
        /// </summary>
        public int PositionVon { get => positionVon; set => positionVon = value; }
        /// <summary>
        /// 
        /// </summary>
        public int PositionBis { get => positionBis; set => positionBis = value; }
        /// <summary>
        /// 
        /// </summary>
        public string Kommentar { get => kommentar; set => kommentar = value; }
    }
}
