Esempio n. 1
0
 public Height(StructuredDateTime when, LengthMeasurement length)
     : this()
 {
     if (when == null)
     {
         throw new ArgumentNullException("when");
     }
     if (length == null)
     {
         throw new ArgumentNullException("length");
     }
     When = when;
     Value = length;
 }
Esempio n. 2
0
        public Weight(StructuredDateTime when, WeightMeasurement weight)
            : this()
        {
            if (when == null)
            {
                throw new ArgumentNullException("when");
            }
            if (weight == null)
            {
                throw new ArgumentNullException("weight");
            }

            When = when;
            Value = weight;
        }
        public BloodPressure(StructuredDateTime when, NonNegativeInt systolic, NonNegativeInt diastolic)
            : this()
        {
            if (when == null)
            {
                throw new ArgumentNullException("when");
            }

            if (systolic == null)
            {
                throw new ArgumentNullException("systolic");
            }

            if (diastolic == null)
            {
                throw new ArgumentNullException("diastolic");
            }

            When = when;
            Systolic = systolic;
            Diastolic = diastolic;
        }
 public ApproxDateTime(DateTimeOffset dt)
 {
     DateTime = new StructuredDateTime(dt);
 }
Esempio n. 5
0
 public Weight(StructuredDateTime when)
     : this(when, null)
 {
 }