From 4f4d247dc6236cfb22d68edeb4b4adcfcf507a4e Mon Sep 17 00:00:00 2001 From: Watts Date: Wed, 12 Apr 2017 22:00:08 +0100 Subject: [PATCH] Add Log Source Identification to determine if a log has been created/updated from the UI/Other Applications #29 --- .../WindowsDataCenter/Interfaces/TimeLog.cs | 9 +++++++++ .../WindowsDataCenter/SQLiteRepository/LogSourceDb.cs | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 DataCenter_Windows/WindowsDataCenter/SQLiteRepository/LogSourceDb.cs diff --git a/DataCenter_Windows/WindowsDataCenter/Interfaces/TimeLog.cs b/DataCenter_Windows/WindowsDataCenter/Interfaces/TimeLog.cs index 416fb4a..57cedae 100644 --- a/DataCenter_Windows/WindowsDataCenter/Interfaces/TimeLog.cs +++ b/DataCenter_Windows/WindowsDataCenter/Interfaces/TimeLog.cs @@ -11,6 +11,7 @@ namespace Interfaces public DateTimeOffset EventTime { get; set; } public int CalendarWeek { get; set; } public int Year { get; set; } + public LogSource Source { get; set; } } public enum LogDirection @@ -19,4 +20,12 @@ namespace Interfaces IN = 1, OUT = 2 } + + public enum LogSource + { + UNKNOWN=0, + IDENTIFIER=1, + UI=2, + TRAYAPP=3 + } } \ No newline at end of file diff --git a/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/LogSourceDb.cs b/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/LogSourceDb.cs new file mode 100644 index 0000000..8cf1ed5 --- /dev/null +++ b/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/LogSourceDb.cs @@ -0,0 +1,10 @@ +namespace SQLiteRepository +{ + public enum LogSourceDb + { + UNKNOWN=0, + IDENTIFIER = 1, + UI = 2, + TRAYAPP = 3 + } +} \ No newline at end of file