files tree made better.
This commit is contained in:
parent
ffbf032480
commit
ccc91bbf19
1630 changed files with 18209 additions and 41860 deletions
8
src/Yavsc.Abstract/Streaming/ChatUsageLevels.cs
Normal file
8
src/Yavsc.Abstract/Streaming/ChatUsageLevels.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
namespace Yavsc.Abstract.Streaming
|
||||
{
|
||||
public enum ChatRoomUsageLevel: int {
|
||||
User=0,
|
||||
HalfOp,
|
||||
Op
|
||||
}
|
||||
}
|
||||
10
src/Yavsc.Abstract/Streaming/IChatConnection.cs
Normal file
10
src/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
src/Yavsc.Abstract/Streaming/IChatRoom.cs
Normal file
11
src/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
src/Yavsc.Abstract/Streaming/IChatRoomUsage.cs
Normal file
12
src/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; }
|
||||
}
|
||||
}
|
||||
15
src/Yavsc.Abstract/Streaming/IChatUserInfo.cs
Normal file
15
src/Yavsc.Abstract/Streaming/IChatUserInfo.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
namespace Yavsc.Abstract.Streaming
|
||||
{
|
||||
|
||||
public interface IChatUserInfo
|
||||
{
|
||||
IConnection[] Connections { get; set; }
|
||||
string UserId { get; set; }
|
||||
|
||||
string UserName { get; set; }
|
||||
|
||||
string Avatar { get; set; }
|
||||
|
||||
string[] Roles { get; set; }
|
||||
}
|
||||
}
|
||||
10
src/Yavsc.Abstract/Streaming/IConnection.cs
Normal file
10
src/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; }
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue