Example #1
0
 public bool Equals(UserTriggerGiftDataPB other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     if (ReferenceEquals(other, this))
     {
         return(true);
     }
     if (UserId != other.UserId)
     {
         return(false);
     }
     if (RecordDay != other.RecordDay)
     {
         return(false);
     }
     if (StopRecordTime != other.StopRecordTime)
     {
         return(false);
     }
     if (!TriggerGoal.Equals(other.TriggerGoal))
     {
         return(false);
     }
     if (!TriggerNum.Equals(other.TriggerNum))
     {
         return(false);
     }
     return(true);
 }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (UserId != 0)
            {
                hash ^= UserId.GetHashCode();
            }
            if (RecordDay != 0L)
            {
                hash ^= RecordDay.GetHashCode();
            }
            if (StopRecordTime != 0L)
            {
                hash ^= StopRecordTime.GetHashCode();
            }
            hash ^= TriggerGoal.GetHashCode();
            hash ^= TriggerNum.GetHashCode();
            return(hash);
        }