Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static ConvertReason(E) {
- let T = "";
- switch (E) {
- case 0:
- T = "There is no internet connection...";
- break;
- case 1:
- T = "Opss, chatroom has no free slots for users";
- break;
- case 2:
- T = "Chatroom has been closed by administrator";
- break;
- case 3:
- T = "This room does not allow guests to join, please sign in";
- break;
- case 4:
- T = "You has been banned from chatroom by Moderator";
- break;
- case 5:
- T = "Wrong password";
- break;
- case 6:
- T = "Single connection is allowed for chatroom";
- break;
- case 7:
- T = "An error occurred while connecting to the server...";
- break;
- case 8:
- T = "An error occurred while connecting to the server...";
- break;
- case 9:
- T = "An error occurred while connecting to the server...";
- break;
- case 10:
- T = "An error occurred while connecting to the server...";
- break;
- case 11:
- T = "An error occurred while connecting to the server...";
- break;
- case 12:
- T = "You has been kicked from chatroom by Moderator";
- break;
- default:
- T = "There is no internet connection...";
- }
- return T
- }
Advertisement
Add Comment
Please, Sign In to add comment