コード例 #1
0
        public override int GetHashCode()
        {
            int hashCode = -583489154;

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

            return(hashCode);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hashCode = 1520527476;

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

            return(hashCode);
        }
コード例 #3
0
        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));
        }
コード例 #4
0
        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)));
        }
コード例 #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);
        }
コード例 #6
0
        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)));
        }
コード例 #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);
        }
コード例 #8
0
        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);
        }
コード例 #9
0
        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);
        }