package com.tarena.exam.model;
import java.io.Serializable;
import java.util.Properties;
public class Request implements Serializable{
public static final int LOGIN_REQUEST=1;
public static final int BEGIN_REQUEST=2;
public static final int SEND_REQUEST=3;
public static final int QUIT_REQUEST=4;
private int type;
private Properties pro;
private static final long serialVersionUID=-371890756421779L;
public Request(int type){
this.type=type;
pro=new Properties();
}
public void addData(String key,String value){
pro.put(key,value);
}
public String getData(String key){
return pro.getProperty(key);
}
public int getType() {
return type;
}
}