public override string ToString()
    {
        var  sb      = new StringBuilder("ContactModification(");
        bool __first = true;

        if (__isset.type)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Type: ");
            Type.ToString(sb);
        }
        if (Luid != null && __isset.luid)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Luid: ");
            Luid.ToString(sb);
        }
        if (Phones != null && __isset.phones)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Phones: ");
            Phones.ToString(sb);
        }
        if (Emails != null && __isset.emails)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Emails: ");
            Emails.ToString(sb);
        }
        if (Userids != null && __isset.userids)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Userids: ");
            Userids.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
    public override string ToString()
    {
        var  sb      = new StringBuilder("ContactRegistration(");
        bool __first = true;

        if (Contact != null && __isset.contact)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Contact: ");
            Contact.ToString(sb);
        }
        if (Luid != null && __isset.luid)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Luid: ");
            Luid.ToString(sb);
        }
        if (__isset.contactType)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ContactType: ");
            ContactType.ToString(sb);
        }
        if (ContactKey != null && __isset.contactKey)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ContactKey: ");
            ContactKey.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
Exemple #3
0
        public void ReturnsTheStringAsExpected()
        {
            var target = new Luid(1, 2);

            Assert.AreEqual("8589934593", target.ToString());
        }