public void MergeFrom(BattleResults other) { if (other == null) { return; } if (other.gymState_ != null) { if (gymState_ == null) { gymState_ = new global::POGOProtos.Data.Gym.GymState(); } GymState.MergeFrom(other.GymState); } attackers_.Add(other.attackers_); playerExperienceAwarded_.Add(other.playerExperienceAwarded_); if (other.NextDefenderPokemonId != 0L) { NextDefenderPokemonId = other.NextDefenderPokemonId; } if (other.GymPointsDelta != 0) { GymPointsDelta = other.GymPointsDelta; } }
public void MergeFrom(GetGymDetailsResponse other) { if (other == null) { return; } if (other.gymState_ != null) { if (gymState_ == null) { gymState_ = new global::POGOProtos.Data.Gym.GymState(); } GymState.MergeFrom(other.GymState); } if (other.Name.Length != 0) { Name = other.Name; } urls_.Add(other.urls_); if (other.Result != 0) { Result = other.Result; } if (other.Description.Length != 0) { Description = other.Description; } }
public void MergeFrom(GetGymDetailsResponse other) { if (other == null) { return; } if (other.gymState_ != null) { if (gymState_ == null) { gymState_ = new global::POGOProtos.Data.Gym.GymState(); } GymState.MergeFrom(other.GymState); } if (other.Name.Length != 0) { Name = other.Name; } urls_.Add(other.urls_); if (other.Result != 0) { Result = other.Result; } if (other.Description.Length != 0) { Description = other.Description; } secondaryUrl_.Add(other.secondaryUrl_); if (other.CheckinImageUrl.Length != 0) { CheckinImageUrl = other.CheckinImageUrl; } if (other.eventInfo_ != null) { if (eventInfo_ == null) { eventInfo_ = new global::POGOProtos.Data.Raid.EventInfo(); } EventInfo.MergeFrom(other.EventInfo); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(BattleResults other) { if (other == null) { return; } if (other.gymState_ != null) { if (gymState_ == null) { gymState_ = new global::POGOProtos.Data.Gym.GymState(); } GymState.MergeFrom(other.GymState); } attackers_.Add(other.attackers_); playerXpAwarded_.Add(other.playerXpAwarded_); if (other.NextDefenderPokemonId != 0L) { NextDefenderPokemonId = other.NextDefenderPokemonId; } if (other.GymPointsDelta != 0) { GymPointsDelta = other.GymPointsDelta; } if (other.gymStatus_ != null) { if (gymStatus_ == null) { gymStatus_ = new global::POGOProtos.Data.Gym.GymStatusAndDefenders(); } GymStatus.MergeFrom(other.GymStatus); } participation_.Add(other.participation_); raidItemRewards_.Add(other.raidItemRewards_); postRaidEncounter_.Add(other.postRaidEncounter_); gymBadge_.Add(other.gymBadge_); defaultRaidItemRewards_.Add(other.defaultRaidItemRewards_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }