public void MergeFrom(GymDeployResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.gymStatusAndDefenders_ != null)
     {
         if (gymStatusAndDefenders_ == null)
         {
             gymStatusAndDefenders_ = new global::POGOProtos.Data.Gym.GymStatusAndDefenders();
         }
         GymStatusAndDefenders.MergeFrom(other.GymStatusAndDefenders);
     }
     if (other.awardedGymBadge_ != null)
     {
         if (awardedGymBadge_ == null)
         {
             awardedGymBadge_ = new global::POGOProtos.Data.Badge.AwardedGymBadge();
         }
         AwardedGymBadge.MergeFrom(other.AwardedGymBadge);
     }
     if (other.CooldownCompleteTimestampMs != 0L)
     {
         CooldownCompleteTimestampMs = other.CooldownCompleteTimestampMs;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (gymStatusAndDefenders_ != null)
            {
                hash ^= GymStatusAndDefenders.GetHashCode();
            }
            if (awardedGymBadge_ != null)
            {
                hash ^= AwardedGymBadge.GetHashCode();
            }
            if (CooldownCompleteTimestampMs != 0L)
            {
                hash ^= CooldownCompleteTimestampMs.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 3
0
 public void MergeFrom(GymGetInfoResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.gymStatusAndDefenders_ != null)
     {
         if (gymStatusAndDefenders_ == null)
         {
             gymStatusAndDefenders_ = new global::POGOProtos.Data.Gym.GymStatusAndDefenders();
         }
         GymStatusAndDefenders.MergeFrom(other.GymStatusAndDefenders);
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Url.Length != 0)
     {
         Url = other.Url;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.SecondaryUrl.Length != 0)
     {
         SecondaryUrl = other.SecondaryUrl;
     }
     if (other.awardedGymBadge_ != null)
     {
         if (awardedGymBadge_ == null)
         {
             awardedGymBadge_ = new global::POGOProtos.Data.Badge.AwardedGymBadge();
         }
         AwardedGymBadge.MergeFrom(other.AwardedGymBadge);
     }
     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);
     }
 }
Ejemplo n.º 4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (gymStatusAndDefenders_ != null)
            {
                hash ^= GymStatusAndDefenders.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Url.Length != 0)
            {
                hash ^= Url.GetHashCode();
            }
            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (SecondaryUrl.Length != 0)
            {
                hash ^= SecondaryUrl.GetHashCode();
            }
            if (awardedGymBadge_ != null)
            {
                hash ^= AwardedGymBadge.GetHashCode();
            }
            if (CheckinImageUrl.Length != 0)
            {
                hash ^= CheckinImageUrl.GetHashCode();
            }
            if (eventInfo_ != null)
            {
                hash ^= EventInfo.GetHashCode();
            }
            if (displayWeather_ != null)
            {
                hash ^= DisplayWeather.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 5
0
 public void MergeFrom(GymFeedPokemonResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.gymStatusAndDefenders_ != null)
     {
         if (gymStatusAndDefenders_ == null)
         {
             gymStatusAndDefenders_ = new global::POGOProtos.Data.Gym.GymStatusAndDefenders();
         }
         GymStatusAndDefenders.MergeFrom(other.GymStatusAndDefenders);
     }
     if (other.awardedGymBadge_ != null)
     {
         if (awardedGymBadge_ == null)
         {
             awardedGymBadge_ = new global::POGOProtos.Data.Badge.AwardedGymBadge();
         }
         AwardedGymBadge.MergeFrom(other.AwardedGymBadge);
     }
     if (other.StardustAwarded != 0)
     {
         StardustAwarded = other.StardustAwarded;
     }
     if (other.XpAwarded != 0)
     {
         XpAwarded = other.XpAwarded;
     }
     if (other.NumCandyAwarded != 0)
     {
         NumCandyAwarded = other.NumCandyAwarded;
     }
     if (other.FamilyCandyId != 0)
     {
         FamilyCandyId = other.FamilyCandyId;
     }
     if (other.CooldownComplete != 0L)
     {
         CooldownComplete = other.CooldownComplete;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Ejemplo n.º 6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (gymStatusAndDefenders_ != null)
            {
                hash ^= GymStatusAndDefenders.GetHashCode();
            }
            if (awardedGymBadge_ != null)
            {
                hash ^= AwardedGymBadge.GetHashCode();
            }
            if (StardustAwarded != 0)
            {
                hash ^= StardustAwarded.GetHashCode();
            }
            if (XpAwarded != 0)
            {
                hash ^= XpAwarded.GetHashCode();
            }
            if (NumCandyAwarded != 0)
            {
                hash ^= NumCandyAwarded.GetHashCode();
            }
            if (FamilyCandyId != 0)
            {
                hash ^= FamilyCandyId.GetHashCode();
            }
            if (CooldownComplete != 0L)
            {
                hash ^= CooldownComplete.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }