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

public enum TrackStatus { 

//0,1,2,3,...(pending,recording,paused,finished,...)
PENING(0),RECORDING(1),PAUSED(2),FINISHED(3),DELETED(4),ACTIVE(5),INACTIVE(6);

TrackStatus(int status){
this.status=status;
}
private int status=0;
@Override
public String toString() {

return String.valueOf(this.status);

}
public int toInt() {

return status;

}
public static TrackStatus valueOf(int type) {
// TODO Auto-generated method stub
switch(type){
	case 0:{return PENING;}
	case 1:{return RECORDING;}
	case 2:return PAUSED;
	case 3:return FINISHED; 
	case 4:return DELETED; 
	case 5:return ACTIVE; 
	case 6:return INACTIVE; 
	default: return DELETED;
	} 
}
}