Example #1
0
        public static PeriodicIntervalTime CreateFromPivlR2(PeriodicIntervalTimeR2 pivlR2)
        {
            DateDiff       dateDiff       = (pivlR2.Period == null ? null : new DateDiff(pivlR2.Period));
            Representation representation = pivlR2.Period != null || pivlR2.Phase != null ? Representation.PERIOD_PHASE : Representation.FREQUENCY;

            return(new PeriodicIntervalTime(dateDiff, pivlR2.Phase, pivlR2.FrequencyRepetitions, pivlR2.FrequencyQuantity, representation));
        }
Example #2
0
 private bool Equals(PeriodicIntervalTimeR2 that)
 {
     return(new EqualsBuilder()
            .Append(this.Period, that.Period)
            .Append(this.Phase, that.Phase)
            .Append(this.Alignment, that.Alignment)
            .Append(this.InstitutionSpecified, that.InstitutionSpecified)
            .Append(this.FrequencyRepetitions, that.FrequencyRepetitions)
            .Append(this.FrequencyQuantity, that.FrequencyQuantity)
            .IsEquals());
 }