コード例 #1
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("RefreshSubscriptionsResponse(");
        bool __first = true;

        if (__isset.ttlMillis)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("TtlMillis: ");
            TtlMillis.ToString(sb);
        }
        if (SubscriptionStates != null && __isset.subscriptionStates)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("SubscriptionStates: ");
            SubscriptionStates.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
コード例 #2
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.ttlMillis)
            {
                hashcode = (hashcode * 397) + TtlMillis.GetHashCode();
            }
            if (__isset.subscriptionStates)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(SubscriptionStates);
            }
        }
        return(hashcode);
    }