Ejemplo n.º 1
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.mid)
            {
                hashcode = (hashcode * 397) + Mid.GetHashCode();
            }
            if (__isset.createdTime)
            {
                hashcode = (hashcode * 397) + CreatedTime.GetHashCode();
            }
            if (__isset.type)
            {
                hashcode = (hashcode * 397) + Type.GetHashCode();
            }
            if (__isset.status)
            {
                hashcode = (hashcode * 397) + Status.GetHashCode();
            }
            if (__isset.relation)
            {
                hashcode = (hashcode * 397) + Relation.GetHashCode();
            }
            if (__isset.displayName)
            {
                hashcode = (hashcode * 397) + DisplayName.GetHashCode();
            }
            if (__isset.phoneticName)
            {
                hashcode = (hashcode * 397) + PhoneticName.GetHashCode();
            }
            if (__isset.pictureStatus)
            {
                hashcode = (hashcode * 397) + PictureStatus.GetHashCode();
            }
            if (__isset.thumbnailUrl)
            {
                hashcode = (hashcode * 397) + ThumbnailUrl.GetHashCode();
            }
            if (__isset.statusMessage)
            {
                hashcode = (hashcode * 397) + StatusMessage.GetHashCode();
            }
            if (__isset.displayNameOverridden)
            {
                hashcode = (hashcode * 397) + DisplayNameOverridden.GetHashCode();
            }
            if (__isset.favoriteTime)
            {
                hashcode = (hashcode * 397) + FavoriteTime.GetHashCode();
            }
            if (__isset.capableVoiceCall)
            {
                hashcode = (hashcode * 397) + CapableVoiceCall.GetHashCode();
            }
            if (__isset.capableVideoCall)
            {
                hashcode = (hashcode * 397) + CapableVideoCall.GetHashCode();
            }
            if (__isset.capableMyhome)
            {
                hashcode = (hashcode * 397) + CapableMyhome.GetHashCode();
            }
            if (__isset.capableBuddy)
            {
                hashcode = (hashcode * 397) + CapableBuddy.GetHashCode();
            }
            if (__isset.attributes)
            {
                hashcode = (hashcode * 397) + Attributes.GetHashCode();
            }
            if (__isset.settings)
            {
                hashcode = (hashcode * 397) + Settings.GetHashCode();
            }
            if (__isset.picturePath)
            {
                hashcode = (hashcode * 397) + PicturePath.GetHashCode();
            }
            if (__isset.recommendParams)
            {
                hashcode = (hashcode * 397) + RecommendParams.GetHashCode();
            }
            if (__isset.friendRequestStatus)
            {
                hashcode = (hashcode * 397) + FriendRequestStatus.GetHashCode();
            }
            if (__isset.musicProfile)
            {
                hashcode = (hashcode * 397) + MusicProfile.GetHashCode();
            }
            if (__isset.videoProfile)
            {
                hashcode = (hashcode * 397) + VideoProfile.GetHashCode();
            }
        }
        return(hashcode);
    }
Ejemplo n.º 2
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("Contact(");
        bool __first = true;

        if (Mid != null && __isset.mid)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Mid: ");
            Mid.ToString(sb);
        }
        if (__isset.createdTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CreatedTime: ");
            CreatedTime.ToString(sb);
        }
        if (__isset.type)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Type: ");
            Type.ToString(sb);
        }
        if (__isset.status)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Status: ");
            Status.ToString(sb);
        }
        if (__isset.relation)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Relation: ");
            Relation.ToString(sb);
        }
        if (DisplayName != null && __isset.displayName)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("DisplayName: ");
            DisplayName.ToString(sb);
        }
        if (PhoneticName != null && __isset.phoneticName)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("PhoneticName: ");
            PhoneticName.ToString(sb);
        }
        if (PictureStatus != null && __isset.pictureStatus)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("PictureStatus: ");
            PictureStatus.ToString(sb);
        }
        if (ThumbnailUrl != null && __isset.thumbnailUrl)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ThumbnailUrl: ");
            ThumbnailUrl.ToString(sb);
        }
        if (StatusMessage != null && __isset.statusMessage)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("StatusMessage: ");
            StatusMessage.ToString(sb);
        }
        if (DisplayNameOverridden != null && __isset.displayNameOverridden)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("DisplayNameOverridden: ");
            DisplayNameOverridden.ToString(sb);
        }
        if (__isset.favoriteTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("FavoriteTime: ");
            FavoriteTime.ToString(sb);
        }
        if (__isset.capableVoiceCall)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CapableVoiceCall: ");
            CapableVoiceCall.ToString(sb);
        }
        if (__isset.capableVideoCall)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CapableVideoCall: ");
            CapableVideoCall.ToString(sb);
        }
        if (__isset.capableMyhome)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CapableMyhome: ");
            CapableMyhome.ToString(sb);
        }
        if (__isset.capableBuddy)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CapableBuddy: ");
            CapableBuddy.ToString(sb);
        }
        if (__isset.attributes)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Attributes: ");
            Attributes.ToString(sb);
        }
        if (__isset.settings)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Settings: ");
            Settings.ToString(sb);
        }
        if (PicturePath != null && __isset.picturePath)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("PicturePath: ");
            PicturePath.ToString(sb);
        }
        if (RecommendParams != null && __isset.recommendParams)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("RecommendParams: ");
            RecommendParams.ToString(sb);
        }
        if (__isset.friendRequestStatus)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("FriendRequestStatus: ");
            FriendRequestStatus.ToString(sb);
        }
        if (MusicProfile != null && __isset.musicProfile)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("MusicProfile: ");
            MusicProfile.ToString(sb);
        }
        if (VideoProfile != null && __isset.videoProfile)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("VideoProfile: ");
            VideoProfile.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }