typeFromInt static method

EMConversationType typeFromInt(
  1. int? type
)

Implementation

static EMConversationType typeFromInt(int? type) {
  EMConversationType ret = EMConversationType.Chat;
  switch (type) {
    case 0:
      ret = EMConversationType.Chat;
      break;
    case 1:
      ret = EMConversationType.GroupChat;
      break;
    case 2:
      ret = EMConversationType.ChatRoom;
      break;
  }
  return ret;
}