Exemplo n.º 1
0
        public override bool Equals(Object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }
            RecognitionResults recognitionResultsObj = obj as RecognitionResults;

            return(IsValid.Equals(recognitionResultsObj.IsValid) && Coords.Equals(recognitionResultsObj.Coords) &&
                   PhotoID.Equals(PhotoID));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Returns true if OutputAddressValidationInfo instances are equal
        /// </summary>
        /// <param name="other">Instance of OutputAddressValidationInfo to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OutputAddressValidationInfo other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     IsValid == other.IsValid ||
                     IsValid != null &&
                     IsValid.Equals(other.IsValid)
                     ) &&
                 (
                     IsAccount == other.IsAccount ||
                     IsAccount != null &&
                     IsAccount.Equals(other.IsAccount)
                 ) &&
                 (
                     IsBlacklisted == other.IsBlacklisted ||
                     IsBlacklisted != null &&
                     IsBlacklisted.Equals(other.IsBlacklisted)
                 ) &&
                 (
                     Avatar == other.Avatar ||
                     Avatar != null &&
                     Avatar.Equals(other.Avatar)
                 ) &&
                 (
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                 ) &&
                 (
                     AccountNumber == other.AccountNumber ||
                     AccountNumber != null &&
                     AccountNumber.Equals(other.AccountNumber)
                 ) &&
                 (
                     CorrectAddress == other.CorrectAddress ||
                     CorrectAddress != null &&
                     CorrectAddress.Equals(other.CorrectAddress)
                 ) &&
                 (
                     MemoExpected == other.MemoExpected ||
                     MemoExpected != null &&
                     MemoExpected.Equals(other.MemoExpected)
                 ) &&
                 (
                     MemoPlaceholderText == other.MemoPlaceholderText ||
                     MemoPlaceholderText != null &&
                     MemoPlaceholderText.Equals(other.MemoPlaceholderText)
                 ) &&
                 (
                     SimilarToExistingService == other.SimilarToExistingService ||
                     SimilarToExistingService != null &&
                     SimilarToExistingService.Equals(other.SimilarToExistingService)
                 ) &&
                 (
                     Balances == other.Balances ||
                     Balances != null &&
                     Balances.Equals(other.Balances)
                 ));
        }
Exemplo n.º 3
0
        public bool Equals(FireteamSummary input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     FireteamId == input.FireteamId ||
                     (FireteamId.Equals(input.FireteamId))
                     ) &&
                 (
                     GroupId == input.GroupId ||
                     (GroupId.Equals(input.GroupId))
                 ) &&
                 (
                     Platform == input.Platform ||
                     (Platform != null && Platform.Equals(input.Platform))
                 ) &&
                 (
                     ActivityType == input.ActivityType ||
                     (ActivityType.Equals(input.ActivityType))
                 ) &&
                 (
                     IsImmediate == input.IsImmediate ||
                     (IsImmediate != null && IsImmediate.Equals(input.IsImmediate))
                 ) &&
                 (
                     ScheduledTime == input.ScheduledTime ||
                     (ScheduledTime != null && ScheduledTime.Equals(input.ScheduledTime))
                 ) &&
                 (
                     OwnerMembershipId == input.OwnerMembershipId ||
                     (OwnerMembershipId.Equals(input.OwnerMembershipId))
                 ) &&
                 (
                     PlayerSlotCount == input.PlayerSlotCount ||
                     (PlayerSlotCount.Equals(input.PlayerSlotCount))
                 ) &&
                 (
                     AlternateSlotCount == input.AlternateSlotCount ||
                     (AlternateSlotCount.Equals(input.AlternateSlotCount))
                 ) &&
                 (
                     AvailablePlayerSlotCount == input.AvailablePlayerSlotCount ||
                     (AvailablePlayerSlotCount.Equals(input.AvailablePlayerSlotCount))
                 ) &&
                 (
                     AvailableAlternateSlotCount == input.AvailableAlternateSlotCount ||
                     (AvailableAlternateSlotCount.Equals(input.AvailableAlternateSlotCount))
                 ) &&
                 (
                     Title == input.Title ||
                     (Title != null && Title.Equals(input.Title))
                 ) &&
                 (
                     DateCreated == input.DateCreated ||
                     (DateCreated != null && DateCreated.Equals(input.DateCreated))
                 ) &&
                 (
                     DateModified == input.DateModified ||
                     (DateModified != null && DateModified.Equals(input.DateModified))
                 ) &&
                 (
                     IsPublic == input.IsPublic ||
                     (IsPublic != null && IsPublic.Equals(input.IsPublic))
                 ) &&
                 (
                     Locale == input.Locale ||
                     (Locale != null && Locale.Equals(input.Locale))
                 ) &&
                 (
                     IsValid == input.IsValid ||
                     (IsValid != null && IsValid.Equals(input.IsValid))
                 ) &&
                 (
                     DatePlayerModified == input.DatePlayerModified ||
                     (DatePlayerModified != null && DatePlayerModified.Equals(input.DatePlayerModified))
                 ) &&
                 (
                     TitleBeforeModeration == input.TitleBeforeModeration ||
                     (TitleBeforeModeration != null && TitleBeforeModeration.Equals(input.TitleBeforeModeration))
                 ));
        }