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

        unchecked {
            if (__isset.authToken)
            {
                hashcode = (hashcode * 397) + AuthToken.GetHashCode();
            }
            if (__isset.recommendEmailRegistration)
            {
                hashcode = (hashcode * 397) + RecommendEmailRegistration.GetHashCode();
            }
            if (__isset.certificate)
            {
                hashcode = (hashcode * 397) + Certificate.GetHashCode();
            }
        }
        return(hashcode);
    }
Esempio n. 2
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("RegisterWithPhoneNumberResult(");
        bool __first = true;

        if (AuthToken != null && __isset.authToken)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("AuthToken: ");
            AuthToken.ToString(sb);
        }
        if (__isset.recommendEmailRegistration)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("RecommendEmailRegistration: ");
            RecommendEmailRegistration.ToString(sb);
        }
        if (Certificate != null && __isset.certificate)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Certificate: ");
            Certificate.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }