public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (_publicProperties != null ? _publicProperties.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DisplayName != null ? DisplayName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AvatarUrl != null ? AvatarUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Identities != null ? Identities.GetHashCode() : 0);
         return(hashCode);
     }
 }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (NickName.Length != 0)
            {
                hash ^= NickName.GetHashCode();
            }
            if (AvatarUrl.Length != 0)
            {
                hash ^= AvatarUrl.GetHashCode();
            }
            if (ApiLevel.Length != 0)
            {
                hash ^= ApiLevel.GetHashCode();
            }
            if (HkQotRight != 0)
            {
                hash ^= HkQotRight.GetHashCode();
            }
            if (UsQotRight != 0)
            {
                hash ^= UsQotRight.GetHashCode();
            }
            if (CnQotRight != 0)
            {
                hash ^= CnQotRight.GetHashCode();
            }
            if (IsNeedAgreeDisclaimer != false)
            {
                hash ^= IsNeedAgreeDisclaimer.GetHashCode();
            }
            if (UserID != 0L)
            {
                hash ^= UserID.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 3
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = AvatarUrl != null?AvatarUrl.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (Billing != null ? Billing.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (FirstName != null ? FirstName.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Id;
                hashCode = (hashCode * 397) ^ IsPayingCustomer.GetHashCode();
                hashCode = (hashCode * 397) ^ (LastName != null ? LastName.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ OrdersCount;
                hashCode = (hashCode * 397) ^ (Password != null ? Password.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Role != null ? Role.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Shipping != null ? Shipping.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (TotalSpent != null ? TotalSpent.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Username != null ? Username.GetHashCode() : 0);
                return(hashCode);
            }
        }
Esempio n. 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Login != null ? Login.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Id.GetHashCode();
         hashCode = (hashCode * 397) ^ (NodeId != null ? NodeId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AvatarUrl != null ? AvatarUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (GravatarId != null ? GravatarId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Url != null ? Url.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (HtmlUrl != null ? HtmlUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FollowersUrl != null ? FollowersUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FollowingUrl != null ? FollowingUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (GistsUrl != null ? GistsUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StarredUrl != null ? StarredUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SubscriptionsUrl != null ? SubscriptionsUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OrganizationsUrl != null ? OrganizationsUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ReposUrl != null ? ReposUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (EventsUrl != null ? EventsUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ReceivedEventsUrl != null ? ReceivedEventsUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ SiteAdmin.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Company != null ? Company.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Blog != null ? Blog.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Location != null ? Location.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Hireable != null ? Hireable.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Bio != null ? Bio.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ PublicRepos.GetHashCode();
         hashCode = (hashCode * 397) ^ PublicGists.GetHashCode();
         hashCode = (hashCode * 397) ^ Followers.GetHashCode();
         hashCode = (hashCode * 397) ^ Following.GetHashCode();
         hashCode = (hashCode * 397) ^ CreatedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ UpdatedAt.GetHashCode();
         return(hashCode);
     }
 }
Esempio n. 5
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Login != null ? Login.GetHashCode() : 0) ^ (Id != null ? Id.GetHashCode() : 0) ^ (AvatarUrl != null ? AvatarUrl.GetHashCode() : 0) ^ (GravatarId != null ? GravatarId.GetHashCode() : 0) ^ (Url != null ? Url.GetHashCode() : 0) ^ (Name != null ? Name.GetHashCode() : 0) ^ (Company != null ? Company.GetHashCode() : 0) ^ (Blog != null ? Blog.GetHashCode() : 0) ^ (Location != null ? Location.GetHashCode() : 0) ^ (Email != null ? Email.GetHashCode() : 0) ^ (Hireable != null ? Hireable.GetHashCode() : 0) ^ (Bio != null ? Bio.GetHashCode() : 0) ^ (PublicRepos != null ? PublicRepos.GetHashCode() : 0) ^ (PublicGists != null ? PublicGists.GetHashCode() : 0) ^ (Followers != null ? Followers.GetHashCode() : 0) ^ (Following != null ? Following.GetHashCode() : 0) ^ (HtmlUrl != null ? HtmlUrl.GetHashCode() : 0) ^ (CreatedAt != null ? CreatedAt.GetHashCode() : 0) ^ (Type != null ? Type.GetHashCode() : 0));
     }
 }
Esempio n. 6
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Login != null ? Login.GetHashCode() : 0) ^ (Id != null ? Id.GetHashCode() : 0) ^ (AvatarUrl != null ? AvatarUrl.GetHashCode() : 0) ^ (GravatarId != null ? GravatarId.GetHashCode() : 0) ^ (Url != null ? Url.GetHashCode() : 0) ^ (Type != null ? Type.GetHashCode() : 0));
     }
 }