getValue method
Implementation
int getValue() {
int type = -1;
switch (this) {
case NIMMessageType.undef:
type = -1;
break;
case NIMMessageType.text:
type = 1024;
break;
case NIMMessageType.image:
type = 1;
break;
case NIMMessageType.audio:
type = 2;
break;
case NIMMessageType.video:
type = 3;
break;
case NIMMessageType.location:
type = 4;
break;
case NIMMessageType.file:
type = 6;
break;
case NIMMessageType.avchat:
type = 7;
break;
case NIMMessageType.notification:
type = 5;
break;
case NIMMessageType.tip:
type = 10;
break;
case NIMMessageType.robot:
type = 11;
break;
case NIMMessageType.netcall:
type = 12;
break;
case NIMMessageType.custom:
type = 100;
break;
case NIMMessageType.appCustom:
type = 101;
break;
case NIMMessageType.qiyuCustom:
type = 102;
break;
}
return type;
}