示例#1
0
 public override int GetHashCode() {
   int hash = 1;
   if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode();
   if (id_ != null) hash ^= Id.GetHashCode();
   if (Type != 0) hash ^= Type.GetHashCode();
   if (name_ != null) hash ^= Name.GetHashCode();
   if (Status != 0) hash ^= Status.GetHashCode();
   if (memberCount_ != null) hash ^= MemberCount.GetHashCode();
   if (referenceCount_ != null) hash ^= ReferenceCount.GetHashCode();
   if (_unknownFields != null) {
     hash ^= _unknownFields.GetHashCode();
   }
   return hash;
 }
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.memberCount)
            {
                hashcode = (hashcode * 397) + MemberCount.GetHashCode();
            }
            if (__isset.unreadMessageCount)
            {
                hashcode = (hashcode * 397) + UnreadMessageCount.GetHashCode();
            }
        }
        return(hashcode);
    }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasId)
            {
                hash ^= Id.GetHashCode();
            }
            if (Type != global::Google.Ads.GoogleAds.V8.Enums.SharedSetTypeEnum.Types.SharedSetType.Unspecified)
            {
                hash ^= Type.GetHashCode();
            }
            if (HasName)
            {
                hash ^= Name.GetHashCode();
            }
            if (Status != global::Google.Ads.GoogleAds.V8.Enums.SharedSetStatusEnum.Types.SharedSetStatus.Unspecified)
            {
                hash ^= Status.GetHashCode();
            }
            if (HasMemberCount)
            {
                hash ^= MemberCount.GetHashCode();
            }
            if (HasReferenceCount)
            {
                hash ^= ReferenceCount.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#4
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.mid)
            {
                hashcode = (hashcode * 397) + Mid.GetHashCode();
            }
            if (__isset.memberCount)
            {
                hashcode = (hashcode * 397) + MemberCount.GetHashCode();
            }
            if (__isset.onAir)
            {
                hashcode = (hashcode * 397) + OnAir.GetHashCode();
            }
            if (__isset.businessAccount)
            {
                hashcode = (hashcode * 397) + BusinessAccount.GetHashCode();
            }
            if (__isset.addable)
            {
                hashcode = (hashcode * 397) + Addable.GetHashCode();
            }
            if (__isset.acceptableContentTypes)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(AcceptableContentTypes);
            }
            if (__isset.capableMyhome)
            {
                hashcode = (hashcode * 397) + CapableMyhome.GetHashCode();
            }
        }
        return(hashcode);
    }
示例#5
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.memberCount)
            {
                hashcode = (hashcode * 397) + MemberCount.GetHashCode();
            }
            if (__isset.joinRequestCount)
            {
                hashcode = (hashcode * 397) + JoinRequestCount.GetHashCode();
            }
            if (__isset.lastJoinRequestAt)
            {
                hashcode = (hashcode * 397) + LastJoinRequestAt.GetHashCode();
            }
            if (__isset.openChatCount)
            {
                hashcode = (hashcode * 397) + OpenChatCount.GetHashCode();
            }
        }
        return(hashcode);
    }
示例#6
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (ProfileMedium != null)
         {
             hashCode = hashCode * 59 + ProfileMedium.GetHashCode();
         }
         if (CoverPhoto != null)
         {
             hashCode = hashCode * 59 + CoverPhoto.GetHashCode();
         }
         if (CoverPhotoSmall != null)
         {
             hashCode = hashCode * 59 + CoverPhotoSmall.GetHashCode();
         }
         if (SportType != null)
         {
             hashCode = hashCode * 59 + SportType.GetHashCode();
         }
         if (ActivityTypes != null)
         {
             hashCode = hashCode * 59 + ActivityTypes.GetHashCode();
         }
         if (City != null)
         {
             hashCode = hashCode * 59 + City.GetHashCode();
         }
         if (State != null)
         {
             hashCode = hashCode * 59 + State.GetHashCode();
         }
         if (Country != null)
         {
             hashCode = hashCode * 59 + Country.GetHashCode();
         }
         if (_Private != null)
         {
             hashCode = hashCode * 59 + _Private.GetHashCode();
         }
         if (MemberCount != null)
         {
             hashCode = hashCode * 59 + MemberCount.GetHashCode();
         }
         if (Featured != null)
         {
             hashCode = hashCode * 59 + Featured.GetHashCode();
         }
         if (Verified != null)
         {
             hashCode = hashCode * 59 + Verified.GetHashCode();
         }
         if (Url != null)
         {
             hashCode = hashCode * 59 + Url.GetHashCode();
         }
         return(hashCode);
     }
 }