yavsc/src/Yavsc.Abstract/Chat/IChatRoom.cs

17 lines
508 B
C#
Raw Normal View History

2019-05-07 14:01:23 +01:00
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; }
2019-05-08 01:35:10 +01:00
[RegularExpression(@"^#?[a-zA-Z0-9'-']{3,255}$", ErrorMessage = "topic cannot be validated.")]
2019-05-07 14:01:23 +01:00
string Topic { get ; set; }
2019-05-08 01:35:10 +01:00
string OwnerId { get ; }
List<TMod> Moderation { get; }
2019-05-07 14:01:23 +01:00
}
2026-08-22 03:34:48 +01:00
}