From f1f904de454ef65fb7d130083c418ff9aa33a109 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Thu, 15 Dec 2016 01:03:36 +0100 Subject: [PATCH] Chat user info model implementation --- YavscLib/IChatUserInfo.cs | 23 +++++++++++++++++++++++ YavscLib/YavscLib.csproj | 1 + 2 files changed, 24 insertions(+) create mode 100644 YavscLib/IChatUserInfo.cs diff --git a/YavscLib/IChatUserInfo.cs b/YavscLib/IChatUserInfo.cs new file mode 100644 index 00000000..56e128a9 --- /dev/null +++ b/YavscLib/IChatUserInfo.cs @@ -0,0 +1,23 @@ +using System.Collections.Generic; + +namespace YavscLib +{ + public interface IConnection + { + string ConnectionId { get; set; } + string UserAgent { get; set; } + bool Connected { get; set; } + } + + public interface IChatUserInfo + { + IConnection[] Connections { get; set; } + string UserId { get; set; } + + string UserName { get; set; } + + string Avatar { get; set; } + + string[] Roles { get; set; } + } +} \ No newline at end of file diff --git a/YavscLib/YavscLib.csproj b/YavscLib/YavscLib.csproj index 0305d7aa..59372f4c 100644 --- a/YavscLib/YavscLib.csproj +++ b/YavscLib/YavscLib.csproj @@ -58,6 +58,7 @@ +