Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Created by phann on 10/9/2016.
- */
- public enum MsgType {
- /*AUTHORIZATION*/
- LOGIN, LOGIN_OK,LOGIN_DENY,
- GET_USER_STATUS, USER_STATUS_RETURN,
- /*CHAT CONTROL*/
- REQUEST_NEW_CHAT, NEW_CHAT,
- SEND_MSG, MSG,
- QUIT_CHAT, CHAT_END,
- SEND_FILE, FILE,
- }
- ----------------------------------------------------------------------------------------
- import java.io.Serializable;
- import java.util.Vector;
- /**
- * Created by phann on 10/9/2016.
- */
- public class ProtocolMsg implements Serializable {
- public MsgType type;
- public Vector<String> msg;
- public byte[] file = null;
- ProtocolMsg(MsgType type, Vector<String> msg, byte[] file){
- this.type = type;
- this.msg = msg;
- this.file = file;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement