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

            return
                ((
                     CurrentExecutable == other.CurrentExecutable ||
                     CurrentExecutable != null &&
                     CurrentExecutable.Equals(other.CurrentExecutable)
                     ) &&
                 (
                     Idle == other.Idle ||
                     Idle != null &&
                     Idle.Equals(other.Idle)
                 ) &&
                 (
                     LikelyStuck == other.LikelyStuck ||
                     LikelyStuck != null &&
                     LikelyStuck.Equals(other.LikelyStuck)
                 ) &&
                 (
                     Number == other.Number ||
                     Number != null &&
                     Number.Equals(other.Number)
                 ) &&
                 (
                     Progress == other.Progress ||
                     Progress != null &&
                     Progress.Equals(other.Progress)
                 ) &&
                 (
                     Class == other.Class ||
                     Class != null &&
                     Class.Equals(other.Class)
                 ));
        }
Esempio n. 2
0
        /// <summary>
        /// Returns true if HudsonMasterComputer instances are equal
        /// </summary>
        /// <param name="other">Instance of HudsonMasterComputer to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(HudsonMasterComputer other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Class == other.Class ||
                     Class != null &&
                     Class.Equals(other.Class)
                     ) &&
                 (
                     DisplayName == other.DisplayName ||
                     DisplayName != null &&
                     DisplayName.Equals(other.DisplayName)
                 ) &&
                 (
                     Executors == other.Executors ||
                     Executors != null &&
                     Executors.SequenceEqual(other.Executors)
                 ) &&
                 (
                     Icon == other.Icon ||
                     Icon != null &&
                     Icon.Equals(other.Icon)
                 ) &&
                 (
                     IconClassName == other.IconClassName ||
                     IconClassName != null &&
                     IconClassName.Equals(other.IconClassName)
                 ) &&
                 (
                     Idle == other.Idle ||
                     Idle != null &&
                     Idle.Equals(other.Idle)
                 ) &&
                 (
                     JnlpAgent == other.JnlpAgent ||
                     JnlpAgent != null &&
                     JnlpAgent.Equals(other.JnlpAgent)
                 ) &&
                 (
                     LaunchSupported == other.LaunchSupported ||
                     LaunchSupported != null &&
                     LaunchSupported.Equals(other.LaunchSupported)
                 ) &&
                 (
                     LoadStatistics == other.LoadStatistics ||
                     LoadStatistics != null &&
                     LoadStatistics.Equals(other.LoadStatistics)
                 ) &&
                 (
                     ManualLaunchAllowed == other.ManualLaunchAllowed ||
                     ManualLaunchAllowed != null &&
                     ManualLaunchAllowed.Equals(other.ManualLaunchAllowed)
                 ) &&
                 (
                     MonitorData == other.MonitorData ||
                     MonitorData != null &&
                     MonitorData.Equals(other.MonitorData)
                 ) &&
                 (
                     NumExecutors == other.NumExecutors ||
                     NumExecutors != null &&
                     NumExecutors.Equals(other.NumExecutors)
                 ) &&
                 (
                     Offline == other.Offline ||
                     Offline != null &&
                     Offline.Equals(other.Offline)
                 ) &&
                 (
                     OfflineCause == other.OfflineCause ||
                     OfflineCause != null &&
                     OfflineCause.Equals(other.OfflineCause)
                 ) &&
                 (
                     OfflineCauseReason == other.OfflineCauseReason ||
                     OfflineCauseReason != null &&
                     OfflineCauseReason.Equals(other.OfflineCauseReason)
                 ) &&
                 (
                     TemporarilyOffline == other.TemporarilyOffline ||
                     TemporarilyOffline != null &&
                     TemporarilyOffline.Equals(other.TemporarilyOffline)
                 ));
        }