/// <summary> /// Returns true if Location instances are equal /// </summary> /// <param name="input">Instance of Location to be compared</param> /// <returns>Boolean</returns> public bool Equals(Location?input) { if (input == null) { return(false); } return (( LocalizedName == input.LocalizedName || (LocalizedName != null && LocalizedName.Equals(input.LocalizedName)) ) && ( Id == input.Id || Id.Equals(input.Id) ) && ( Name == input.Name || (Name != null && Name.Equals(input.Name)) ) && ( IsCountry == input.IsCountry || IsCountry.Equals(input.IsCountry) ) && ( CountryCode == input.CountryCode || (CountryCode != null && CountryCode.Equals(input.CountryCode)) )); }
/// <summary> /// Check equality based on is localized name /// </summary> /// <param name="obj"></param> /// <returns>True if equal, false otherwise</returns> public override bool Equals(object obj) { var item = obj as EnglishLanguage; if (item == null) { return(false); } return(LocalizedName.Equals(item.LocalizedName)); }
public bool Equals(PartnerOfferHistoryResponse input) { if (input == null) { return(false); } return (( PartnerOfferKey == input.PartnerOfferKey || (PartnerOfferKey != null && PartnerOfferKey.Equals(input.PartnerOfferKey)) ) && ( MembershipId == input.MembershipId || (MembershipId.Equals(input.MembershipId)) ) && ( MembershipType == input.MembershipType || (MembershipType.Equals(input.MembershipType)) ) && ( LocalizedName == input.LocalizedName || (LocalizedName != null && LocalizedName.Equals(input.LocalizedName)) ) && ( LocalizedDescription == input.LocalizedDescription || (LocalizedDescription != null && LocalizedDescription.Equals(input.LocalizedDescription)) ) && ( IsConsumable == input.IsConsumable || (IsConsumable != null && IsConsumable.Equals(input.IsConsumable)) ) && ( QuantityApplied == input.QuantityApplied || (QuantityApplied.Equals(input.QuantityApplied)) ) && ( ApplyDate == input.ApplyDate || (ApplyDate != null && ApplyDate.Equals(input.ApplyDate)) )); }
public bool Equals(PartnerOfferSkuHistoryResponse input) { if (input == null) { return(false); } return (( SkuIdentifier == input.SkuIdentifier || (SkuIdentifier != null && SkuIdentifier.Equals(input.SkuIdentifier)) ) && ( LocalizedName == input.LocalizedName || (LocalizedName != null && LocalizedName.Equals(input.LocalizedName)) ) && ( LocalizedDescription == input.LocalizedDescription || (LocalizedDescription != null && LocalizedDescription.Equals(input.LocalizedDescription)) ) && ( ClaimDate == input.ClaimDate || (ClaimDate != null && ClaimDate.Equals(input.ClaimDate)) ) && ( AllOffersApplied == input.AllOffersApplied || (AllOffersApplied != null && AllOffersApplied.Equals(input.AllOffersApplied)) ) && ( TransactionId == input.TransactionId || (TransactionId != null && TransactionId.Equals(input.TransactionId)) ) && ( SkuOffers == input.SkuOffers || (SkuOffers != null && SkuOffers.SequenceEqual(input.SkuOffers)) )); }
/// <summary> /// Check equality based on is localized name /// </summary> /// <param name="obj"></param> /// <returns>True if equal, false otherwise</returns> public override bool Equals(object obj) { var item = obj as FrenchLanguage; return(item != null && LocalizedName.Equals(item.LocalizedName)); }