public override bool Equals(object o) { if (!(o is DefaultViewer)) { return(false); } DefaultViewer v = o as DefaultViewer; if (!IsActive.Equals(v.IsActive)) { return(false); } if (!OutputFormat.Equals(v.OutputFormat)) { return(false); } if (!Parameters.Equals(v.Parameters)) { return(false); } if (!Path.Equals(v.Path)) { return(false); } return(true); }
public bool Equals(DestinyPerkReference input) { if (input == null) { return(false); } return (( PerkHash == input.PerkHash || (PerkHash.Equals(input.PerkHash)) ) && ( IconPath == input.IconPath || (IconPath != null && IconPath.Equals(input.IconPath)) ) && ( IsActive == input.IsActive || (IsActive != null && IsActive.Equals(input.IsActive)) ) && ( Visible == input.Visible || (Visible != null && Visible.Equals(input.Visible)) )); }
/// <summary> /// Returns true if StoreActivationStatus instances are equal /// </summary> /// <param name="input">Instance of StoreActivationStatus to be compared</param> /// <returns>Boolean</returns> public bool Equals(StoreActivationStatus input) { if (input == null) { return(false); } return (( IsActive == input.IsActive || IsActive != null && IsActive.Equals(input.IsActive) ) && ( Reason == input.Reason || Reason != null && Reason.Equals(input.Reason) ) && ( Notes == input.Notes || Notes != null && Notes.Equals(input.Notes) ) && ( ShouldSendEmail == input.ShouldSendEmail || ShouldSendEmail != null && ShouldSendEmail.Equals(input.ShouldSendEmail) )); }
/// <summary> /// Returns true if MenuDetails instances are equal /// </summary> /// <param name="input">Instance of MenuDetails to be compared</param> /// <returns>Boolean</returns> public bool Equals(MenuDetails input) { if (input == null) { return(false); } return (( MenuId == input.MenuId || MenuId != null && MenuId.Equals(input.MenuId) ) && ( Name == input.Name || Name != null && Name.Equals(input.Name) ) && ( Subtitle == input.Subtitle || Subtitle != null && Subtitle.Equals(input.Subtitle) ) && ( IsActive == input.IsActive || IsActive != null && IsActive.Equals(input.IsActive) ) && ( IsPosMenu == input.IsPosMenu || IsPosMenu != null && IsPosMenu.Equals(input.IsPosMenu) ) && ( LatestMenuUpdate == input.LatestMenuUpdate || LatestMenuUpdate != null && LatestMenuUpdate.Equals(input.LatestMenuUpdate) ) && ( LastSuccessfulMenuUpdateAt == input.LastSuccessfulMenuUpdateAt || LastSuccessfulMenuUpdateAt != null && LastSuccessfulMenuUpdateAt.Equals(input.LastSuccessfulMenuUpdateAt) ) && ( Url == input.Url || Url != null && Url.Equals(input.Url) ) && ( OpenHours == input.OpenHours || OpenHours != null && OpenHours.SequenceEqual(input.OpenHours) ) && ( SpecialHours == input.SpecialHours || SpecialHours != null && SpecialHours.SequenceEqual(input.SpecialHours) )); }
/// <summary> /// Returns true if StoreInfo instances are equal /// </summary> /// <param name="input">Instance of StoreInfo to be compared</param> /// <returns>Boolean</returns> public bool Equals(StoreInfo input) { if (input == null) { return(false); } return (( ProviderName == input.ProviderName || ProviderName != null && ProviderName.Equals(input.ProviderName) ) && ( MerchantSuppliedId == input.MerchantSuppliedId || MerchantSuppliedId != null && MerchantSuppliedId.Equals(input.MerchantSuppliedId) ) && ( IsActive == input.IsActive || IsActive != null && IsActive.Equals(input.IsActive) ) && ( IsOrderProtocolPos == input.IsOrderProtocolPos || IsOrderProtocolPos != null && IsOrderProtocolPos.Equals(input.IsOrderProtocolPos) ) && ( AutoReleaseEnabled == input.AutoReleaseEnabled || AutoReleaseEnabled != null && AutoReleaseEnabled.Equals(input.AutoReleaseEnabled) ) && ( AutoReleaseDistance == input.AutoReleaseDistance || AutoReleaseDistance != null && AutoReleaseDistance.Equals(input.AutoReleaseDistance) ) && ( SpecialInstructionsMaxLength == input.SpecialInstructionsMaxLength || SpecialInstructionsMaxLength != null && SpecialInstructionsMaxLength.Equals(input.SpecialInstructionsMaxLength) ) && ( CurrentDeactivations == input.CurrentDeactivations || CurrentDeactivations != null && CurrentDeactivations.SequenceEqual(input.CurrentDeactivations) )); }
/// <summary> /// Equality method between two objects of the same type. /// Because the Equals method is strongly typed by generic constraints, /// it is not necessary to test for the correct object type. /// For safety we just want to match on business key value - in this case the fields /// that cannot be different between the two objects if they are supposedly equal. /// </summary> /// <param name="obj">The other object of this type that we are testing equality with</param> /// <returns></returns> public virtual bool Equals(GetAllInputDtoBase <TIdType> obj) { if (obj != null) { return(Name.Equals(obj.Name) && Culture.Equals(obj.Culture) && TenantId.Equals(obj.TenantId) && DescriptionShort.Equals(obj.DescriptionShort) && DescriptionFull.Equals(obj.DescriptionFull) && IsActive.Equals(obj.IsActive) && CreationTime.Equals(obj.CreationTime) && CreatorUserName.Equals(obj.CreatorUserName) && LastModifierUserName.Equals(obj.LastModifierUserName) && LastModificationTime.Equals(obj.LastModificationTime) ); } return(false); }
/// <summary> /// Equality method between two objects of the same type. /// Because the Equals method is strongly typed by generic constraints, /// it is not necessary to test for the correct object type. /// For safety we just want to match on business key value - in this case the fields /// that cannot be different between the two objects if they are supposedly equal. /// </summary> /// <param name="obj">The other object of this type that we are testing equality with</param> /// <returns></returns> public virtual bool Equals(GetAdminOutputDtoBase <TIdType> obj) { if (obj != null) { return(Id.Equals(obj.Id) && Culture.Equals(obj.Culture) && TranslatedFromId.Equals(obj.TranslatedFromId) && IsActive.Equals(obj.IsActive) && IsDeleted.Equals(obj.IsDeleted) && DescriptionFull.Equals(obj.DescriptionFull) && CreationTime.Equals(obj.CreationTime) && CreatorUserId.Equals(obj.CreatorUserId) && CreatorUserName.Equals(obj.CreatorUserName) && LastModifierUserId.Equals(obj.LastModifierUserId) && LastModifierUserName.Equals(obj.LastModifierUserName) && LastModificationTime.Equals(obj.LastModificationTime) ); } return(false); }
/// <summary> /// Equality method between two objects of the same type. /// Because the Equals method is strongly typed by generic constraints, /// it is not necessary to test for the correct object type. /// For safety we just want to match on business key value - in this case the fields /// that cannot be different between the two objects if they are supposedly equal. /// </summary> /// <param name="obj">The other object of this type that we are testing equality with</param> /// <returns></returns> public virtual bool Equals(UserOwnedDomainEntityBase <TIdType> obj) { if (obj != null) { // Transient objects are not considered as equal if (IsTransient() && obj.IsTransient()) { return(false); } else { // For safe equality we need to match on business key equality. // Base domain entities are functionally equal if their key and metadata are equal. // Subclasses should extend to include their own enhanced equality checks, as required. return(Id.Equals(obj.Id) && Culture.Equals(obj.Culture) && ExternalId.Equals(obj.ExternalId) && IsActive.Equals(obj.IsActive) && IsDeleted.Equals(obj.IsDeleted) && UserId.Equals(obj.UserId)); } } return(false); }
/// <summary> /// Equality method between two objects of the same type. /// Because the Equals method is strongly typed by generic constraints, /// it is not necessary to test for the correct object type. /// </summary> /// <param name="obj">The other object of this type we are testing equality with</param> /// <returns>True if the objects are equal in value</returns> public virtual bool Equals(MetadataInformation obj) { // If parameter is null, return false. if (obj is null) { return(false); } // Optimization for a common success case. if (ReferenceEquals(this, obj)) { return(true); } // If run-time types are not exactly the same, return false. if (this.GetType() != obj.GetType()) { return(false); } // Return true if the fields match. // Note that the base class is not invoked because it is // System.Object, which defines Equals as reference equality. return ( TenantId.Equals(obj.TenantId) && CreatorUserId.Equals(obj.CreatorUserId) && Name.Equals(obj.Name) && DescriptionFull.Equals(obj.DescriptionFull) && DescriptionShort.Equals(obj.DescriptionShort) && LastModifierUserId.Equals(obj.LastModifierUserId) && CreationTime.Equals(obj.CreationTime) && LastModificationTime.Equals(obj.LastModificationTime) && IsDeleted.Equals(obj.IsDeleted) && IsActive.Equals(obj.IsActive) ) ; }
/// <summary> /// Returns true if Instrument instances are equal /// </summary> /// <param name="other">Instance of Instrument to be compared</param> /// <returns>Boolean</returns> public bool Equals(Instrument other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( QuoteCurrency == other.QuoteCurrency || QuoteCurrency.Equals(other.QuoteCurrency) ) && ( Kind == other.Kind || Kind.Equals(other.Kind) ) && ( TickSize == other.TickSize || TickSize != null && TickSize.Equals(other.TickSize) ) && ( ContractSize == other.ContractSize || ContractSize != null && ContractSize.Equals(other.ContractSize) ) && ( IsActive == other.IsActive || IsActive != null && IsActive.Equals(other.IsActive) ) && ( OptionType == other.OptionType || OptionType.Equals(other.OptionType) ) && ( MinTradeAmount == other.MinTradeAmount || MinTradeAmount != null && MinTradeAmount.Equals(other.MinTradeAmount) ) && ( InstrumentName == other.InstrumentName || InstrumentName != null && InstrumentName.Equals(other.InstrumentName) ) && ( SettlementPeriod == other.SettlementPeriod || SettlementPeriod.Equals(other.SettlementPeriod) ) && ( Strike == other.Strike || Strike != null && Strike.Equals(other.Strike) ) && ( BaseCurrency == other.BaseCurrency || BaseCurrency.Equals(other.BaseCurrency) ) && ( CreationTimestamp == other.CreationTimestamp || CreationTimestamp != null && CreationTimestamp.Equals(other.CreationTimestamp) ) && ( ExpirationTimestamp == other.ExpirationTimestamp || ExpirationTimestamp != null && ExpirationTimestamp.Equals(other.ExpirationTimestamp) )); }
/// <summary> /// Returns true if PassportPDFPassport instances are equal /// </summary> /// <param name="input">Instance of PassportPDFPassport to be compared</param> /// <returns>Boolean</returns> public bool Equals(PassportPDFPassport input) { if (input == null) { return(false); } return (( PassportId == input.PassportId || (PassportId != null && PassportId.Equals(input.PassportId)) ) && ( PlanId == input.PlanId || PlanId.Equals(input.PlanId) ) && ( OptionalLinkedSubscriptionId == input.OptionalLinkedSubscriptionId || (OptionalLinkedSubscriptionId != null && OptionalLinkedSubscriptionId.Equals(input.OptionalLinkedSubscriptionId)) ) && ( SubscriptionDate == input.SubscriptionDate || (SubscriptionDate != null && SubscriptionDate.Equals(input.SubscriptionDate)) ) && ( ExpirationDate == input.ExpirationDate || (ExpirationDate != null && ExpirationDate.Equals(input.ExpirationDate)) ) && ( CurrentTokensUsed == input.CurrentTokensUsed || CurrentTokensUsed.Equals(input.CurrentTokensUsed) ) && ( ExtraTokens == input.ExtraTokens || ExtraTokens.Equals(input.ExtraTokens) ) && ( ExtraTokensEndDate == input.ExtraTokensEndDate || (ExtraTokensEndDate != null && ExtraTokensEndDate.Equals(input.ExtraTokensEndDate)) ) && ( IsYearlyPaid == input.IsYearlyPaid || IsYearlyPaid.Equals(input.IsYearlyPaid) ) && ( IsActive == input.IsActive || IsActive.Equals(input.IsActive) ) && ( TokensPercentUsageAlert == input.TokensPercentUsageAlert || TokensPercentUsageAlert.Equals(input.TokensPercentUsageAlert) ) && ( TokensPercentUsageAlertSent == input.TokensPercentUsageAlertSent || TokensPercentUsageAlertSent.Equals(input.TokensPercentUsageAlertSent) ) && ( IsManaged == input.IsManaged || IsManaged.Equals(input.IsManaged) ) && ( NextMonthlyTerm == input.NextMonthlyTerm || (NextMonthlyTerm != null && NextMonthlyTerm.Equals(input.NextMonthlyTerm)) ) && ( RemainingTokens == input.RemainingTokens || RemainingTokens.Equals(input.RemainingTokens) )); }
/// <summary> /// Determines whether the specified Object is equal to the current Object. /// </summary> /// <param name="obj"></param> /// <returns></returns> public override bool Equals(object obj) { if (obj == null) { return(false); } if (Object.ReferenceEquals(this, obj)) { return(true); } if (this.GetType() != obj.GetType()) { return(false); } var other = (VLSystemUser)obj; //reference types if (!Object.Equals(FirstName, other.FirstName)) { return(false); } if (!Object.Equals(LastName, other.LastName)) { return(false); } if (!Object.Equals(Email, other.Email)) { return(false); } if (!Object.Equals(TimeZoneId, other.TimeZoneId)) { return(false); } if (!Object.Equals(Notes, other.Notes)) { return(false); } //value types if (!UserId.Equals(other.UserId)) { return(false); } if (!DefaultLanguage.Equals(other.DefaultLanguage)) { return(false); } if (!IsActive.Equals(other.IsActive)) { return(false); } if (!IsBuiltIn.Equals(other.IsBuiltIn)) { return(false); } if (!AttributeFlags.Equals(other.AttributeFlags)) { return(false); } if (!Role.Equals(other.Role)) { return(false); } if (!LastActivityDate.Equals(other.LastActivityDate)) { return(false); } return(true); }
public bool Equals(PostResponse input) { if (input == null) { return(false); } return (( LastReplyTimestamp == input.LastReplyTimestamp || (LastReplyTimestamp != null && LastReplyTimestamp.Equals(input.LastReplyTimestamp)) ) && ( IsPinned == input.IsPinned || (IsPinned != null && IsPinned.Equals(input.IsPinned)) ) && ( UrlMediaType == input.UrlMediaType || (UrlMediaType != null && UrlMediaType.Equals(input.UrlMediaType)) ) && ( Thumbnail == input.Thumbnail || (Thumbnail != null && Thumbnail.Equals(input.Thumbnail)) ) && ( Popularity == input.Popularity || (Popularity != null && Popularity.Equals(input.Popularity)) ) && ( IsActive == input.IsActive || (IsActive != null && IsActive.Equals(input.IsActive)) ) && ( IsAnnouncement == input.IsAnnouncement || (IsAnnouncement != null && IsAnnouncement.Equals(input.IsAnnouncement)) ) && ( UserRating == input.UserRating || (UserRating.Equals(input.UserRating)) ) && ( UserHasRated == input.UserHasRated || (UserHasRated != null && UserHasRated.Equals(input.UserHasRated)) ) && ( UserHasMutedPost == input.UserHasMutedPost || (UserHasMutedPost != null && UserHasMutedPost.Equals(input.UserHasMutedPost)) ) && ( LatestReplyPostId == input.LatestReplyPostId || (LatestReplyPostId.Equals(input.LatestReplyPostId)) ) && ( LatestReplyAuthorId == input.LatestReplyAuthorId || (LatestReplyAuthorId.Equals(input.LatestReplyAuthorId)) ) && ( IgnoreStatus == input.IgnoreStatus || (IgnoreStatus != null && IgnoreStatus.Equals(input.IgnoreStatus)) ) && ( Locale == input.Locale || (Locale != null && Locale.Equals(input.Locale)) )); }