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

public enum ActivityStatus { 

//0,1,2,3,...(pending,recording,paused,finished,...)
PENING(0),ACTIVE(1),INACTIVE(2),EXPIRED(3),CLOSED(4),CANCLED(5);

ActivityStatus(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 ActivityStatus valueOf(int type) {
// TODO Auto-generated method stub
switch(type){
	case 0:{return PENING;}
	case 1:{return ACTIVE;}
	case 2:return INACTIVE;
	case 3:return EXPIRED;  
	case 4:return CLOSED;
	case 5:return CANCLED;  
	default: return ACTIVE;
	} 
}
}