From ca5a5ca4cbebe3666cd591cbe220bce8736833ab Mon Sep 17 00:00:00 2001 From: "Chris.Watts90@outlook.com" Date: Wed, 8 Mar 2017 16:25:20 +0000 Subject: [PATCH] Created Group object. added Group list to User object for UI to bind to in order to show list of associated groups etc. #59 --- .../WindowsDataCenter/Interfaces/Group.cs | 16 ++++++++++++++++ .../Interfaces/Interfaces.csproj | 1 + .../WindowsDataCenter/Interfaces/User.cs | 1 + 3 files changed, 18 insertions(+) create mode 100644 DataCenter_Windows/WindowsDataCenter/Interfaces/Group.cs diff --git a/DataCenter_Windows/WindowsDataCenter/Interfaces/Group.cs b/DataCenter_Windows/WindowsDataCenter/Interfaces/Group.cs new file mode 100644 index 0000000..2ac5f16 --- /dev/null +++ b/DataCenter_Windows/WindowsDataCenter/Interfaces/Group.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Interfaces +{ + public class Group + { + public int Id { get; set; } + public string Name { get; set; } + public int UserCount { get; set; } + public bool IsAssociatedToUser { get; set; } + } +} diff --git a/DataCenter_Windows/WindowsDataCenter/Interfaces/Interfaces.csproj b/DataCenter_Windows/WindowsDataCenter/Interfaces/Interfaces.csproj index 90c1283..79a3e8f 100644 --- a/DataCenter_Windows/WindowsDataCenter/Interfaces/Interfaces.csproj +++ b/DataCenter_Windows/WindowsDataCenter/Interfaces/Interfaces.csproj @@ -42,6 +42,7 @@ + diff --git a/DataCenter_Windows/WindowsDataCenter/Interfaces/User.cs b/DataCenter_Windows/WindowsDataCenter/Interfaces/User.cs index 406824e..0774d15 100644 --- a/DataCenter_Windows/WindowsDataCenter/Interfaces/User.cs +++ b/DataCenter_Windows/WindowsDataCenter/Interfaces/User.cs @@ -23,6 +23,7 @@ namespace Interfaces public DateTime LastEventDateTime { get; set; } public List AssociatedIdentifiers { get; set; } + public List Groups { get; set; } public bool State { get; set; } } } \ No newline at end of file