示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FortId.Length != 0)
            {
                hash ^= FortId.GetHashCode();
            }
            if (GymBadgeType != 0)
            {
                hash ^= GymBadgeType.GetHashCode();
            }
            if (Score != 0)
            {
                hash ^= Score.GetHashCode();
            }
            if (gymBadgeStats_ != null)
            {
                hash ^= GymBadgeStats.GetHashCode();
            }
            if (LastUpdateTimestampMs != 0UL)
            {
                hash ^= LastUpdateTimestampMs.GetHashCode();
            }
            if (LastCheckTimestampMs != 0UL)
            {
                hash ^= LastCheckTimestampMs.GetHashCode();
            }
            if (EarnedPoints != 0)
            {
                hash ^= EarnedPoints.GetHashCode();
            }
            if (Progress != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Progress);
            }
            if (LevelUp != false)
            {
                hash ^= LevelUp.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (ImageUrl.Length != 0)
            {
                hash ^= ImageUrl.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (Latitude != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latitude);
            }
            if (Longitude != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Longitude);
            }
            if (raids_ != null)
            {
                hash ^= Raids.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#2
0
 public void MergeFrom(AwardedGymBadge other)
 {
     if (other == null)
     {
         return;
     }
     if (other.FortId.Length != 0)
     {
         FortId = other.FortId;
     }
     if (other.GymBadgeType != 0)
     {
         GymBadgeType = other.GymBadgeType;
     }
     if (other.Score != 0)
     {
         Score = other.Score;
     }
     if (other.gymBadgeStats_ != null)
     {
         if (gymBadgeStats_ == null)
         {
             gymBadgeStats_ = new global::POGOProtos.Data.Badge.GymBadgeStats();
         }
         GymBadgeStats.MergeFrom(other.GymBadgeStats);
     }
     if (other.LastUpdateTimestampMs != 0UL)
     {
         LastUpdateTimestampMs = other.LastUpdateTimestampMs;
     }
     if (other.LastCheckTimestampMs != 0UL)
     {
         LastCheckTimestampMs = other.LastCheckTimestampMs;
     }
     if (other.EarnedPoints != 0)
     {
         EarnedPoints = other.EarnedPoints;
     }
     if (other.Progress != 0F)
     {
         Progress = other.Progress;
     }
     if (other.LevelUp != false)
     {
         LevelUp = other.LevelUp;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.ImageUrl.Length != 0)
     {
         ImageUrl = other.ImageUrl;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.Latitude != 0D)
     {
         Latitude = other.Latitude;
     }
     if (other.Longitude != 0D)
     {
         Longitude = other.Longitude;
     }
     if (other.raids_ != null)
     {
         if (raids_ == null)
         {
             raids_ = new global::POGOProtos.Data.Raid.PlayerRaidInfo();
         }
         Raids.MergeFrom(other.Raids);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FortId.Length != 0)
            {
                hash ^= FortId.GetHashCode();
            }
            if (GymBadgeType != 0)
            {
                hash ^= GymBadgeType.GetHashCode();
            }
            if (Score != 0)
            {
                hash ^= Score.GetHashCode();
            }
            if (gymBadgeStats_ != null)
            {
                hash ^= GymBadgeStats.GetHashCode();
            }
            if (LastUpdateTimestampMs != 0UL)
            {
                hash ^= LastUpdateTimestampMs.GetHashCode();
            }
            if (LastCheckTimestampMs != 0UL)
            {
                hash ^= LastCheckTimestampMs.GetHashCode();
            }
            if (EarnedPoints != 0)
            {
                hash ^= EarnedPoints.GetHashCode();
            }
            if (Progress != 0F)
            {
                hash ^= Progress.GetHashCode();
            }
            if (LevelUp != false)
            {
                hash ^= LevelUp.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (ImageUrl.Length != 0)
            {
                hash ^= ImageUrl.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (Latitude != 0D)
            {
                hash ^= Latitude.GetHashCode();
            }
            if (Longitude != 0D)
            {
                hash ^= Longitude.GetHashCode();
            }
            if (raids_ != null)
            {
                hash ^= Raids.GetHashCode();
            }
            return(hash);
        }