Chat user info model implementation

This commit is contained in:
2016-12-15 01:03:36 +01:00
parent ec3ef78c2a
commit f1f904de45
2 changed files with 24 additions and 0 deletions

23
YavscLib/IChatUserInfo.cs Normal file
View File

@ -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; }
}
}

View File

@ -58,6 +58,7 @@
<ItemGroup>
<Content Include="project.json" />
<Content Include="IBlackListed.cs" />
<Content Include="IChatUserInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">