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

            return
                ((
                     LendingRateType == other.LendingRateType ||
                     LendingRateType != null &&
                     LendingRateType.Equals(other.LendingRateType)
                     ) &&
                 (
                     Rate == other.Rate ||
                     Rate != null &&
                     Rate.Equals(other.Rate)
                 ) &&
                 (
                     CalculationFrequency == other.CalculationFrequency ||
                     CalculationFrequency != null &&
                     CalculationFrequency.Equals(other.CalculationFrequency)
                 ) &&
                 (
                     ApplicationFrequency == other.ApplicationFrequency ||
                     ApplicationFrequency != null &&
                     ApplicationFrequency.Equals(other.ApplicationFrequency)
                 ) &&
                 (
                     PaymentStructureType == other.PaymentStructureType ||
                     PaymentStructureType != null &&
                     PaymentStructureType.Equals(other.PaymentStructureType)
                 ) &&
                 (
                     Tier == other.Tier ||
                     Tier != null &&
                     Tier.Equals(other.Tier)
                 ) &&
                 (
                     AdditionalValue == other.AdditionalValue ||
                     AdditionalValue != null &&
                     AdditionalValue.Equals(other.AdditionalValue)
                 ) &&
                 (
                     AdditionalInfo == other.AdditionalInfo ||
                     AdditionalInfo != null &&
                     AdditionalInfo.Equals(other.AdditionalInfo)
                 ) &&
                 (
                     AdditionalInfoUri == other.AdditionalInfoUri ||
                     AdditionalInfoUri != null &&
                     AdditionalInfoUri.Equals(other.AdditionalInfoUri)
                 ));
        }
        public void RemoveTier(Tier tier)
        {
            if (tier.Equals(WorkingTier))
            {
                SetTier(tier);
            }

            Transform parent = CurrentAsssembly.GetTierParent(tier);

            CurrentAsssembly.RemoveTier(tier);
            Destroy(parent.gameObject);
        }
예제 #3
0
 public bool Equals(RedisClusterSize?redisClusterSize)
 {
     return(redisClusterSize != null && Tier.Equals(redisClusterSize.Tier) && Shards == redisClusterSize.Shards);
 }
        public bool Equals(DestinyActivityDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     DisplayProperties == input.DisplayProperties ||
                     (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties))
                     ) &&
                 (
                     OriginalDisplayProperties == input.OriginalDisplayProperties ||
                     (OriginalDisplayProperties != null && OriginalDisplayProperties.Equals(input.OriginalDisplayProperties))
                 ) &&
                 (
                     SelectionScreenDisplayProperties == input.SelectionScreenDisplayProperties ||
                     (SelectionScreenDisplayProperties != null && SelectionScreenDisplayProperties.Equals(input.SelectionScreenDisplayProperties))
                 ) &&
                 (
                     ReleaseIcon == input.ReleaseIcon ||
                     (ReleaseIcon != null && ReleaseIcon.Equals(input.ReleaseIcon))
                 ) &&
                 (
                     ReleaseTime == input.ReleaseTime ||
                     (ReleaseTime.Equals(input.ReleaseTime))
                 ) &&
                 (
                     ActivityLightLevel == input.ActivityLightLevel ||
                     (ActivityLightLevel.Equals(input.ActivityLightLevel))
                 ) &&
                 (
                     DestinationHash == input.DestinationHash ||
                     (DestinationHash.Equals(input.DestinationHash))
                 ) &&
                 (
                     PlaceHash == input.PlaceHash ||
                     (PlaceHash.Equals(input.PlaceHash))
                 ) &&
                 (
                     ActivityTypeHash == input.ActivityTypeHash ||
                     (ActivityTypeHash.Equals(input.ActivityTypeHash))
                 ) &&
                 (
                     Tier == input.Tier ||
                     (Tier.Equals(input.Tier))
                 ) &&
                 (
                     PgcrImage == input.PgcrImage ||
                     (PgcrImage != null && PgcrImage.Equals(input.PgcrImage))
                 ) &&
                 (
                     Rewards == input.Rewards ||
                     (Rewards != null && Rewards.SequenceEqual(input.Rewards))
                 ) &&
                 (
                     Modifiers == input.Modifiers ||
                     (Modifiers != null && Modifiers.SequenceEqual(input.Modifiers))
                 ) &&
                 (
                     IsPlaylist == input.IsPlaylist ||
                     (IsPlaylist != null && IsPlaylist.Equals(input.IsPlaylist))
                 ) &&
                 (
                     Challenges == input.Challenges ||
                     (Challenges != null && Challenges.SequenceEqual(input.Challenges))
                 ) &&
                 (
                     OptionalUnlockStrings == input.OptionalUnlockStrings ||
                     (OptionalUnlockStrings != null && OptionalUnlockStrings.SequenceEqual(input.OptionalUnlockStrings))
                 ) &&
                 (
                     PlaylistItems == input.PlaylistItems ||
                     (PlaylistItems != null && PlaylistItems.SequenceEqual(input.PlaylistItems))
                 ) &&
                 (
                     ActivityGraphList == input.ActivityGraphList ||
                     (ActivityGraphList != null && ActivityGraphList.SequenceEqual(input.ActivityGraphList))
                 ) &&
                 (
                     Matchmaking == input.Matchmaking ||
                     (Matchmaking != null && Matchmaking.Equals(input.Matchmaking))
                 ) &&
                 (
                     GuidedGame == input.GuidedGame ||
                     (GuidedGame != null && GuidedGame.Equals(input.GuidedGame))
                 ) &&
                 (
                     DirectActivityModeHash == input.DirectActivityModeHash ||
                     (DirectActivityModeHash.Equals(input.DirectActivityModeHash))
                 ) &&
                 (
                     DirectActivityModeType == input.DirectActivityModeType ||
                     (DirectActivityModeType.Equals(input.DirectActivityModeType))
                 ) &&
                 (
                     Loadouts == input.Loadouts ||
                     (Loadouts != null && Loadouts.SequenceEqual(input.Loadouts))
                 ) &&
                 (
                     ActivityModeHashes == input.ActivityModeHashes ||
                     (ActivityModeHashes != null && ActivityModeHashes.SequenceEqual(input.ActivityModeHashes))
                 ) &&
                 (
                     ActivityModeTypes == input.ActivityModeTypes ||
                     (ActivityModeTypes != null && ActivityModeTypes.SequenceEqual(input.ActivityModeTypes))
                 ) &&
                 (
                     IsPvP == input.IsPvP ||
                     (IsPvP != null && IsPvP.Equals(input.IsPvP))
                 ) &&
                 (
                     InsertionPoints == input.InsertionPoints ||
                     (InsertionPoints != null && InsertionPoints.SequenceEqual(input.InsertionPoints))
                 ) &&
                 (
                     ActivityLocationMappings == input.ActivityLocationMappings ||
                     (ActivityLocationMappings != null && ActivityLocationMappings.SequenceEqual(input.ActivityLocationMappings))
                 ) &&
                 (
                     Hash == input.Hash ||
                     (Hash.Equals(input.Hash))
                 ) &&
                 (
                     Index == input.Index ||
                     (Index.Equals(input.Index))
                 ) &&
                 (
                     Redacted == input.Redacted ||
                     (Redacted != null && Redacted.Equals(input.Redacted))
                 ));
        }
예제 #5
0
 public bool Equals(OverrideKey other) => AppName == other.AppName && Tier.Equals(other.Tier) && DataCenter.Equals(other.DataCenter);
예제 #6
0
 public bool IsCut()
 {
     return(Tier.Equals("TimesToCut", StringComparison.CurrentCultureIgnoreCase) &&
            Text.Equals("cut", StringComparison.CurrentCultureIgnoreCase));
 }
예제 #7
0
 public bool IsTurn()
 {
     return(Tier.Equals("Turn", StringComparison.CurrentCultureIgnoreCase) &&
            !string.IsNullOrWhiteSpace(Text));
 }