Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Locatie" /> class.
 /// </summary>
 /// <param name="begindatum">begindatum (required).</param>
 /// <param name="einddatum">einddatum (required).</param>
 /// <param name="geometrie">geometrie.</param>
 /// <param name="geometrieBron">geometrieBron.</param>
 /// <param name="geometrieType">geometrieType.</param>
 /// <param name="hoogte">hoogte.</param>
 /// <param name="identificatie">identificatie (required).</param>
 /// <param name="noemer">noemer.</param>
 /// <param name="omvattendeLocatieIdentificaties">omvattendeLocatieIdentificaties.</param>
 /// <param name="type">type (required).</param>
 public Locatie(DateTime begindatum = default(DateTime), DateTime einddatum = default(DateTime), string geometrie = default(string), string geometrieBron = default(string), GeometrieType?geometrieType = default(GeometrieType?), WaardeEenheid hoogte = default(WaardeEenheid), string identificatie = default(string), string noemer = default(string), List <string> omvattendeLocatieIdentificaties = default(List <string>), LocatieType type = default(LocatieType))
 {
     this.Begindatum = begindatum;
     this.Einddatum  = einddatum;
     // to ensure "identificatie" is required (not null)
     this.Identificatie = identificatie ?? throw new ArgumentNullException("identificatie is a required property for Locatie and cannot be null");
     this.Type          = type;
     this.Geometrie     = geometrie;
     this.GeometrieBron = geometrieBron;
     this.GeometrieType = geometrieType;
     this.Hoogte        = hoogte;
     this.Noemer        = noemer;
     this.OmvattendeLocatieIdentificaties = omvattendeLocatieIdentificaties;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="LocatieHal" /> class.
        /// </summary>
        /// <param name="begindatum">begindatum (required).</param>
        /// <param name="einddatum">einddatum (required).</param>
        /// <param name="geometrie">geometrie.</param>
        /// <param name="geometrieBron">geometrieBron.</param>
        /// <param name="geometrieType">geometrieType.</param>
        /// <param name="hoogte">hoogte.</param>
        /// <param name="identificatie">identificatie (required).</param>
        /// <param name="noemer">noemer.</param>
        /// <param name="omvattendeLocatieIdentificaties">omvattendeLocatieIdentificaties.</param>
        /// <param name="type">type (required).</param>
        /// <param name="links">links.</param>
        public LocatieHal(DateTime begindatum = default(DateTime), DateTime einddatum = default(DateTime), string geometrie = default(string), string geometrieBron = default(string), GeometrieType?geometrieType = default(GeometrieType?), WaardeEenheid hoogte = default(WaardeEenheid), string identificatie = default(string), string noemer = default(string), List <string> omvattendeLocatieIdentificaties = default(List <string>), LocatieType type = default(LocatieType), LocatieLinks links = default(LocatieLinks))
        {
            // to ensure "begindatum" is required (not null)
            if (begindatum == null)
            {
                throw new InvalidDataException("begindatum is a required property for LocatieHal and cannot be null");
            }
            else
            {
                this.Begindatum = begindatum;
            }

            // to ensure "einddatum" is required (not null)
            if (einddatum == null)
            {
                throw new InvalidDataException("einddatum is a required property for LocatieHal and cannot be null");
            }
            else
            {
                this.Einddatum = einddatum;
            }

            // to ensure "identificatie" is required (not null)
            if (identificatie == null)
            {
                throw new InvalidDataException("identificatie is a required property for LocatieHal and cannot be null");
            }
            else
            {
                this.Identificatie = identificatie;
            }

            // to ensure "type" is required (not null)
            if (type == null)
            {
                throw new InvalidDataException("type is a required property for LocatieHal and cannot be null");
            }
            else
            {
                this.Type = type;
            }

            this.Geometrie     = geometrie;
            this.GeometrieBron = geometrieBron;
            this.GeometrieType = geometrieType;
            this.Hoogte        = hoogte;
            this.Noemer        = noemer;
            this.OmvattendeLocatieIdentificaties = omvattendeLocatieIdentificaties;
            this.Links = links;
        }