package com.qiyou.mb.android.utils.enums;

public enum OperationType { 
	
	NORMAL(0),INPROGRESS(1),DONE(2),FAILED(3);
	
OperationType(int type){
	this.type=type;
}
private int type=0;
@Override
public String toString() {

    return String.valueOf(this.type);

}
public int toInt() {

    return type;

}
 

public static OperationType valueOf(int type) {
	// TODO Auto-generated method stub
	switch(type){
		case 0:{return NORMAL;} 
		case 1:{return INPROGRESS;} 
		case 2:{return DONE;} 
		case 3:{return FAILED;} 

		default: return NORMAL;
		} 
	 
	}
 
}
