was badly named
This commit is contained in:
parent
505eaaa3a1
commit
d544a815c2
4 changed files with 6 additions and 6 deletions
|
|
@ -32,7 +32,7 @@ namespace Yavsc
|
||||||
{
|
{
|
||||||
bool valid = ValidateStringLength(roomName,1,25);
|
bool valid = ValidateStringLength(roomName,1,25);
|
||||||
if (valid) valid = IsLetterOrDigit(roomName);
|
if (valid) valid = IsLetterOrDigit(roomName);
|
||||||
if (!valid) NotifyUser(NotificationTypes.Error, "roomName", ChatHub.InvalidRoomName);
|
if (!valid) NotifyUser(NotificationTypes.Error, "roomName", ChatHubLabels.InvalidRoomName);
|
||||||
return valid;
|
return valid;
|
||||||
}
|
}
|
||||||
public bool ValidateUserName (string userName)
|
public bool ValidateUserName (string userName)
|
||||||
|
|
@ -45,14 +45,14 @@ namespace Yavsc
|
||||||
if (valid) valid = ValidateStringLength(suname, 1,12);
|
if (valid) valid = ValidateStringLength(suname, 1,12);
|
||||||
if (valid) valid = IsLetterOrDigit(userName);
|
if (valid) valid = IsLetterOrDigit(userName);
|
||||||
}
|
}
|
||||||
if (!valid) NotifyUser(NotificationTypes.Error, "userName" , ChatHub.InvalidUserName);
|
if (!valid) NotifyUser(NotificationTypes.Error, "userName" , ChatHubLabels.InvalidUserName);
|
||||||
return valid;
|
return valid;
|
||||||
}
|
}
|
||||||
public bool ValidateMessage (string message)
|
public bool ValidateMessage (string message)
|
||||||
{
|
{
|
||||||
if (!ValidateStringLength(message, 1, 10240))
|
if (!ValidateStringLength(message, 1, 10240))
|
||||||
{
|
{
|
||||||
NotifyUser(NotificationTypes.Error, "message", ChatHub.InvalidMessage);
|
NotifyUser(NotificationTypes.Error, "message", ChatHubLabels.InvalidMessage);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
@ -61,7 +61,7 @@ namespace Yavsc
|
||||||
{
|
{
|
||||||
if (!ValidateStringLength(reason, 1,240))
|
if (!ValidateStringLength(reason, 1,240))
|
||||||
{
|
{
|
||||||
NotifyUser(NotificationTypes.Error, "reason", ChatHub.InvalidReason);
|
NotifyUser(NotificationTypes.Error, "reason", ChatHubLabels.InvalidReason);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ namespace Yavsc {
|
||||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
public partial class ChatHub {
|
public partial class ChatHubLabels {
|
||||||
|
|
||||||
private static System.Resources.ResourceManager resourceMan;
|
private static System.Resources.ResourceManager resourceMan;
|
||||||
|
|
||||||
|
|
@ -26,7 +26,7 @@ namespace Yavsc {
|
||||||
public static System.Resources.ResourceManager ResourceManager {
|
public static System.Resources.ResourceManager ResourceManager {
|
||||||
get {
|
get {
|
||||||
if (object.Equals(null, resourceMan)) {
|
if (object.Equals(null, resourceMan)) {
|
||||||
System.Resources.ResourceManager temp = new System.Resources.ResourceManager(("Yavsc.Abstract.Resources." + "Yavsc.ChatHub"), typeof(ChatHub).GetTypeInfo().Assembly);
|
System.Resources.ResourceManager temp = new System.Resources.ResourceManager(("Yavsc.Abstract.Resources." + "Yavsc.ChatHub"), typeof(ChatHubLabels).GetTypeInfo().Assembly);
|
||||||
resourceMan = temp;
|
resourceMan = temp;
|
||||||
}
|
}
|
||||||
return resourceMan;
|
return resourceMan;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue