Skip to content

Instantly share code, notes, and snippets.

@Technetium1
Created April 15, 2019 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Technetium1/061a2eed91f06896acd92c7ca745bbe3 to your computer and use it in GitHub Desktop.
Save Technetium1/061a2eed91f06896acd92c7ca745bbe3 to your computer and use it in GitHub Desktop.
static ConvertReason(a) {
let b = "";
switch (a) {
case 0:
b = "There is no internet connection...";
break;
case 1:
b = "Opss, chatroom has no free slots for users";
break;
case 2:
b = "Chatroom has been closed by administrator";
break;
case 3:
b = "This room does not allow guests to join, please sign in";
break;
case 4:
b = "You have been banned by a moderator";
break;
case 5:
b = "Wrong password";
break;
case 6:
b = "Single connection is allowed for chatroom";
break;
case 7:
b = "An error occurred while connecting to the server...";
break;
case 8:
b = "An error occurred while connecting to the server...";
break;
case 9:
b = "An error occurred while connecting to the server...";
break;
case 10:
b = "An error occurred while connecting to the server...";
break;
case 11:
b = "An error occurred while connecting to the server...";
break;
case 12:
b = "You have been kicked by a moderator";
break;
case 22:
b = "You must be at least 18 years old and signed in to a verified Tinychat account to join this room";
break;
default:
b = "There is no internet connection...";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment