Пример #1
0
        /// <summary>
        /// Initialises a new instance of the <see cref="RawObservations"/> class.
        /// </summary>
        public RawObservations()
        {
            this.version   = 3;
            this.location  = string.Empty;
            this.date      = string.Empty;
            this.notes     = string.Empty;
            this.length    = ObservationLength.Unspecified;
            this.intensity = ObservationIntensity.NotRecorded;
            this.timeOfDay = ObservationTimeOfDay.NotRecorded;
            this.weather   = ObservationWeather.NotRecorded;

            this.habitats = new RawHabitats();
            this.species  = new TypeString();
            this.heard    = new TypeString();
        }
Пример #2
0
 /// <summary>
 /// Set a new time of day in the model.
 /// </summary>
 /// <param name="newTimeOfDay">new time of day</param>
 public void SetTimeOfDay(ObservationTimeOfDay newTimeOfDay)
 {
     this.observations.TimeOfDay = newTimeOfDay;
 }
Пример #3
0
 /// <summary>
 /// Set the new observation time of day.
 /// </summary>
 /// <param name="newTimeOfDay">new time of day</param>
 private void NewObservationTimeOfDay(ObservationTimeOfDay newTimeOfDay)
 {
     this.observations.SetTimeOfDay(newTimeOfDay);
 }