📄 metadata.java
字号:
/*
* Created on May 28, 2005
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package org.GTADS.protocol;
/**
* @author Administrator
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class MetaData {
private String dataOrigin;
private int dataContext;
private String sessionName;
public static String FROM_SERVER = "SERVER";
public static String LOGIN_SESSION = "LOGIN";
public static String PING_REQUEST = "PING";
public static String PING_REPLY = "PING_REPLY";
public static String GET_PING = "GET_PING";
public static String JOIN_CHATROOM = "JOIN";
public static String PART_CHATROOM = "PART";
public static String QUIT_CHATROOM = "QUIT";
public static String UPTIME = "UPTIME";
public static String SYSTEM_VAR = "$SYSTEM$";
public static String S_KICK = "S_KICK";
public static String GREET = "GREET";
public static String NO_SESSION_NAME = "NONE";
public static String SEND_LIST = "SEND_LIST";
public static String SEND_CHATROOM_LIST = "SEND_CHATROOM_LIST";
public static String REFRESH_MOTD = "REFRESH_MOTD";
public static String GET_MOTD = "GET_MOTD";
public static String SET_CONFIG = "SET_CONFIG";
public static String SHOW_CONFIG = "SHOW_CONFIG";
public static String NEW_USER_ACCT = "$newuser$";
public static String GET_NUM_USERS = "GET_NUM_USERS";
public static String GET_NUM_GAMEROOMS = "GET_NUM_GAMEROOMS";
public static String CREATE_GAMEROOM = "CREATE_GAMEROOM";
public static String DISPOSE_GAMEROOM = "DESTORY";
public static String IS_HOST = "IS_HOST";
public static String START_PROXY = "START_PROXY";
public static String STOP_PROXY = "STOP_PROXY";
public static String HOST_READY = "HOST_READY";
public static String USER_BANNED = "USER_BANNED";
public static String BAN_USER = "BAN_USER";
public static String UNBAN_USER = "UNBAN_USER";
public static String BAN_IP = "BAN_IP";
public static String UNBAN_IP = "UNBAN_IP";
public static String PROXY_CHECK = "PROXY_CHECK";
public static String PROXY_SUCCESS = "PROXY_SUCCESS";
public static String PROXY_FAIL = "PROXY_FAIL";
public static String PROXY_CONNECTED = "PROXY_CONNECTED";
public static String GAME_STARTED = "GAME_STARTED";
public static String GAME_STOPPED = "GAME_STOPPED";
public static int GENERIC = 0;
public static int CHATROOM = 1;
public static int GAME = 2;
public static int FRIENDSLIST = 3;
public static int DASHBOARD = 4;
public MetaData (String dataOrigin, int dataContext, String sessionName) {
this.dataOrigin = dataOrigin;
this.dataContext = dataContext;
this.sessionName = sessionName;
}
public String getMetaDataAsString(){
String tempMetaDataString = new String();
tempMetaDataString = dataOrigin + ProtocolHandler.delimiter + dataContext +
ProtocolHandler.delimiter + sessionName;
return tempMetaDataString;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -