public void MergeFrom(GetGymDetailsResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.gymState_ != null)
     {
         if (gymState_ == null)
         {
             gymState_ = new global::PokemonGoDesktop.API.Proto.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;
     }
 }
Beispiel #2
0
 public void MergeFrom(BattleResults other)
 {
     if (other == null)
     {
         return;
     }
     if (other.gymState_ != null)
     {
         if (gymState_ == null)
         {
             gymState_ = new global::PokemonGoDesktop.API.Proto.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;
     }
 }
Beispiel #3
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 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);
        }