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

        unchecked {
            if (__isset.endpoint)
            {
                hashcode = (hashcode * 397) + Endpoint.GetHashCode();
            }
            if (__isset.endpointSsl)
            {
                hashcode = (hashcode * 397) + EndpointSsl.GetHashCode();
            }
            if (__isset.updateUrl)
            {
                hashcode = (hashcode * 397) + UpdateUrl.GetHashCode();
            }
            if (__isset.c2dmAccount)
            {
                hashcode = (hashcode * 397) + C2dmAccount.GetHashCode();
            }
            if (__isset.nniServer)
            {
                hashcode = (hashcode * 397) + NniServer.GetHashCode();
            }
        }
        return(hashcode);
    }
Example #2
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("SystemConfiguration(");
        bool __first = true;

        if (Endpoint != null && __isset.endpoint)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Endpoint: ");
            Endpoint.ToString(sb);
        }
        if (EndpointSsl != null && __isset.endpointSsl)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("EndpointSsl: ");
            EndpointSsl.ToString(sb);
        }
        if (UpdateUrl != null && __isset.updateUrl)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("UpdateUrl: ");
            UpdateUrl.ToString(sb);
        }
        if (C2dmAccount != null && __isset.c2dmAccount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("C2dmAccount: ");
            C2dmAccount.ToString(sb);
        }
        if (NniServer != null && __isset.nniServer)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("NniServer: ");
            NniServer.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }