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

public enum mediaType { 
	
PIC(0),MAP(1),VIDEO(2),SOUND(3);
	
mediaType(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 mediaType valueOf(int type) {
	// TODO Auto-generated method stub
	switch(type){
		case 0:{return PIC;}
		case 1:{return MAP;}
		case 2:return VIDEO;
		case 3:return SOUND; 
		default: return PIC;
		} 
	}
}
