Queue
老邱 authored at 2016-12-20 11:46:24
881.00 B
X
using System;
using System.Collections.Generic;

namespace NewLife.Queue.Protocols
{
    [Serializable]
    public class BatchMessageStoreResult
    {
        public string Topic { get; private set; }
        public int QueueId { get; private set; }
        public IEnumerable<BatchMessageItemResult> MessageResults { get; private set; }

        public BatchMessageStoreResult() { }
        public BatchMessageStoreResult(string topic, int queueId, IEnumerable<BatchMessageItemResult> messageResults)
        {
            Topic = topic;
            QueueId = queueId;
            MessageResults = messageResults;
        }

        public override string ToString()
        {
            return string.Format("[Topic:{0}, QueueId:{1}, MessageResults:[{2}]]",
                Topic,
                QueueId,
                string.Join(",", MessageResults));
        }
    }
}