events refactoring
This commit is contained in:
parent
4475dca3fa
commit
d11fed8d32
13 changed files with 98 additions and 89 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue