public void MergeFrom(UnlockCoaxSleepAudioRes other) { if (other == null) { return; } if (other.Ret != 0) { Ret = other.Ret; } if (other.userCoaxSleepInfo_ != null) { if (userCoaxSleepInfo_ == null) { userCoaxSleepInfo_ = new global::Com.Proto.UserCoaxSleepInfoPB(); } UserCoaxSleepInfo.MergeFrom(other.UserCoaxSleepInfo); } if (other.userMoney_ != null) { if (userMoney_ == null) { userMoney_ = new global::Com.Proto.UserMoneyPB(); } UserMoney.MergeFrom(other.UserMoney); } }
public override int GetHashCode() { int hash = 1; if (Ret != 0) { hash ^= Ret.GetHashCode(); } if (userCoaxSleepInfo_ != null) { hash ^= UserCoaxSleepInfo.GetHashCode(); } if (userMoney_ != null) { hash ^= UserMoney.GetHashCode(); } return(hash); }