Try your search with a different keyword or use * as a wildcard.
namespace Nop.Core.Domain.Messages;
///
/// Email subscribed event
///
public partial class EmailSubscribedEvent
{
///
/// Ctor
///
/// Subscription
public EmailSubscribedEvent(NewsLetterSubscription subscription)
{
Subscription = subscription;
}
///
/// Subscription
///
public NewsLetterSubscription Subscription { get; }
///
/// Equals
///
/// Other event
/// Result
public bool Equals(EmailSubscribedEvent other)
{
if (ReferenceEquals(null, other))
return false;
if (ReferenceEquals(this, other))
return true;
return Equals(other.Subscription, Subscription);
}
///
/// Equals
///
/// Object
/// Result
public override bool Equals(object obj)
{
if (obj is null)
return false;
if (ReferenceEquals(this, obj))
return true;
if (obj.GetType() != typeof(EmailSubscribedEvent))
return false;
return Equals((EmailSubscribedEvent)obj);
}
///
/// Get hash code
///
/// Hash code
public override int GetHashCode()
{
return Subscription != null ? Subscription.GetHashCode() : 0;
}
}