Example #1
0
 public Measurement(int id, double value, MeasurementType measurementType, DateTime timestamp, Station station, Unit unit)
 {
     Id              = id;
     Value           = value;
     MeasurementType = measurementType;
     Timestamp       = timestamp;
     Station         = station;
     Unit            = unit;
 }
Example #2
0
 public override bool Equals(object obj)
 {
     if ((obj == null) || !this.GetType().Equals(obj.GetType()))
     {
         return(false);
     }
     else
     {
         MeasurementType temp = (MeasurementType)obj;
         return((this.MeasurementTypeId == temp.MeasurementTypeId) && (this.Name == temp.Name));
     }
 }