public override int GetHashCode() { unchecked { var hashCode = _totalBalance.GetHashCode(); hashCode = (hashCode * 397) ^ AutoSleep.GetHashCode(); hashCode = (hashCode * 397) ^ SleepThreshold.GetHashCode(); hashCode = (hashCode * 397) ^ (Login != null ? Login.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Password != null ? Password.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Role != null ? Role.GetHashCode() : 0); hashCode = (hashCode * 397) ^ LicenseExpDate.GetHashCode(); hashCode = (hashCode * 397) ^ (Status != null ? Status.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ConnectionID != null ? ConnectionID.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Sleep != null ? Sleep.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Alerts.GetHashCode(); hashCode = (hashCode * 397) ^ AllTrades.GetHashCode(); hashCode = (hashCode * 397) ^ AllTradesPro.GetHashCode(); hashCode = (hashCode * 397) ^ Chart.GetHashCode(); hashCode = (hashCode * 397) ^ Counter.GetHashCode(); hashCode = (hashCode * 397) ^ L2.GetHashCode(); hashCode = (hashCode * 397) ^ Logbook.GetHashCode(); hashCode = (hashCode * 397) ^ Trading.GetHashCode(); hashCode = (hashCode * 397) ^ FastOrder.GetHashCode(); hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0); hashCode = (hashCode * 397) ^ SleepThreshold.GetHashCode(); hashCode = (hashCode * 397) ^ ProfitControl.GetHashCode(); hashCode = (hashCode * 397) ^ ProfitLimit.GetHashCode(); hashCode = (hashCode * 397) ^ ProfitLossLimit.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (TimestampMs != 0L) { hash ^= TimestampMs.GetHashCode(); } if (Sfida != false) { hash ^= Sfida.GetHashCode(); } if (actionCase_ == ActionOneofCase.CatchPokemon) { hash ^= CatchPokemon.GetHashCode(); } if (actionCase_ == ActionOneofCase.FortSearch) { hash ^= FortSearch.GetHashCode(); } if (actionCase_ == ActionOneofCase.BuddyPokemon) { hash ^= BuddyPokemon.GetHashCode(); } if (actionCase_ == ActionOneofCase.RaidRewards) { hash ^= RaidRewards.GetHashCode(); } if (actionCase_ == ActionOneofCase.PasscodeRewards) { hash ^= PasscodeRewards.GetHashCode(); } if (actionCase_ == ActionOneofCase.CompleteQuest) { hash ^= CompleteQuest.GetHashCode(); } if (actionCase_ == ActionOneofCase.CompleteQuestStampCard) { hash ^= CompleteQuestStampCard.GetHashCode(); } if (actionCase_ == ActionOneofCase.CompleteQuestPokemonEncounter) { hash ^= CompleteQuestPokemonEncounter.GetHashCode(); } if (actionCase_ == ActionOneofCase.OpenGift) { hash ^= OpenGift.GetHashCode(); } if (actionCase_ == ActionOneofCase.SendGift) { hash ^= SendGift.GetHashCode(); } if (actionCase_ == ActionOneofCase.Trading) { hash ^= Trading.GetHashCode(); } hash ^= (int)actionCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }