public override int GetHashCode()
        {
            int hashCode = -583489154;

            if (LoyaltyProgramId != null)
            {
                hashCode += LoyaltyProgramId.GetHashCode();
            }
            hashCode += Points.GetHashCode();

            return(hashCode);
        }
        public override int GetHashCode()
        {
            int hashCode = 1520527476;

            if (LoyaltyProgramId != null)
            {
                hashCode += LoyaltyProgramId.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 LoyaltyEventExpirePoints other &&
                   ((LoyaltyProgramId == null && other.LoyaltyProgramId == null) || (LoyaltyProgramId?.Equals(other.LoyaltyProgramId) == true)) &&
                   Points.Equals(other.Points));
        }
        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)));
        }
Exemple #5
0
        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 LoyaltyEventAccumulatePoints other &&
                   ((LoyaltyProgramId == null && other.LoyaltyProgramId == null) || (LoyaltyProgramId?.Equals(other.LoyaltyProgramId) == true)) &&
                   ((Points == null && other.Points == null) || (Points?.Equals(other.Points) == true)) &&
                   ((OrderId == null && other.OrderId == null) || (OrderId?.Equals(other.OrderId) == true)));
        }
Exemple #7
0
        public override int GetHashCode()
        {
            int hashCode = 318164469;

            if (LoyaltyProgramId != null)
            {
                hashCode += LoyaltyProgramId.GetHashCode();
            }
            hashCode += Points.GetHashCode();

            if (Reason != null)
            {
                hashCode += Reason.GetHashCode();
            }

            return(hashCode);
        }
        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 hashCode = 893046875;

            if (LoyaltyProgramId != null)
            {
                hashCode += LoyaltyProgramId.GetHashCode();
            }

            if (Points != null)
            {
                hashCode += Points.GetHashCode();
            }

            if (OrderId != null)
            {
                hashCode += OrderId.GetHashCode();
            }

            return(hashCode);
        }