public override bool Equals(BulkEntityIdentifier other)
        {
            var otherProductAdExtensionIdentifier = other as BulkProductAdExtensionIdentifier;

            if (otherProductAdExtensionIdentifier == null)
            {
                return(false);
            }

            return(AccountId == otherProductAdExtensionIdentifier.AccountId &&
                   AdExtensionId == otherProductAdExtensionIdentifier.AdExtensionId);
        }
        public override bool Equals(BulkEntityIdentifier other)
        {
            var otherSiteLinkIdentity = other as SiteLinkAdExtensionIdentifier;

            if (otherSiteLinkIdentity == null)
            {
                return(false);
            }

            return(AccountId == otherSiteLinkIdentity.AccountId &&
                   AdExtensionId == otherSiteLinkIdentity.AdExtensionId);
        }
Exemple #3
0
        /// <summary>
        /// Reserved for internal use.
        /// </summary>
        public override bool Equals(BulkEntityIdentifier other)
        {
            var otherIdentifier = other as BulkCampaignNegativeSitesIdentifier;

            if (otherIdentifier == null)
            {
                return(false);
            }

            var isNameNotEmpty = !string.IsNullOrEmpty(CampaignName);

            return(CampaignId == otherIdentifier.CampaignId ||
                   (isNameNotEmpty && CampaignName == otherIdentifier.CampaignName));
        }
Exemple #4
0
        /// <summary>
        /// Reserved for internal use.
        /// </summary>
        public override bool Equals(BulkEntityIdentifier other)
        {
            var otherIdentifier = other as BulkTargetIdentifier;

            if (otherIdentifier == null)
            {
                return(false);
            }
            var isNameNotEmpty = !string.IsNullOrEmpty(EntityName) && !string.IsNullOrEmpty(ParentEntityName);

            return
                (GetType() == other.GetType() &&
                 (EntityId == otherIdentifier.EntityId ||
                  (isNameNotEmpty &&
                   EntityName == otherIdentifier.EntityName &&
                   ParentEntityName == otherIdentifier.ParentEntityName)));
        }
Exemple #5
0
 /// <summary>
 /// Reserved for internal use.
 /// </summary>
 public override bool Equals(BulkEntityIdentifier other)
 {
     return
         (GetType() == other.GetType() &&
          EntityId == ((BulkTargetIdentifier)other).EntityId);
 }
 public override bool Equals(BulkEntityIdentifier other)
 {
     throw new System.NotImplementedException();
 }