using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Weiz.EventBus.Core;

namespace MES.Utility.EventBus
{
    public class MessageEvent : IEvent
    {
        public MessageEvent() { }
        public MessageEvent(string message)
        {
            Time = DateTime.Now;
            Message = message;
        }
        public MessageEvent(DateTime time, string message)
        {
            Time = time;
            Message = message;
        }
        public DateTime Time { get; set; }

        public string Message { get; set; }
    }
}
