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

@@ -0,0 +1,18 @@
using LinqToDB.Mapping;
using System;
namespace SeniorAssistant.Models.Data
{
public class Heartbeat : IHasTime
{
[PrimaryKey]
[NotNull]
public string Username { get; set; }
[PrimaryKey]
[NotNull]
public DateTime Time { get; set; }
public double Value { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
using LinqToDB.Mapping;
using System;
namespace SeniorAssistant.Models.Data
{
public class Sleep : IHasTime
{
[PrimaryKey]
[NotNull]
public string Username { get; set; }
[PrimaryKey]
[NotNull]
public DateTime Time { get; set; }
public long Value { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
using LinqToDB.Mapping;
using System;
namespace SeniorAssistant.Models.Data
{
public class Step : IHasTime
{
[PrimaryKey]
[NotNull]
public string Username { get; set; }
[PrimaryKey]
[NotNull]
public DateTime Time { get; set; }
public long Value { get; set; }
}
}