public override int GetHashCode() { int hash = 1; if (RewardId.Length != 0) { hash ^= RewardId.GetHashCode(); } if (Day != 0) { hash ^= Day.GetHashCode(); } if (ItemSetId != 0UL) { hash ^= ItemSetId.GetHashCode(); } if (U4 != 0) { hash ^= U4.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <summary> /// Gets the hash code for this object. /// </summary> /// <returns> /// The hash code for this object. /// </returns> /// <remarks> /// * CA2218: /// * If two objects are equal in value based on the Equals override, they must both return the same value for calls /// to GetHashCode. /// * GetHashCode must be overridden whenever Equals is overridden. /// * It is fine if the value overflows. /// </remarks> public override int GetHashCode() { return(Id.GetHashCode() + ReferralEvent.GetHashCode() + RewardId.GetHashCode() + PerUserLimit.GetHashCode()); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is LoyaltyEventRedeemReward other && ((LoyaltyProgramId == null && other.LoyaltyProgramId == null) || (LoyaltyProgramId?.Equals(other.LoyaltyProgramId) == true)) && ((RewardId == null && other.RewardId == null) || (RewardId?.Equals(other.RewardId) == true)) && ((OrderId == null && other.OrderId == null) || (OrderId?.Equals(other.OrderId) == true))); }
public override int GetHashCode() { int hashCode = -1128419050; if (LoyaltyProgramId != null) { hashCode += LoyaltyProgramId.GetHashCode(); } if (RewardId != null) { hashCode += RewardId.GetHashCode(); } hashCode += Points.GetHashCode(); return(hashCode); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is LoyaltyEventDeleteReward other && ((LoyaltyProgramId == null && other.LoyaltyProgramId == null) || (LoyaltyProgramId?.Equals(other.LoyaltyProgramId) == true)) && ((RewardId == null && other.RewardId == null) || (RewardId?.Equals(other.RewardId) == true)) && Points.Equals(other.Points)); }
public override int GetHashCode() { int hashCode = 2041086926; if (LoyaltyProgramId != null) { hashCode += LoyaltyProgramId.GetHashCode(); } if (RewardId != null) { hashCode += RewardId.GetHashCode(); } if (OrderId != null) { hashCode += OrderId.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { int hash = 1; if (LoginBonusId.Length != 0) { hash ^= LoginBonusId.GetHashCode(); } if (RewardId.Length != 0) { hash ^= RewardId.GetHashCode(); } if (Type != 0) { hash ^= Type.GetHashCode(); } if (LoginBonusNameId.Length != 0) { hash ^= LoginBonusNameId.GetHashCode(); } if (BannerId != 0) { hash ^= BannerId.GetHashCode(); } if (StartDate != 0) { hash ^= StartDate.GetHashCode(); } if (EndDate != 0) { hash ^= EndDate.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }