Пример #1
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.buddyId)
            {
                hashcode = (hashcode * 397) + BuddyId.GetHashCode();
            }
            if (__isset.mid)
            {
                hashcode = (hashcode * 397) + Mid.GetHashCode();
            }
            if (__isset.searchId)
            {
                hashcode = (hashcode * 397) + SearchId.GetHashCode();
            }
            if (__isset.displayName)
            {
                hashcode = (hashcode * 397) + DisplayName.GetHashCode();
            }
            if (__isset.statusMessage)
            {
                hashcode = (hashcode * 397) + StatusMessage.GetHashCode();
            }
            if (__isset.contactCount)
            {
                hashcode = (hashcode * 397) + ContactCount.GetHashCode();
            }
        }
        return(hashcode);
    }
Пример #2
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("BuddyProfile(");
        bool __first = true;

        if (BuddyId != null && __isset.buddyId)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("BuddyId: ");
            BuddyId.ToString(sb);
        }
        if (Mid != null && __isset.mid)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Mid: ");
            Mid.ToString(sb);
        }
        if (SearchId != null && __isset.searchId)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("SearchId: ");
            SearchId.ToString(sb);
        }
        if (DisplayName != null && __isset.displayName)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("DisplayName: ");
            DisplayName.ToString(sb);
        }
        if (StatusMessage != null && __isset.statusMessage)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("StatusMessage: ");
            StatusMessage.ToString(sb);
        }
        if (__isset.contactCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ContactCount: ");
            ContactCount.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }