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

public enum ActivityType { 
	
PUBLIC(0),CYCLE(1),PRIVATE(2);;
	
ActivityType(int type){
	this.type=type;
}
private int type=0;
@Override
public String toString() {

    return String.valueOf(this.type);

}
public int toInt() {

    return type;

}
 

public String toCHString() {

	switch(type){
	case 0:{return "自由加入";}
	case 1:{return "圈内";} 
	default:return "私有";
	}
 
}

public static ActivityType valueOf(int type) {
	// TODO Auto-generated method stub
	switch(type){
		case 0:{return PUBLIC;}
		case 1:{return CYCLE;}
		case 2:{return PRIVATE;} 
		default: return PUBLIC;
		} 
	 
	}
public String getChString() {
	return toCHString();
}
 
}
