[reorg]
This commit is contained in:
parent
730ee00743
commit
02160f1eaf
26 changed files with 129 additions and 132 deletions
7
src/Yavsc.Abstract/Chat/ChatRoomAccessLevel.cs
Normal file
7
src/Yavsc.Abstract/Chat/ChatRoomAccessLevel.cs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
namespace Yavsc.Abstract.Chat
|
||||
{
|
||||
public enum ChatRoomAccessLevel: int {
|
||||
Op=1,
|
||||
HalfOp=2
|
||||
}
|
||||
}
|
||||
16
src/Yavsc.Abstract/Chat/IChatRoom.cs
Normal file
16
src/Yavsc.Abstract/Chat/IChatRoom.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Yavsc.Abstract.Chat
|
||||
{
|
||||
public interface IChatRoom<TMod> where TMod : IChatRoomAccess
|
||||
{
|
||||
[RegularExpression(@"^#?[a-zA-Z0-9'-']{3,10}$", ErrorMessage = "chan name cannot be validated.")]
|
||||
string Name { get; }
|
||||
|
||||
[RegularExpression(@"^#?[a-zA-Z0-9'-']{3,10}$", ErrorMessage = "topic cannot be validated.")]
|
||||
string Topic { get ; set; }
|
||||
|
||||
List<TMod> Administration { get; }
|
||||
}
|
||||
}
|
||||
12
src/Yavsc.Abstract/Chat/IChatRoomAccess.cs
Normal file
12
src/Yavsc.Abstract/Chat/IChatRoomAccess.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
namespace Yavsc.Abstract.Chat
|
||||
{
|
||||
|
||||
public interface IChatRoomAccess
|
||||
{
|
||||
long Id { get; }
|
||||
|
||||
ChatRoomAccessLevel Level { get; set; }
|
||||
|
||||
string UserId { get; }
|
||||
}
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace Yavsc.Abstract.Streaming
|
||||
namespace Yavsc.Abstract.Chat
|
||||
{
|
||||
public interface IConnection
|
||||
{
|
||||
|
|
@ -4,8 +4,9 @@ using System.Reflection;
|
|||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyCopyright("Copyright © 2014-2018")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCopyright("Copyright © Paul Schneider 2014-2019")]
|
||||
[assembly: AssemblyTrademark("Yavsc")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
[assembly: NeutralResourcesLanguage("fr")]
|
||||
|
||||
[assembly: AssemblyVersion("1.0.6.1")]
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
namespace Yavsc.Abstract.Streaming
|
||||
{
|
||||
public enum ChatRoomUsageLevel: int {
|
||||
User=0,
|
||||
HalfOp,
|
||||
Op
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Yavsc.Abstract.Streaming
|
||||
{
|
||||
public interface IChatConnection<T> : IConnection where T: IChatRoomUsage
|
||||
{
|
||||
List<T> Rooms { get; }
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
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; }
|
||||
}
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
namespace Yavsc.Abstract.Streaming
|
||||
{
|
||||
|
||||
public interface IChatRoomUsage {
|
||||
|
||||
string ChannelName { get; set; }
|
||||
|
||||
string ChatUserConnectionId { get; set; }
|
||||
|
||||
ChatRoomUsageLevel Level { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue