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

            return
                ((
                     FarmId == other.FarmId ||
                     FarmId != null &&
                     FarmId.Equals(other.FarmId)
                     ) &&
                 (
                     Plant == other.Plant ||
                     Plant != null &&
                     Plant.Equals(other.Plant)
                 ) &&
                 (
                     Date == other.Date ||
                     Date != null &&
                     Date.Equals(other.Date)
                 ) &&
                 (
                     Disaster == other.Disaster ||
                     Disaster != null &&
                     Disaster.Equals(other.Disaster)
                 ));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Returns true if InitData instances are equal
        /// </summary>
        /// <param name="other">Instance of InitData to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(InitData other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     RegionId == other.RegionId ||
                     RegionId != null &&
                     RegionId.Equals(other.RegionId)
                     ) &&
                 (
                     RegionNm == other.RegionNm ||
                     RegionNm != null &&
                     RegionNm.Equals(other.RegionNm)
                 ) &&
                 (
                     FarmId == other.FarmId ||
                     FarmId != null &&
                     FarmId.Equals(other.FarmId)
                 ) &&
                 (
                     Plant == other.Plant ||
                     Plant != null &&
                     Plant.SequenceEqual(other.Plant)
                 ));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Returns true if SendSurveyData instances are equal
        /// </summary>
        /// <param name="other">Instance of SendSurveyData to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(SendSurveyData other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     FarmId == other.FarmId ||
                     FarmId != null &&
                     FarmId.Equals(other.FarmId)
                     ) &&
                 (
                     Date == other.Date ||
                     Date != null &&
                     Date.Equals(other.Date)
                 ) &&
                 (
                     Plant == other.Plant ||
                     Plant != null &&
                     Plant.Equals(other.Plant)
                 ) &&
                 (
                     GrowthStage == other.GrowthStage ||
                     GrowthStage != null &&
                     GrowthStage.Equals(other.GrowthStage)
                 ) &&
                 (
                     Answer == other.Answer ||
                     Answer != null &&
                     Answer.SequenceEqual(other.Answer)
                 ));
        }