public override int GetHashCode()
        {
            int hash = 1;

            if (GymId.Length != 0)
            {
                hash ^= GymId.GetHashCode();
            }
            if (BattleId.Length != 0)
            {
                hash ^= BattleId.GetHashCode();
            }
            hash ^= attackerActions_.GetHashCode();
            if (lastRetrievedAction_ != null)
            {
                hash ^= LastRetrievedAction.GetHashCode();
            }
            if (TimestampMs != 0L)
            {
                hash ^= TimestampMs.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public void MergeFrom(AttackRaidBattleMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.GymId.Length != 0)
     {
         GymId = other.GymId;
     }
     if (other.BattleId.Length != 0)
     {
         BattleId = other.BattleId;
     }
     attackerActions_.Add(other.attackerActions_);
     if (other.lastRetrievedAction_ != null)
     {
         if (lastRetrievedAction_ == null)
         {
             lastRetrievedAction_ = new global::POGOProtos.Data.Battle.BattleAction();
         }
         LastRetrievedAction.MergeFrom(other.LastRetrievedAction);
     }
     if (other.TimestampMs != 0L)
     {
         TimestampMs = other.TimestampMs;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (GymId.Length != 0)
            {
                hash ^= GymId.GetHashCode();
            }
            if (BattleId.Length != 0)
            {
                hash ^= BattleId.GetHashCode();
            }
            hash ^= attackerActions_.GetHashCode();
            if (lastRetrievedAction_ != null)
            {
                hash ^= LastRetrievedAction.GetHashCode();
            }
            if (PlayerLatDegrees != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PlayerLatDegrees);
            }
            if (PlayerLngDegrees != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PlayerLngDegrees);
            }
            if (TimestampMs != 0L)
            {
                hash ^= TimestampMs.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public void MergeFrom(AttackGymMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.GymId.Length != 0)
     {
         GymId = other.GymId;
     }
     if (other.BattleId.Length != 0)
     {
         BattleId = other.BattleId;
     }
     attackActions_.Add(other.attackActions_);
     if (other.lastRetrievedAction_ != null)
     {
         if (lastRetrievedAction_ == null)
         {
             lastRetrievedAction_ = new global::POGOProtos.Data.Battle.BattleAction();
         }
         LastRetrievedAction.MergeFrom(other.LastRetrievedAction);
     }
     if (other.PlayerLatitude != 0D)
     {
         PlayerLatitude = other.PlayerLatitude;
     }
     if (other.PlayerLongitude != 0D)
     {
         PlayerLongitude = other.PlayerLongitude;
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (GymId.Length != 0)
            {
                hash ^= GymId.GetHashCode();
            }
            if (BattleId.Length != 0)
            {
                hash ^= BattleId.GetHashCode();
            }
            hash ^= attackActions_.GetHashCode();
            if (lastRetrievedAction_ != null)
            {
                hash ^= LastRetrievedAction.GetHashCode();
            }
            if (PlayerLatitude != 0D)
            {
                hash ^= PlayerLatitude.GetHashCode();
            }
            if (PlayerLongitude != 0D)
            {
                hash ^= PlayerLongitude.GetHashCode();
            }
            return(hash);
        }
Esempio n. 6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (GymId.Length != 0)
            {
                hash ^= GymId.GetHashCode();
            }
            if (BattleId.Length != 0)
            {
                hash ^= BattleId.GetHashCode();
            }
            hash ^= attackActions_.GetHashCode();
            if (lastRetrievedAction_ != null)
            {
                hash ^= LastRetrievedAction.GetHashCode();
            }
            if (PlayerLatDegrees != 0D)
            {
                hash ^= PlayerLatDegrees.GetHashCode();
            }
            if (PlayerLngDegrees != 0D)
            {
                hash ^= PlayerLngDegrees.GetHashCode();
            }
            if (TimestampMs != 0L)
            {
                hash ^= TimestampMs.GetHashCode();
            }
            return(hash);
        }
Esempio n. 7
0
 public void MergeFrom(GymBattleAttackMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.GymId.Length != 0)
     {
         GymId = other.GymId;
     }
     if (other.BattleId.Length != 0)
     {
         BattleId = other.BattleId;
     }
     attackActions_.Add(other.attackActions_);
     if (other.lastRetrievedAction_ != null)
     {
         if (lastRetrievedAction_ == null)
         {
             lastRetrievedAction_ = new global::POGOProtos.Data.Battle.BattleAction();
         }
         LastRetrievedAction.MergeFrom(other.LastRetrievedAction);
     }
     if (other.PlayerLatDegrees != 0D)
     {
         PlayerLatDegrees = other.PlayerLatDegrees;
     }
     if (other.PlayerLngDegrees != 0D)
     {
         PlayerLngDegrees = other.PlayerLngDegrees;
     }
     if (other.TimestampMs != 0L)
     {
         TimestampMs = other.TimestampMs;
     }
 }