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

        unchecked {
            if (__isset.requestId)
            {
                hashcode = (hashcode * 397) + RequestId.GetHashCode();
            }
            if (__isset.state)
            {
                hashcode = (hashcode * 397) + State.GetHashCode();
            }
            if (__isset.messageStoreRequestId)
            {
                hashcode = (hashcode * 397) + MessageStoreRequestId.GetHashCode();
            }
            if (__isset.messageIds)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(MessageIds);
            }
            if (__isset.receiverCount)
            {
                hashcode = (hashcode * 397) + ReceiverCount.GetHashCode();
            }
            if (__isset.successCount)
            {
                hashcode = (hashcode * 397) + SuccessCount.GetHashCode();
            }
            if (__isset.failCount)
            {
                hashcode = (hashcode * 397) + FailCount.GetHashCode();
            }
            if (__isset.blockCount)
            {
                hashcode = (hashcode * 397) + BlockCount.GetHashCode();
            }
            if (__isset.unregisteredCount)
            {
                hashcode = (hashcode * 397) + UnregisteredCount.GetHashCode();
            }
            if (__isset.unrelatedCount)
            {
                hashcode = (hashcode * 397) + UnrelatedCount.GetHashCode();
            }
            if (__isset.errorDescription)
            {
                hashcode = (hashcode * 397) + ErrorDescription.GetHashCode();
            }
        }
        return(hashcode);
    }
예제 #2
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("MessageCommitResult(");
        bool __first = true;

        if (RequestId != null && __isset.requestId)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("RequestId: ");
            RequestId.ToString(sb);
        }
        if (__isset.state)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("State: ");
            State.ToString(sb);
        }
        if (MessageStoreRequestId != null && __isset.messageStoreRequestId)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("MessageStoreRequestId: ");
            MessageStoreRequestId.ToString(sb);
        }
        if (MessageIds != null && __isset.messageIds)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("MessageIds: ");
            MessageIds.ToString(sb);
        }
        if (__isset.receiverCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ReceiverCount: ");
            ReceiverCount.ToString(sb);
        }
        if (__isset.successCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("SuccessCount: ");
            SuccessCount.ToString(sb);
        }
        if (__isset.failCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("FailCount: ");
            FailCount.ToString(sb);
        }
        if (__isset.blockCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("BlockCount: ");
            BlockCount.ToString(sb);
        }
        if (__isset.unregisteredCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("UnregisteredCount: ");
            UnregisteredCount.ToString(sb);
        }
        if (__isset.unrelatedCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("UnrelatedCount: ");
            UnrelatedCount.ToString(sb);
        }
        if (ErrorDescription != null && __isset.errorDescription)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ErrorDescription: ");
            ErrorDescription.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }