public void MergeFrom(FortDeployPokemonResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.fortDetails_ != null)
     {
         if (fortDetails_ == null)
         {
             fortDetails_ = new global::POGOProtos.Networking.Responses.FortDetailsResponse();
         }
         FortDetails.MergeFrom(other.FortDetails);
     }
     if (other.pokemonData_ != null)
     {
         if (pokemonData_ == null)
         {
             pokemonData_ = new global::POGOProtos.Data.PokemonData();
         }
         PokemonData.MergeFrom(other.PokemonData);
     }
     if (other.gymState_ != null)
     {
         if (gymState_ == null)
         {
             gymState_ = new global::POGOProtos.Data.Gym.GymState();
         }
         GymState.MergeFrom(other.GymState);
     }
 }
 public void MergeFrom(FortDeployPokemonResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.fortDetails_ != null)
     {
         if (fortDetails_ == null)
         {
             fortDetails_ = new global::PokemonGoDesktop.API.Proto.FortDetailsResponse();
         }
         FortDetails.MergeFrom(other.FortDetails);
     }
     if (other.pokemonData_ != null)
     {
         if (pokemonData_ == null)
         {
             pokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
         }
         PokemonData.MergeFrom(other.PokemonData);
     }
     if (other.gymState_ != null)
     {
         if (gymState_ == null)
         {
             gymState_ = new global::PokemonGoDesktop.API.Proto.GymState();
         }
         GymState.MergeFrom(other.GymState);
     }
 }
Esempio n. 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (fortDetails_ != null)
            {
                hash ^= FortDetails.GetHashCode();
            }
            if (pokemonData_ != null)
            {
                hash ^= PokemonData.GetHashCode();
            }
            if (gymState_ != null)
            {
                hash ^= GymState.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Result != global::POGOProtos.Networking.Responses.FortDeployPokemonResponse.Types.Result.NO_RESULT_SET)
            {
                hash ^= Result.GetHashCode();
            }
            if (fortDetails_ != null)
            {
                hash ^= FortDetails.GetHashCode();
            }
            if (pokemonData_ != null)
            {
                hash ^= PokemonData.GetHashCode();
            }
            if (gymState_ != null)
            {
                hash ^= GymState.GetHashCode();
            }
            return(hash);
        }