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

18 lines
541 B
C#

7 years ago
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,255}$", ErrorMessage = "topic cannot be validated.")]
7 years ago
string Topic { get ; set; }
string OwnerId { get ; }
List<TMod> Moderation { get; }
7 years ago
}
}