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

public enum MessageType { 
	
	NORMAL_MESSAGE(0),REQUEST_JOIN_ACTIVITY(1),REQUEST_JOIN_TEAM(2),INVITE_JOIN_ACTIVITY(3);
	
MessageType(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 MessageType valueOf(int type) {
	// TODO Auto-generated method stub
	switch(type){
		case 0:{return NORMAL_MESSAGE;} 
		case 1:{return REQUEST_JOIN_ACTIVITY;}
		case 2:{return REQUEST_JOIN_TEAM;}
		case 3:{return INVITE_JOIN_ACTIVITY;} 
		default: return REQUEST_JOIN_ACTIVITY;
		} 
	 
	}
 
}