1. Foundation work

2020-01-0616:47:50

13 12312
Launch point Aston occur
the ContentType {enum 
the TEXT (0), the text //
PIC (1), // Image
AUDIO (2), // audio
VIDEO (3), // video
FILE (11), // File
USER_INVITATION (15), // friend invite
AUDIO_FREQUENCY (19), // audio
;
int type;

the ContentType (int type) {
this.type = type;
}

public int getType () {
return type;
}

public static Convert the ContentType (int type) {
for (the ContentType C : ContentType.values ()) {
IF (c.getType () type ==) {
return C;
}
}
return null;
}

}

 

 

 

Guess you like

Origin www.cnblogs.com/zsit/p/12157140.html