示例#1
0
 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;
     }
 }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (gymState_ != null)
            {
                hash ^= GymState.GetHashCode();
            }
            hash ^= attackers_.GetHashCode();
            hash ^= playerXpAwarded_.GetHashCode();
            if (NextDefenderPokemonId != 0L)
            {
                hash ^= NextDefenderPokemonId.GetHashCode();
            }
            if (GymPointsDelta != 0)
            {
                hash ^= GymPointsDelta.GetHashCode();
            }
            if (gymStatus_ != null)
            {
                hash ^= GymStatus.GetHashCode();
            }
            hash ^= participation_.GetHashCode();
            hash ^= raidItemRewards_.GetHashCode();
            hash ^= postRaidEncounter_.GetHashCode();
            hash ^= gymBadge_.GetHashCode();
            hash ^= defaultRaidItemRewards_.GetHashCode();
            return(hash);
        }
示例#3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (gymState_ != null)
            {
                hash ^= GymState.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            hash ^= urls_.GetHashCode();
            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            hash ^= secondaryUrl_.GetHashCode();
            if (CheckinImageUrl.Length != 0)
            {
                hash ^= CheckinImageUrl.GetHashCode();
            }
            if (eventInfo_ != null)
            {
                hash ^= EventInfo.GetHashCode();
            }
            return(hash);
        }
 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);
 }
示例#6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (gymState_ != null)
            {
                hash ^= GymState.GetHashCode();
            }
            hash ^= attackers_.GetHashCode();
            hash ^= playerExperienceAwarded_.GetHashCode();
            if (NextDefenderPokemonId != 0L)
            {
                hash ^= NextDefenderPokemonId.GetHashCode();
            }
            if (GymPointsDelta != 0)
            {
                hash ^= GymPointsDelta.GetHashCode();
            }
            return(hash);
        }
 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);
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (gymState_ != null)
            {
                hash ^= GymState.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            hash ^= urls_.GetHashCode();
            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            return(hash);
        }