implemented some not tested kick

This commit is contained in:
2019-06-14 10:03:51 +01:00
parent 284bf25695
commit a4c097dd0d
26 changed files with 756 additions and 185 deletions

View File

@ -57,15 +57,6 @@ namespace Yavsc
{ "openid", "profile", "email", "https://www.googleapis.com/auth/calendar" };
public static readonly string NoneCode = "none";
public const string HubGroupAuthenticated = "authenticated";
public const string HubGroupAnonymous = "anonymous";
public const string HubGroupCops= "cops";
public const string HubGroupRomsPrefix = "room_";
public const int MaxChanelName = 255;
public const string HubGroupFollowingPrefix = "fol ";
public const string AnonymousUserNamePrefix = "?";
public const string KeyParamChatUserName = "username";
public const string LabAuthChatUser = "Authenticated chat user";
}
}

View File

@ -13,7 +13,7 @@ namespace Yavsc.Models.Chat
public string Topic { get; set; }
[Key]
[StringLengthAttribute(Constants.MaxChanelName, MinimumLength=3)]
[StringLengthAttribute(ChatHubConstants.MaxChanelName, MinimumLength=3)]
public string Name { get; set;}
public string OwnerId { get; set; }

View File

@ -2,6 +2,12 @@ using System.Collections.Generic;
using Yavsc.Models.Chat;
namespace Yavsc.ViewModels.Chat { 
public class ChannelShortInfo {
public string RoomName {get; set;}
public string Topic { get; set; }
}
public class ChatUserInfo : IChatUserInfo
{