chatRooms
This commit is contained in:
parent
86130d2ee5
commit
871cf6b884
42 changed files with 15345 additions and 225 deletions
8
Yavsc.Abstract/Streaming/ChatUsageLevels.cs
Normal file
8
Yavsc.Abstract/Streaming/ChatUsageLevels.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
namespace Yavsc.Abstract.Streaming
|
||||
{
|
||||
public enum ChatRoomUsageLevel: int {
|
||||
User=0,
|
||||
HalfOp,
|
||||
Op
|
||||
}
|
||||
}
|
||||
10
Yavsc.Abstract/Streaming/IChatConnection.cs
Normal file
10
Yavsc.Abstract/Streaming/IChatConnection.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Yavsc.Abstract.Streaming
|
||||
{
|
||||
public interface IChatConnection<T> : IConnection where T: IChatRoomUsage
|
||||
{
|
||||
List<T> Rooms { get; }
|
||||
|
||||
}
|
||||
}
|
||||
11
Yavsc.Abstract/Streaming/IChatRoom.cs
Normal file
11
Yavsc.Abstract/Streaming/IChatRoom.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Yavsc.Abstract.Streaming
|
||||
{
|
||||
public interface IChatRoom<TUsage> where TUsage : IChatRoomUsage
|
||||
{
|
||||
string Name { get; set; }
|
||||
string Topic { get ; set; }
|
||||
List<TUsage> UserList { get; }
|
||||
}
|
||||
}
|
||||
12
Yavsc.Abstract/Streaming/IChatRoomUsage.cs
Normal file
12
Yavsc.Abstract/Streaming/IChatRoomUsage.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
namespace Yavsc.Abstract.Streaming
|
||||
{
|
||||
|
||||
public interface IChatRoomUsage {
|
||||
|
||||
string ChannelName { get; set; }
|
||||
|
||||
string ChatUserConnectionId { get; set; }
|
||||
|
||||
ChatRoomUsageLevel Level { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -1,11 +1,5 @@
|
|||
namespace Yavsc
|
||||
namespace Yavsc.Abstract.Streaming
|
||||
{
|
||||
public interface IConnection
|
||||
{
|
||||
string ConnectionId { get; set; }
|
||||
string UserAgent { get; set; }
|
||||
bool Connected { get; set; }
|
||||
}
|
||||
|
||||
public interface IChatUserInfo
|
||||
{
|
||||
|
|
@ -18,4 +12,4 @@ namespace Yavsc
|
|||
|
||||
string[] Roles { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
10
Yavsc.Abstract/Streaming/IConnection.cs
Normal file
10
Yavsc.Abstract/Streaming/IConnection.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
namespace Yavsc.Abstract.Streaming
|
||||
{
|
||||
public interface IConnection
|
||||
{
|
||||
string ConnectionId { get; set; }
|
||||
string UserAgent { get; set; }
|
||||
bool Connected { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
|
||||
<PropertyGroup>
|
||||
<MinimumVisualStudioVersion>10.0</MinimumVisualStudioVersion>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue