public override int GetHashCode() { int hash = 1; if (FamilyId != 0) { hash ^= FamilyId.GetHashCode(); } if (Candy != 0) { hash ^= Candy.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (FamilyId.Length != 0) { hash ^= FamilyId.GetHashCode(); } if (Amount != 0) { hash ^= Amount.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (FamilyId != 0) { hash ^= FamilyId.GetHashCode(); } if (Candy_ != 0) { hash ^= Candy_.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (FamilyId.Length != 0) { hash ^= FamilyId.GetHashCode(); } if (ShardCount != 0) { hash ^= ShardCount.GetHashCode(); } if (Rarity != 0) { hash ^= Rarity.GetHashCode(); } if (oneTimeRewards_ != null) { hash ^= OneTimeRewards.GetHashCode(); } if (PageId.Length != 0) { hash ^= PageId.GetHashCode(); } if (unlockRequirements_ != null) { hash ^= UnlockRequirements.GetHashCode(); } hash ^= shardCounts_.GetHashCode(); if (StickerDisabled != false) { hash ^= StickerDisabled.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <summary> /// Gets the core filter from this model. /// </summary> /// <returns>Filter.</returns> public ActFilter GetFilter(ITextFilter filter) { return(new ActFilter { PageNumber = PageNumber, PageSize = PageSize, ArchiveId = ArchiveId.GetValueOrDefault(), BookId = BookId.GetValueOrDefault(), BookYearMin = BookYearMin.GetValueOrDefault(), BookYearMax = BookYearMax.GetValueOrDefault(), Description = filter.Apply(Description), ActTypeId = ActTypeId.GetValueOrDefault(), FamilyId = FamilyId.GetValueOrDefault(), CompanyId = CompanyId.GetValueOrDefault(), PlaceId = PlaceId.GetValueOrDefault(), Label = filter.Apply(Label), CategoryIds = ParseIds(CategoryIds), ProfessionIds = ParseIds(ProfessionIds), PartnerIds = ParseIds(PartnerIds) }); }
public override int GetHashCode() { int hash = 1; if (FamilyId.Length != 0) { hash ^= FamilyId.GetHashCode(); } if (FamilyLevel != 0) { hash ^= FamilyLevel.GetHashCode(); } if (ComparisonOperator != 0) { hash ^= ComparisonOperator.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (FamilyId.Length != 0) { hash ^= FamilyId.GetHashCode(); } hash ^= items_.GetHashCode(); hash ^= completionRewards_.GetHashCode(); if (unlockRequirements_ != null) { hash ^= UnlockRequirements.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (PokemonId != 0) { hash ^= PokemonId.GetHashCode(); } if (ModelScale != 0F) { hash ^= ModelScale.GetHashCode(); } if (Type != 0) { hash ^= Type.GetHashCode(); } if (Type2 != 0) { hash ^= Type2.GetHashCode(); } if (camera_ != null) { hash ^= Camera.GetHashCode(); } if (encounter_ != null) { hash ^= Encounter.GetHashCode(); } if (stats_ != null) { hash ^= Stats.GetHashCode(); } hash ^= quickMoves_.GetHashCode(); hash ^= cinematicMoves_.GetHashCode(); hash ^= animationTime_.GetHashCode(); hash ^= evolutionIds_.GetHashCode(); if (EvolutionPips != 0) { hash ^= EvolutionPips.GetHashCode(); } if (Rarity != 0) { hash ^= Rarity.GetHashCode(); } if (PokedexHeightM != 0F) { hash ^= PokedexHeightM.GetHashCode(); } if (PokedexWeightKg != 0F) { hash ^= PokedexWeightKg.GetHashCode(); } if (ParentPokemonId != 0) { hash ^= ParentPokemonId.GetHashCode(); } if (HeightStdDev != 0F) { hash ^= HeightStdDev.GetHashCode(); } if (WeightStdDev != 0F) { hash ^= WeightStdDev.GetHashCode(); } if (KmDistanceToHatch != 0F) { hash ^= KmDistanceToHatch.GetHashCode(); } if (FamilyId != 0) { hash ^= FamilyId.GetHashCode(); } if (CandyToEvolve != 0) { hash ^= CandyToEvolve.GetHashCode(); } return(hash); }
public void InsertFamilyLog(FamilyLogType logtype, string characterName = "", string characterName2 = "", string rainBowFamily = "", string message = "", byte level = 0, int experience = 0, int itemVNum = 0, byte upgrade = 0, int raidType = 0, int right = 0, int righttype = 0, int rightvalue = 0) { string value = string.Empty; switch (logtype) { case FamilyLogType.DailyMessage: value = $"{characterName}|{message}"; break; case FamilyLogType.FamilyXP: value = $"{characterName}|{experience}"; break; case FamilyLogType.LevelUp: value = $"{characterName}|{level}"; break; case FamilyLogType.RaidWon: value = raidType.ToString(); break; case FamilyLogType.ItemUpgraded: value = $"{characterName}|{itemVNum}|{upgrade}"; break; case FamilyLogType.UserManaged: value = $"{characterName}|{characterName2}"; break; case FamilyLogType.FamilyLevelUp: value = level.ToString(); break; case FamilyLogType.AuthorityChanged: value = $"{characterName}|{right}|{characterName2}"; break; case FamilyLogType.FamilyManaged: value = characterName; break; case FamilyLogType.RainbowBattle: value = rainBowFamily; break; case FamilyLogType.RightChanged: value = $"{characterName}|{right}|{righttype}|{rightvalue}"; break; case FamilyLogType.WareHouseAdded: case FamilyLogType.WareHouseRemoved: value = $"{characterName}|{message}"; break; } FamilyLogDTO log = new FamilyLogDTO { FamilyId = FamilyId, FamilyLogData = value, FamilyLogType = logtype, Timestamp = DateTime.Now }; DAOFactory.FamilyLogDAO.InsertOrUpdate(ref log); ServerManager.Instance.FamilyRefresh(FamilyId); int?sentChannelId2 = ServerCommunicationClient.Instance.HubProxy.Invoke <int?>("SendMessageToCharacter", ServerManager.Instance.ServerGroup, string.Empty, FamilyId.ToString(), "fhis_stc", ServerManager.Instance.ChannelId, MessageType.Family).Result; }
public override int GetHashCode() { int hash = 1; if (PokemonId != global::POGOProtos.Enums.PokemonId.Missingno) { hash ^= PokemonId.GetHashCode(); } if (ModelScale != 0F) { hash ^= ModelScale.GetHashCode(); } if (Type != global::POGOProtos.Enums.PokemonType.None) { hash ^= Type.GetHashCode(); } if (Type2 != global::POGOProtos.Enums.PokemonType.None) { hash ^= Type2.GetHashCode(); } if (camera_ != null) { hash ^= Camera.GetHashCode(); } if (encounter_ != null) { hash ^= Encounter.GetHashCode(); } if (stats_ != null) { hash ^= Stats.GetHashCode(); } hash ^= quickMoves_.GetHashCode(); hash ^= cinematicMoves_.GetHashCode(); hash ^= animationTime_.GetHashCode(); hash ^= evolutionIds_.GetHashCode(); if (EvolutionPips != 0) { hash ^= EvolutionPips.GetHashCode(); } if (Rarity != global::POGOProtos.Enums.PokemonRarity.Normal) { hash ^= Rarity.GetHashCode(); } if (PokedexHeightM != 0F) { hash ^= PokedexHeightM.GetHashCode(); } if (PokedexWeightKg != 0F) { hash ^= PokedexWeightKg.GetHashCode(); } if (ParentPokemonId != global::POGOProtos.Enums.PokemonId.Missingno) { hash ^= ParentPokemonId.GetHashCode(); } if (HeightStdDev != 0F) { hash ^= HeightStdDev.GetHashCode(); } if (WeightStdDev != 0F) { hash ^= WeightStdDev.GetHashCode(); } if (KmDistanceToHatch != 0F) { hash ^= KmDistanceToHatch.GetHashCode(); } if (FamilyId != global::POGOProtos.Enums.PokemonFamilyId.FamilyUnset) { hash ^= FamilyId.GetHashCode(); } if (CandyToEvolve != 0) { hash ^= CandyToEvolve.GetHashCode(); } if (KmBuddyDistance != 0F) { hash ^= KmBuddyDistance.GetHashCode(); } if (BuddySize != global::POGOProtos.Settings.Master.PokemonSettings.Types.BuddySize.BUDDY_MEDIUM) { hash ^= BuddySize.GetHashCode(); } return(hash); }