import javax.swing.JProgressBar;
import java.util.List;
import java.io.*;
public class Request implements Serializable{
static final int AUTHEN=0;
static final int BORROW=1;
static final int RETUN=2;
static final int SEARCH=3;
static final int CHECKLOAN=4;
private String borrowerId=null;
private int type;
private List req=null;
//request encoded in String and stored in list
//for this.AUTHEN req(0)=borrowerId
//for this.BORROW||RETUN||SEARCH req(n)=title of books
public Request(String borrowerId,int type,List req){
this.borrowerId=borrowerId;
this.type=type;
this.req=req;
}
public Request(String borrowerId,int type){
this.borrowerId=borrowerId;
this.type=type;
}
public String getBorrowerId(){
return borrowerId;
}
public int getType(){
return type;
}
public List getReq(){
return req;
}
}