Esempio n. 1
0
        /// <summary>
        /// Returns true if OrgApacheSlingDistributionTriggerImplScheduledDistributionTriggeProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheSlingDistributionTriggerImplScheduledDistributionTriggeProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheSlingDistributionTriggerImplScheduledDistributionTriggeProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                     ) &&
                 (
                     Path == other.Path ||
                     Path != null &&
                     Path.Equals(other.Path)
                 ) &&
                 (
                     Seconds == other.Seconds ||
                     Seconds != null &&
                     Seconds.Equals(other.Seconds)
                 ) &&
                 (
                     ServiceName == other.ServiceName ||
                     ServiceName != null &&
                     ServiceName.Equals(other.ServiceName)
                 ));
        }
Esempio n. 2
0
 public override bool Equals(object obj)
 {
     return(obj is Timestamp @object &&
            Hours.Equals(@object.Hours) &&
            Minutes.Equals(@object.Minutes) &&
            Seconds.Equals(@object.Seconds) &&
            Milliseconds.Equals(@object.Milliseconds));
 }
Esempio n. 3
0
        public bool Equals(CoarseDuration other)
        {
            if (ReferenceEquals(other, null))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(Years.Equals(other.Years) &&
                   Months.Equals(other.Months) &&
                   Days.Equals(other.Days) &&
                   Hours.Equals(other.Hours) &&
                   Minutes.Equals(other.Minutes) &&
                   Seconds.Equals(other.Seconds) &&
                   Sign.Equals(other.Sign));
        }
        /// <summary>
        ///     Returns true if ProgrammingTimerStartEvent instances are equal
        /// </summary>
        /// <param name="other">Instance of ProgrammingTimerStartEvent to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ProgrammingTimerStartEvent other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Seconds == other.Seconds ||
                     Seconds.Equals(other.Seconds)
                     ) &&
                 (
                     End == other.End ||
                     End.Equals(other.End)
                 ));
        }
 /// <summary>
 /// Gets if this Date is not initialized
 /// </summary>
 /// <returns><c>true</c> if the date is empty, <c>false</c> in another case</returns>
 public bool IsEmpty()
 {
     return(Millennium == 0 && Century == 0 && NormDate == null && Day.Equals("00") && Month.Equals("00") && Year.Equals("0000") && Hours.Equals("00") && Minutes.Equals("00") && Seconds.Equals("00") && PrecisionDate == null && TypeDate == null);
 }