Example #1
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.type)
            {
                hashcode = (hashcode * 397) + Type.GetHashCode();
            }
            if (__isset.identityProvider)
            {
                hashcode = (hashcode * 397) + IdentityProvider.GetHashCode();
            }
            if (__isset.identifier)
            {
                hashcode = (hashcode * 397) + Identifier.GetHashCode();
            }
            if (__isset.password)
            {
                hashcode = (hashcode * 397) + Password.GetHashCode();
            }
            if (__isset.keepLoggedIn)
            {
                hashcode = (hashcode * 397) + KeepLoggedIn.GetHashCode();
            }
            if (__isset.accessLocation)
            {
                hashcode = (hashcode * 397) + AccessLocation.GetHashCode();
            }
            if (__isset.systemName)
            {
                hashcode = (hashcode * 397) + SystemName.GetHashCode();
            }
            if (__isset.certificate)
            {
                hashcode = (hashcode * 397) + Certificate.GetHashCode();
            }
            if (__isset.verifier)
            {
                hashcode = (hashcode * 397) + Verifier.GetHashCode();
            }
            if (__isset.secret)
            {
                hashcode = (hashcode * 397) + Secret.GetHashCode();
            }
            if (__isset.e2eeVersion)
            {
                hashcode = (hashcode * 397) + E2eeVersion.GetHashCode();
            }
        }
        return(hashcode);
    }
Example #2
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("LoginRequest(");
        bool __first = true;

        if (__isset.type)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Type: ");
            Type.ToString(sb);
        }
        if (__isset.identityProvider)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("IdentityProvider: ");
            IdentityProvider.ToString(sb);
        }
        if (Identifier != null && __isset.identifier)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Identifier: ");
            Identifier.ToString(sb);
        }
        if (Password != null && __isset.password)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Password: "******", ");
            }
            __first = false;
            sb.Append("KeepLoggedIn: ");
            KeepLoggedIn.ToString(sb);
        }
        if (AccessLocation != null && __isset.accessLocation)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("AccessLocation: ");
            AccessLocation.ToString(sb);
        }
        if (SystemName != null && __isset.systemName)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("SystemName: ");
            SystemName.ToString(sb);
        }
        if (Certificate != null && __isset.certificate)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Certificate: ");
            Certificate.ToString(sb);
        }
        if (Verifier != null && __isset.verifier)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Verifier: ");
            Verifier.ToString(sb);
        }
        if (Secret != null && __isset.secret)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Secret: ");
            Secret.ToString(sb);
        }
        if (__isset.e2eeVersion)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("E2eeVersion: ");
            E2eeVersion.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }