events refactoring

This commit is contained in:
Paul Schneider 2016-09-17 03:36:34 +02:00
commit d11fed8d32
13 changed files with 98 additions and 89 deletions

View file

@ -27,7 +27,23 @@ namespace Yavsc.Models.Messaging
/// <summary>
/// Base event.
/// </summary>
public class BaseEvent: ITitle
public class BaseEvent : IEvent {
public BaseEvent()
{
Topic = GetType().Name;
}
public BaseEvent(string topic)
{
Topic = topic;
}
public string Topic { get; set; }
public string Sender { get; set; }
public string Message { get; set; }
}
public class GeneralEvent: BaseEvent, ITitle
{
/// <summary>
/// The title.