예제 #1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is Subscription other &&
                   ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) &&
                   ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true)) &&
                   ((PlanId == null && other.PlanId == null) || (PlanId?.Equals(other.PlanId) == true)) &&
                   ((CustomerId == null && other.CustomerId == null) || (CustomerId?.Equals(other.CustomerId) == true)) &&
                   ((StartDate == null && other.StartDate == null) || (StartDate?.Equals(other.StartDate) == true)) &&
                   ((CanceledDate == null && other.CanceledDate == null) || (CanceledDate?.Equals(other.CanceledDate) == true)) &&
                   ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)) &&
                   ((TaxPercentage == null && other.TaxPercentage == null) || (TaxPercentage?.Equals(other.TaxPercentage) == true)) &&
                   ((InvoiceIds == null && other.InvoiceIds == null) || (InvoiceIds?.Equals(other.InvoiceIds) == true)) &&
                   ((PriceOverrideMoney == null && other.PriceOverrideMoney == null) || (PriceOverrideMoney?.Equals(other.PriceOverrideMoney) == true)) &&
                   ((Version == null && other.Version == null) || (Version?.Equals(other.Version) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((CardId == null && other.CardId == null) || (CardId?.Equals(other.CardId) == true)) &&
                   ((PaidUntilDate == null && other.PaidUntilDate == null) || (PaidUntilDate?.Equals(other.PaidUntilDate) == true)) &&
                   ((Timezone == null && other.Timezone == null) || (Timezone?.Equals(other.Timezone) == true)));
        }
예제 #2
0
 public bool Equals(EventData other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(string.Equals(EventKey, other.EventKey) && StartDate.Equals(other.StartDate) &&
            string.Equals(Name, other.Name) && string.Equals(TournamentKey, other.TournamentKey) &&
            TeamsKeys.SequenceEqual(other.TeamsKeys) && Scoreboard.Equals(other.Scoreboard) &&
            DictionaryComparer <string, MarketData> .Default.Equals(Markets, other.Markets));
 }
예제 #3
0
 public override bool Equals(object obj)
 {
     if (obj is CalendarEvent)
     {
         CalendarEvent evnt = (CalendarEvent)obj;
         return(Subject.Equals(evnt.Subject) &&
                CreateDate.Equals(evnt.CreateDate) &&
                StartDate.Equals(evnt.StartDate) &&
                EndDate.Equals(evnt.EndDate));
     }
     else
     {
         return(base.Equals(obj));
     }
 }
예제 #4
0
        /// <summary>
        /// Returns true if SummarySegmentEffort instances are equal
        /// </summary>
        /// <param name="other">Instance of SummarySegmentEffort to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(SummarySegmentEffort other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                     ) &&
                 (
                     ActivityId == other.ActivityId ||
                     ActivityId != null &&
                     ActivityId.Equals(other.ActivityId)
                 ) &&
                 (
                     ElapsedTime == other.ElapsedTime ||
                     ElapsedTime != null &&
                     ElapsedTime.Equals(other.ElapsedTime)
                 ) &&
                 (
                     StartDate == other.StartDate ||
                     StartDate != null &&
                     StartDate.Equals(other.StartDate)
                 ) &&
                 (
                     StartDateLocal == other.StartDateLocal ||
                     StartDateLocal != null &&
                     StartDateLocal.Equals(other.StartDateLocal)
                 ) &&
                 (
                     Distance == other.Distance ||
                     Distance != null &&
                     Distance.Equals(other.Distance)
                 ) &&
                 (
                     IsKom == other.IsKom ||
                     IsKom != null &&
                     IsKom.Equals(other.IsKom)
                 ));
        }
예제 #5
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is DateRange other &&
                   ((StartDate == null && other.StartDate == null) || (StartDate?.Equals(other.StartDate) == true)) &&
                   ((EndDate == null && other.EndDate == null) || (EndDate?.Equals(other.EndDate) == true)));
        }
예제 #6
0
        /// <summary>
        /// Returns true if District instances are equal
        /// </summary>
        /// <param name="other">Instance of District to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(District other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id.Equals(other.Id)
                     ) &&
                 (
                     MinistryDistrictID == other.MinistryDistrictID ||
                     MinistryDistrictID.Equals(other.MinistryDistrictID)
                 ) &&
                 (
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                 ) &&
                 (
                     Region == other.Region ||
                     Region != null &&
                     Region.Equals(other.Region)
                 ) &&
                 (
                     StartDate == other.StartDate ||
                     StartDate.Equals(other.StartDate)
                 ) &&
                 (
                     DistrictNumber == other.DistrictNumber ||
                     DistrictNumber != null &&
                     DistrictNumber.Equals(other.DistrictNumber)
                 ) &&
                 (
                     EndDate == other.EndDate ||
                     EndDate != null &&
                     EndDate.Equals(other.EndDate)
                 ));
        }
예제 #7
0
        /// <summary>
        /// Returns true if ServiceArea instances are equal
        /// </summary>
        /// <param name="other">Instance of ServiceArea to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ServiceArea other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id.Equals(other.Id)
                     ) &&
                 (
                     MinistryServiceAreaID == other.MinistryServiceAreaID ||
                     MinistryServiceAreaID.Equals(other.MinistryServiceAreaID)
                 ) &&
                 (
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                 ) &&
                 (
                     District == other.District ||
                     District != null &&
                     District.Equals(other.District)
                 ) &&
                 (
                     StartDate == other.StartDate ||
                     StartDate.Equals(other.StartDate)
                 ) &&
                 (
                     AreaNumber == other.AreaNumber ||
                     AreaNumber != null &&
                     AreaNumber.Equals(other.AreaNumber)
                 ) &&
                 (
                     EndDate == other.EndDate ||
                     EndDate != null &&
                     EndDate.Equals(other.EndDate)
                 ));
        }
예제 #8
0
        public override bool Equals(object obj)
        {
            if (!(obj is KeyFeature other))
            {
                return(false);
            }

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

            return(Id.Equals(other.Id) &&
                   IdHaspKey.Equals(other.IdHaspKey) &&
                   IdFeature.Equals(other.IdFeature) &&
                   StartDate.Equals(other.StartDate) &&
                   EndDate.Equals(other.EndDate));
        }
예제 #9
0
    public override bool Equals(object obj)
    {
        if (ReferenceEquals(null, obj))
        {
            return(false);
        }
        if (ReferenceEquals(this, obj))
        {
            return(true);
        }
        if (obj.GetType() != this.GetType())
        {
            return(false);
        }
        DatePeriod other = (DatePeriod)obj;

        return(StartDate.Equals(other.StartDate) && EndDate.Equals(other.EndDate));
    }
예제 #10
0
        public bool Equals(Season other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

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

            return(Equals(DisplayInfo, other.DisplayInfo) &&
                   Equals(Image, other.Image) &&
                   Equals(Image4K, other.Image4K) &&
                   Playlists.OrderBy(p => p.Id).SequenceEqual(other.Playlists.OrderBy(p => p.Id)) &&
                   StartDate.Equals(other.StartDate));
        }
예제 #11
0
        public string GetFormattedDateRangeString()
        {
            var retString = "";

            if (StartDate.IsValid() && EndDate.IsValid())
            {
                retString = StartDate.Equals(EndDate) ? StartDate.GetFuzzyDateString() : $"{StartDate.GetFuzzyDateString()} to {EndDate.GetFuzzyDateString()}";
            }
            else if (StartDate.IsValid())
            {
                retString = $"{(Status == MediaStatus.NotYetReleased ? "Starts" : "Started")} {StartDate.GetFuzzyDateString()}";
            }
            else if (EndDate.IsValid())
            {
                retString = $"{(Status == MediaStatus.Finished || Status == MediaStatus.Cancelled ? "Ended" : "Ending")} {EndDate.GetFuzzyDateString()}";
            }

            return(retString);
        }
예제 #12
0
    public override bool Equals(Object obj)
    {
        //Check whether the compared object is null.
        if (obj == null)
        {
            return(false);
        }

        CSVEvent other = obj as CSVEvent;

        if ((Object)other == null)
        {
            return(false);
        }

        return(EventName.Equals(other.EventName) && YearLevel.Equals(other.YearLevel) &&
               Cost.Equals(other.Cost) && Transport.Equals(other.Transport) && Location.Equals(other.Location) &&
               StartDate.Equals(other.StartDate) && StartTime.Equals(other.StartTime) && FinishDate.Equals(other.FinishDate) &&
               FinishTime.Equals(other.FinishTime) && DaysNotice.Equals(other.DaysNotice) && OtherDetails.Equals(other.OtherDetails));
    }
예제 #13
0
        //public override bool Equals(object obj)
        //{
        //    ReservationInfo resInfo = (ReservationInfo)obj;
        //    return resInfo != null
        //           && Id == resInfo.Id
        //           && StateInt == resInfo.StateInt
        //           && SourceInt == resInfo.SourceInt
        //           && Room == resInfo.Room
        //           && GuestName == resInfo.GuestName
        //           && GuestReferrer == resInfo.GuestReferrer
        //           && Email == resInfo.Email
        //           && Phone == resInfo.Phone
        //           && StartDate == resInfo.StartDate
        //           && EndDate == resInfo.EndDate
        //           && NumberOfGuests == resInfo.NumberOfGuests
        //           && TotalSum == resInfo.TotalSum
        //           && PaidSum == resInfo.PaidSum
        //           && Notes == resInfo.Notes;
        //}

        public override bool Equals(object obj)
        {
            ReservationInfo other = (ReservationInfo)obj;

            return(other != null &&
                   Id == other.Id &&
                   StateInt == other.StateInt &&
                   SourceInt == other.SourceInt &&
                   Room == other.Room &&
                   GuestName == other.GuestName &&
                   GuestReferrer == other.GuestReferrer &&
                   Email == other.Email &&
                   Phone == other.Phone &&
                   StartDate.Equals(other.StartDate) &&
                   EndDate.Equals(other.EndDate) &&
                   NumberOfGuests == other.NumberOfGuests &&
                   TotalSum == other.TotalSum &&
                   PaidSum == other.PaidSum &&
                   Notes == other.Notes);
        }
 public bool Equals(RoatpProviderDocument other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(string.Equals(Ukprn, other.Ukprn) &&
            ProviderType == other.ProviderType &&
            ContractedForNonLeviedEmployers == other.ContractedForNonLeviedEmployers &&
            ParentCompanyGuarantee == other.ParentCompanyGuarantee &&
            NewOrganisationWithoutFinancialTrackRecord == other.NewOrganisationWithoutFinancialTrackRecord &&
            StartDate.Equals(other.StartDate) &&
            EndDate.Equals(other.EndDate) &&
            ApplicationDeterminedDate.Equals(other.ApplicationDeterminedDate) &&
            CurrentlyNotStartingNewApprentices == other.CurrentlyNotStartingNewApprentices);
 }
        public bool Equals(DestinyPublicMilestone input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     MilestoneHash == input.MilestoneHash ||
                     (MilestoneHash.Equals(input.MilestoneHash))
                     ) &&
                 (
                     AvailableQuests == input.AvailableQuests ||
                     (AvailableQuests != null && AvailableQuests.SequenceEqual(input.AvailableQuests))
                 ) &&
                 (
                     Activities == input.Activities ||
                     (Activities != null && Activities.SequenceEqual(input.Activities))
                 ) &&
                 (
                     VendorHashes == input.VendorHashes ||
                     (VendorHashes != null && VendorHashes.SequenceEqual(input.VendorHashes))
                 ) &&
                 (
                     Vendors == input.Vendors ||
                     (Vendors != null && Vendors.SequenceEqual(input.Vendors))
                 ) &&
                 (
                     StartDate == input.StartDate ||
                     (StartDate != null && StartDate.Equals(input.StartDate))
                 ) &&
                 (
                     EndDate == input.EndDate ||
                     (EndDate != null && EndDate.Equals(input.EndDate))
                 ) &&
                 (
                     Order == input.Order ||
                     (Order.Equals(input.Order))
                 ));
        }
예제 #16
0
        /// <summary>
        /// Returns true if LocalArea instances are equal
        /// </summary>
        /// <param name="other">Instance of LocalArea to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(LocalArea other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id.Equals(other.Id)
                     ) &&
                 (
                     LocalAreaNumber == other.LocalAreaNumber ||
                     LocalAreaNumber.Equals(other.LocalAreaNumber)
                 ) &&
                 (
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                 ) &&
                 (
                     ServiceArea == other.ServiceArea ||
                     ServiceArea != null &&
                     ServiceArea.Equals(other.ServiceArea)
                 ) &&
                 (
                     StartDate == other.StartDate ||
                     StartDate.Equals(other.StartDate)
                 ) &&
                 (
                     EndDate == other.EndDate ||
                     EndDate != null &&
                     EndDate.Equals(other.EndDate)
                 ));
        }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is CreateSubscriptionRequest other &&
                   ((IdempotencyKey == null && other.IdempotencyKey == null) || (IdempotencyKey?.Equals(other.IdempotencyKey) == true)) &&
                   ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true)) &&
                   ((PlanId == null && other.PlanId == null) || (PlanId?.Equals(other.PlanId) == true)) &&
                   ((CustomerId == null && other.CustomerId == null) || (CustomerId?.Equals(other.CustomerId) == true)) &&
                   ((StartDate == null && other.StartDate == null) || (StartDate?.Equals(other.StartDate) == true)) &&
                   ((CanceledDate == null && other.CanceledDate == null) || (CanceledDate?.Equals(other.CanceledDate) == true)) &&
                   ((TaxPercentage == null && other.TaxPercentage == null) || (TaxPercentage?.Equals(other.TaxPercentage) == true)) &&
                   ((PriceOverrideMoney == null && other.PriceOverrideMoney == null) || (PriceOverrideMoney?.Equals(other.PriceOverrideMoney) == true)) &&
                   ((CardId == null && other.CardId == null) || (CardId?.Equals(other.CardId) == true)) &&
                   ((Timezone == null && other.Timezone == null) || (Timezone?.Equals(other.Timezone) == true)));
        }
예제 #18
0
 public bool GetObjectNeedsUpate(Service checkUpdateFrom)
 {
     if (!Name.Equals(checkUpdateFrom.Name))
     {
         return(true);
     }
     if (!StartDate.Equals(checkUpdateFrom.StartDate))
     {
         return(true);
     }
     if (!EndDate.Equals(checkUpdateFrom.EndDate))
     {
         return(true);
     }
     if (!Description.Equals(checkUpdateFrom.Description))
     {
         return(true);
     }
     if (!ExternalParentId.Equals(checkUpdateFrom.ExternalParentId))
     {
         return(true);
     }
     return(false);
 }
예제 #19
0
 private void AddPortStorageRate(object obj)
 {
     CommonSettings.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, Resources.loggerMsgStart, DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name));
     try
     {
         var result = false;
         if (PortStorageRateID > 0)
         {
             if (StartDate.Equals(null))
             {
                 MessageBox.Show(Resources.msgStratDateReq);
             }
             else
             {
                 PortStorageRateList objPortStorageRateProp = new PortStorageRateList();
                 objPortStorageRateProp.PortStorageRatesID = PortStorageRateID;
                 objPortStorageRateProp.CustomerID         = CustomerID;
                 objPortStorageRateProp.EntryFee           = EntryFee;
                 objPortStorageRateProp.StartDate          = StartDate;
                 objPortStorageRateProp.EndDate            = EndDate;
                 objPortStorageRateProp.PerDiem            = PerDiem;
                 objPortStorageRateProp.PerDiemGraceDays   = PerDiemGraceDays;
                 objPortStorageRateProp.CreatedBy          = CreatedBy;
                 objPortStorageRateProp.CreationDate       = CreationDate;
                 objPortStorageRateProp.UpdatedDate        = DateTime.Now;
                 objPortStorageRateProp.UpdatedBy          = Application.Current.Properties["LoggedInUserName"].ToString();
                 result = _serviceInstance.UpdatePortStorageRate(objPortStorageRateProp);
                 if (result)
                 {
                     MessageBox.Show(Resources.MsgRecordUpdated);
                     Cancel(null);
                 }
             }
         }
         else
         {
             if (StartDate.Equals(null))
             {
                 MessageBox.Show(Resources.msgStratDateReq);
             }
             else
             {
                 PortStorageRateList objPortStorageRateProp = new PortStorageRateList();
                 objPortStorageRateProp.CustomerID       = CustomerID;
                 objPortStorageRateProp.EntryFee         = EntryFee;
                 objPortStorageRateProp.StartDate        = StartDate;
                 objPortStorageRateProp.EndDate          = EndDate;
                 objPortStorageRateProp.PerDiem          = PerDiem;
                 objPortStorageRateProp.PerDiemGraceDays = PerDiemGraceDays;
                 objPortStorageRateProp.CreatedBy        = Application.Current.Properties["LoggedInUserName"].ToString();
                 objPortStorageRateProp.CreationDate     = DateTime.Now;
                 objPortStorageRateProp.UpdatedDate      = null;
                 objPortStorageRateProp.UpdatedBy        = string.Empty;
                 result = _serviceInstance.AddPortStorageRate(objPortStorageRateProp);
                 if (result)
                 {
                     MessageBox.Show(Resources.msgInsertedSuccessfully);
                     Cancel(null);
                 }
             }
         }
         RateAdminDelegate.SetRateAdminModifiedMethod(result);
     }
     catch (Exception ex)
     {
         LogHelper.LogErrorToDb(ex);
         bool displayErrorOnUI = false;
         CommonSettings.logger.LogError(this.GetType(), ex);
         if (displayErrorOnUI)
         {
             throw;
         }
     }
     finally
     {
         CommonSettings.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, Resources.loggerMsgEnd, DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name));
     }
 }
예제 #20
0
파일: Lease.cs 프로젝트: Jackeeet/Martius
 protected bool Equals(Lease other)
 {
     return(Property.Equals(other.Property) && Tenant.Equals(other.Tenant) &&
            MonthlyPrice == other.MonthlyPrice && StartDate.Equals(other.StartDate) &&
            EndDate.Equals(other.EndDate) && Id == other.Id);
 }
예제 #21
0
        public bool Equals(TrendingEntry input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Weight == input.Weight ||
                     (Weight.Equals(input.Weight))
                     ) &&
                 (
                     IsFeatured == input.IsFeatured ||
                     (IsFeatured != null && IsFeatured.Equals(input.IsFeatured))
                 ) &&
                 (
                     Identifier == input.Identifier ||
                     (Identifier != null && Identifier.Equals(input.Identifier))
                 ) &&
                 (
                     EntityType == input.EntityType ||
                     (EntityType != null && EntityType.Equals(input.EntityType))
                 ) &&
                 (
                     DisplayName == input.DisplayName ||
                     (DisplayName != null && DisplayName.Equals(input.DisplayName))
                 ) &&
                 (
                     Tagline == input.Tagline ||
                     (Tagline != null && Tagline.Equals(input.Tagline))
                 ) &&
                 (
                     Image == input.Image ||
                     (Image != null && Image.Equals(input.Image))
                 ) &&
                 (
                     StartDate == input.StartDate ||
                     (StartDate != null && StartDate.Equals(input.StartDate))
                 ) &&
                 (
                     EndDate == input.EndDate ||
                     (EndDate != null && EndDate.Equals(input.EndDate))
                 ) &&
                 (
                     Link == input.Link ||
                     (Link != null && Link.Equals(input.Link))
                 ) &&
                 (
                     WebmVideo == input.WebmVideo ||
                     (WebmVideo != null && WebmVideo.Equals(input.WebmVideo))
                 ) &&
                 (
                     Mp4Video == input.Mp4Video ||
                     (Mp4Video != null && Mp4Video.Equals(input.Mp4Video))
                 ) &&
                 (
                     FeatureImage == input.FeatureImage ||
                     (FeatureImage != null && FeatureImage.Equals(input.FeatureImage))
                 ) &&
                 (
                     Items == input.Items ||
                     (Items != null && Items.SequenceEqual(input.Items))
                 ) &&
                 (
                     CreationDate == input.CreationDate ||
                     (CreationDate != null && CreationDate.Equals(input.CreationDate))
                 ));
        }
 protected override bool EqualsCore(Offering other)
 => Price.Equals(other.Price) && Currency.Equals(other.Currency) &&
 StartDate.Equals(other.StartDate) && EndDate.Equals(other.EndDate);
예제 #23
0
        /// <summary>
        /// Returns true if SeniorityAudit instances are equal
        /// </summary>
        /// <param name="other">Instance of SeniorityAudit to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(SeniorityAudit other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id.Equals(other.Id)
                     ) &&
                 (
                     StartDate == other.StartDate ||
                     StartDate.Equals(other.StartDate)
                 ) &&
                 (
                     EndDate == other.EndDate ||
                     EndDate.Equals(other.EndDate)
                 ) &&
                 (
                     LocalArea == other.LocalArea ||
                     LocalArea != null &&
                     LocalArea.Equals(other.LocalArea)
                 ) &&
                 (
                     Equipment == other.Equipment ||
                     Equipment != null &&
                     Equipment.Equals(other.Equipment)
                 ) &&
                 (
                     BlockNumber == other.BlockNumber ||
                     BlockNumber != null &&
                     BlockNumber.Equals(other.BlockNumber)
                 ) &&
                 (
                     Owner == other.Owner ||
                     Owner != null &&
                     Owner.Equals(other.Owner)
                 ) &&
                 (
                     OwnerOrganizationName == other.OwnerOrganizationName ||
                     OwnerOrganizationName != null &&
                     OwnerOrganizationName.Equals(other.OwnerOrganizationName)
                 ) &&
                 (
                     Seniority == other.Seniority ||
                     Seniority != null &&
                     Seniority.Equals(other.Seniority)
                 ) &&
                 (
                     ServiceHoursLastYear == other.ServiceHoursLastYear ||
                     ServiceHoursLastYear != null &&
                     ServiceHoursLastYear.Equals(other.ServiceHoursLastYear)
                 ) &&
                 (
                     ServiceHoursTwoYearsAgo == other.ServiceHoursTwoYearsAgo ||
                     ServiceHoursTwoYearsAgo != null &&
                     ServiceHoursTwoYearsAgo.Equals(other.ServiceHoursTwoYearsAgo)
                 ) &&
                 (
                     ServiceHoursThreeYearsAgo == other.ServiceHoursThreeYearsAgo ||
                     ServiceHoursThreeYearsAgo != null &&
                     ServiceHoursThreeYearsAgo.Equals(other.ServiceHoursThreeYearsAgo)
                 ) &&
                 (
                     IsSeniorityOverridden == other.IsSeniorityOverridden ||
                     IsSeniorityOverridden != null &&
                     IsSeniorityOverridden.Equals(other.IsSeniorityOverridden)
                 ) &&
                 (
                     SeniorityOverrideReason == other.SeniorityOverrideReason ||
                     SeniorityOverrideReason != null &&
                     SeniorityOverrideReason.Equals(other.SeniorityOverrideReason)
                 ));
        }
예제 #24
0
 protected bool Equals(Sale other)
 {
     return(StartDate.Equals(other.StartDate) && EndDate.Equals(other.EndDate));
 }
예제 #25
0
        /// <summary>
        /// Returns true if Lap instances are equal
        /// </summary>
        /// <param name="other">Instance of Lap to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Lap other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                     ) &&
                 (
                     Activity == other.Activity ||
                     Activity != null &&
                     Activity.Equals(other.Activity)
                 ) &&
                 (
                     Athlete == other.Athlete ||
                     Athlete != null &&
                     Athlete.Equals(other.Athlete)
                 ) &&
                 (
                     AverageCadence == other.AverageCadence ||
                     AverageCadence != null &&
                     AverageCadence.Equals(other.AverageCadence)
                 ) &&
                 (
                     AverageSpeed == other.AverageSpeed ||
                     AverageSpeed != null &&
                     AverageSpeed.Equals(other.AverageSpeed)
                 ) &&
                 (
                     Distance == other.Distance ||
                     Distance != null &&
                     Distance.Equals(other.Distance)
                 ) &&
                 (
                     ElapsedTime == other.ElapsedTime ||
                     ElapsedTime != null &&
                     ElapsedTime.Equals(other.ElapsedTime)
                 ) &&
                 (
                     StartIndex == other.StartIndex ||
                     StartIndex != null &&
                     StartIndex.Equals(other.StartIndex)
                 ) &&
                 (
                     EndIndex == other.EndIndex ||
                     EndIndex != null &&
                     EndIndex.Equals(other.EndIndex)
                 ) &&
                 (
                     LapIndex == other.LapIndex ||
                     LapIndex != null &&
                     LapIndex.Equals(other.LapIndex)
                 ) &&
                 (
                     MaxSpeed == other.MaxSpeed ||
                     MaxSpeed != null &&
                     MaxSpeed.Equals(other.MaxSpeed)
                 ) &&
                 (
                     MovingTime == other.MovingTime ||
                     MovingTime != null &&
                     MovingTime.Equals(other.MovingTime)
                 ) &&
                 (
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                 ) &&
                 (
                     PaceZone == other.PaceZone ||
                     PaceZone != null &&
                     PaceZone.Equals(other.PaceZone)
                 ) &&
                 (
                     Split == other.Split ||
                     Split != null &&
                     Split.Equals(other.Split)
                 ) &&
                 (
                     StartDate == other.StartDate ||
                     StartDate != null &&
                     StartDate.Equals(other.StartDate)
                 ) &&
                 (
                     StartDateLocal == other.StartDateLocal ||
                     StartDateLocal != null &&
                     StartDateLocal.Equals(other.StartDateLocal)
                 ) &&
                 (
                     TotalElevationGain == other.TotalElevationGain ||
                     TotalElevationGain != null &&
                     TotalElevationGain.Equals(other.TotalElevationGain)
                 ));
        }
예제 #26
0
 public bool Equals(Period other)
 => other != null &&
 Instant.Equals(other.Instant) &&
 StartDate.Equals(other.StartDate) &&
 EndDate.Equals(other.EndDate);
예제 #27
0
 protected bool Equals(PromotionInfo other)
 {
     return(string.Equals(ProductId, other.ProductId) && PromoType == other.PromoType &&
            StartDate.Equals(other.StartDate) && EndDate.Equals(other.EndDate) &&
            EligibleQuantity == other.EligibleQuantity && PromoAmount.Equals(other.PromoAmount));
 }
예제 #28
0
 private bool Equals(IContract other)
 {
     return(ContractID == other.ContractID && ContractName == other.ContractName && CustomerID == other.CustomerID && CustomerName == other.CustomerName && ContractType == other.ContractType &&
            Active == other.Active && Default == other.Default && Taxable == other.Taxable && StartDate.Equals(other.StartDate) && EndDate.Equals(other.EndDate) &&
            Equals(RetainerFlatFeeContract, other.RetainerFlatFeeContract) && Equals(HourlyContract, other.HourlyContract) && Equals(BlockHoursContract, other.BlockHoursContract) &&
            Equals(BlockMoneyContract, other.BlockMoneyContract) && Equals(RemoteMonitoringContract, other.RemoteMonitoringContract) &&
            Equals(OnlineBackupContract, other.OnlineBackupContract) && Equals(ProjectOneTimeFeeContract, other.ProjectOneTimeFeeContract) &&
            Equals(ProjectHourlyRateContract, other.ProjectHourlyRateContract));
 }
예제 #29
0
 public bool Equals(Issue other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(base.Equals(other) && Equals(Project, other.Project) && Equals(Tracker, other.Tracker) && Equals(Status, other.Status) && Equals(Priority, other.Priority) && Equals(Author, other.Author) && Equals(Category, other.Category) && string.Equals(Subject, other.Subject) && string.Equals(Description, other.Description) && StartDate.Equals(other.StartDate) && DueDate.Equals(other.DueDate) && DoneRatio.Equals(other.DoneRatio) && PrivateNotes == other.PrivateNotes && EstimatedHours.Equals(other.EstimatedHours) && SpentHours.Equals(other.SpentHours) && Equals(CustomFields, other.CustomFields) && CreatedOn.Equals(other.CreatedOn) && UpdatedOn.Equals(other.UpdatedOn) && ClosedOn.Equals(other.ClosedOn) && string.Equals(Notes, other.Notes) && Equals(AssignedTo, other.AssignedTo) && Equals(ParentIssue, other.ParentIssue) && Equals(FixedVersion, other.FixedVersion) && IsPrivate == other.IsPrivate && TotalSpentHours.Equals(other.TotalSpentHours) && TotalEstimatedHours.Equals(other.TotalEstimatedHours) && Equals(Journals, other.Journals) && Equals(Changesets, other.Changesets) && Equals(Attachments, other.Attachments) && Equals(Relations, other.Relations) && Equals(Children, other.Children) && Equals(Uploads, other.Uploads) && Equals(Watchers, other.Watchers));
 }
예제 #30
0
        /// <summary>
        /// Returns true if SummaryActivity instances are equal
        /// </summary>
        /// <param name="other">Instance of SummaryActivity to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(SummaryActivity other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ExternalId == other.ExternalId ||
                     ExternalId != null &&
                     ExternalId.Equals(other.ExternalId)
                     ) &&
                 (
                     UploadId == other.UploadId ||
                     UploadId != null &&
                     UploadId.Equals(other.UploadId)
                 ) &&
                 (
                     Athlete == other.Athlete ||
                     Athlete != null &&
                     Athlete.Equals(other.Athlete)
                 ) &&
                 (
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                 ) &&
                 (
                     Distance == other.Distance ||
                     Distance != null &&
                     Distance.Equals(other.Distance)
                 ) &&
                 (
                     MovingTime == other.MovingTime ||
                     MovingTime != null &&
                     MovingTime.Equals(other.MovingTime)
                 ) &&
                 (
                     ElapsedTime == other.ElapsedTime ||
                     ElapsedTime != null &&
                     ElapsedTime.Equals(other.ElapsedTime)
                 ) &&
                 (
                     TotalElevationGain == other.TotalElevationGain ||
                     TotalElevationGain != null &&
                     TotalElevationGain.Equals(other.TotalElevationGain)
                 ) &&
                 (
                     ElevHigh == other.ElevHigh ||
                     ElevHigh != null &&
                     ElevHigh.Equals(other.ElevHigh)
                 ) &&
                 (
                     ElevLow == other.ElevLow ||
                     ElevLow != null &&
                     ElevLow.Equals(other.ElevLow)
                 ) &&
                 (
                     Type == other.Type ||
                     Type != null &&
                     Type.Equals(other.Type)
                 ) &&
                 (
                     StartDate == other.StartDate ||
                     StartDate != null &&
                     StartDate.Equals(other.StartDate)
                 ) &&
                 (
                     StartDateLocal == other.StartDateLocal ||
                     StartDateLocal != null &&
                     StartDateLocal.Equals(other.StartDateLocal)
                 ) &&
                 (
                     Timezone == other.Timezone ||
                     Timezone != null &&
                     Timezone.Equals(other.Timezone)
                 ) &&
                 (
                     StartLatlng == other.StartLatlng ||
                     StartLatlng != null &&
                     StartLatlng.Equals(other.StartLatlng)
                 ) &&
                 (
                     EndLatlng == other.EndLatlng ||
                     EndLatlng != null &&
                     EndLatlng.Equals(other.EndLatlng)
                 ) &&
                 (
                     AchievementCount == other.AchievementCount ||
                     AchievementCount != null &&
                     AchievementCount.Equals(other.AchievementCount)
                 ) &&
                 (
                     KudosCount == other.KudosCount ||
                     KudosCount != null &&
                     KudosCount.Equals(other.KudosCount)
                 ) &&
                 (
                     CommentCount == other.CommentCount ||
                     CommentCount != null &&
                     CommentCount.Equals(other.CommentCount)
                 ) &&
                 (
                     AthleteCount == other.AthleteCount ||
                     AthleteCount != null &&
                     AthleteCount.Equals(other.AthleteCount)
                 ) &&
                 (
                     PhotoCount == other.PhotoCount ||
                     PhotoCount != null &&
                     PhotoCount.Equals(other.PhotoCount)
                 ) &&
                 (
                     TotalPhotoCount == other.TotalPhotoCount ||
                     TotalPhotoCount != null &&
                     TotalPhotoCount.Equals(other.TotalPhotoCount)
                 ) &&
                 (
                     Map == other.Map ||
                     Map != null &&
                     Map.Equals(other.Map)
                 ) &&
                 (
                     Trainer == other.Trainer ||
                     Trainer != null &&
                     Trainer.Equals(other.Trainer)
                 ) &&
                 (
                     Commute == other.Commute ||
                     Commute != null &&
                     Commute.Equals(other.Commute)
                 ) &&
                 (
                     Manual == other.Manual ||
                     Manual != null &&
                     Manual.Equals(other.Manual)
                 ) &&
                 (
                     _Private == other._Private ||
                     _Private != null &&
                     _Private.Equals(other._Private)
                 ) &&
                 (
                     Flagged == other.Flagged ||
                     Flagged != null &&
                     Flagged.Equals(other.Flagged)
                 ) &&
                 (
                     WorkoutType == other.WorkoutType ||
                     WorkoutType != null &&
                     WorkoutType.Equals(other.WorkoutType)
                 ) &&
                 (
                     UploadIdStr == other.UploadIdStr ||
                     UploadIdStr != null &&
                     UploadIdStr.Equals(other.UploadIdStr)
                 ) &&
                 (
                     AverageSpeed == other.AverageSpeed ||
                     AverageSpeed != null &&
                     AverageSpeed.Equals(other.AverageSpeed)
                 ) &&
                 (
                     MaxSpeed == other.MaxSpeed ||
                     MaxSpeed != null &&
                     MaxSpeed.Equals(other.MaxSpeed)
                 ) &&
                 (
                     HasKudoed == other.HasKudoed ||
                     HasKudoed != null &&
                     HasKudoed.Equals(other.HasKudoed)
                 ) &&
                 (
                     HideFromHome == other.HideFromHome ||
                     HideFromHome != null &&
                     HideFromHome.Equals(other.HideFromHome)
                 ) &&
                 (
                     GearId == other.GearId ||
                     GearId != null &&
                     GearId.Equals(other.GearId)
                 ) &&
                 (
                     Kilojoules == other.Kilojoules ||
                     Kilojoules != null &&
                     Kilojoules.Equals(other.Kilojoules)
                 ) &&
                 (
                     AverageWatts == other.AverageWatts ||
                     AverageWatts != null &&
                     AverageWatts.Equals(other.AverageWatts)
                 ) &&
                 (
                     DeviceWatts == other.DeviceWatts ||
                     DeviceWatts != null &&
                     DeviceWatts.Equals(other.DeviceWatts)
                 ) &&
                 (
                     MaxWatts == other.MaxWatts ||
                     MaxWatts != null &&
                     MaxWatts.Equals(other.MaxWatts)
                 ) &&
                 (
                     WeightedAverageWatts == other.WeightedAverageWatts ||
                     WeightedAverageWatts != null &&
                     WeightedAverageWatts.Equals(other.WeightedAverageWatts)
                 ));
        }