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); }