old mode 100644
new mode 100755
| | |
| | | * 消息的ID |
| | | */ |
| | | private String serial; |
| | | private Object content; |
| | | private String content; |
| | | |
| | | private final static String requestTag = "req"; |
| | | private final static String responseTag = "res"; |
| | | |
| | | public static WvpRedisMsg getRequestInstance(String fromId, String toId, String cmd, String serial, Object content) { |
| | | public static WvpRedisMsg getRequestInstance(String fromId, String toId, String cmd, String serial, String content) { |
| | | WvpRedisMsg wvpRedisMsg = new WvpRedisMsg(); |
| | | wvpRedisMsg.setType(requestTag); |
| | | wvpRedisMsg.setFromId(fromId); |
| | |
| | | return wvpRedisMsg; |
| | | } |
| | | |
| | | public static WvpRedisMsg getResponseInstance(String fromId, String toId, String cmd, String serial, Object content) { |
| | | public static WvpRedisMsg getResponseInstance(String fromId, String toId, String cmd, String serial, String content) { |
| | | WvpRedisMsg wvpRedisMsg = new WvpRedisMsg(); |
| | | wvpRedisMsg.setType(responseTag); |
| | | wvpRedisMsg.setFromId(fromId); |
| | |
| | | this.cmd = cmd; |
| | | } |
| | | |
| | | public Object getContent() { |
| | | public String getContent() { |
| | | return content; |
| | | } |
| | | |
| | | public void setContent(Object content) { |
| | | public void setContent(String content) { |
| | | this.content = content; |
| | | } |
| | | } |