Refactoring

* refactoring
* fixes
* messages
* new interface
This commit is contained in:
2019-01-18 23:22:03 +01:00
parent 1246116804
commit b7460cfd78
34 changed files with 746 additions and 665 deletions

View File

@@ -3,7 +3,7 @@ using System;
namespace SeniorAssistant.Models
{
public class Notification : IHasTime
public class Notification : IHasMessage
{
[Column(IsPrimaryKey = true, CanBeNull = false, IsIdentity = true)]
public int Id { get; set; }
@@ -13,9 +13,14 @@ namespace SeniorAssistant.Models
[NotNull]
public DateTime Time { get; set; }
public bool Seen { get; set; }
public string Message { get; set; }
[NotNull]
public string Receiver { get; set; }
public string Body { get; set; }
public string Url { get; set; }
public DateTime Seen { get; set; }
}
}