// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////

enum TXEAVRoomEventID {
  AVROOM_EVT_REQUEST_IP_SUCC /* 1001 */,
  AVROOM_EVT_CONNECT_SUCC /* 1002 */,
  AVROOM_EVT_ENTER_ROOM_SUCC /* 1003 */,
  AVROOM_EVT_EXIT_ROOM_SUCC /* 1004 */,
  AVROOM_EVT_REQUEST_AVSEAT_SUCC /* 1005 */,
  AVROOM_ERR_REQUEST_IP_FAIL /* -1001 */,
  AVROOM_ERR_CONNECT_FAILE /* -1002 */,
  AVROOM_ERR_ENTER_ROOM_FAIL /* -1003 */,
  AVROOM_ERR_EXIT_ROOM_FAIL /* -1004 */,
  AVROOM_ERR_REQUEST_AVSEAT_FAIL /* -1005 */,
  AVROOM_WARNING_DISCONNECT /* 2001 */,
  AVROOM_WARNING_RECONNECT /* 2002 */,
  AVROOM_WARNING_NET_BUSY /* 2003 */,
  AVROOM_EVT_OPEN_CAMERA_SUCC /* 3001 */,
  AVROOM_EVT_START_VIDEO_ENCODER /* 3002 */,
  AVROOM_EVT_UP_CHANGE_RESOLUTION /* 3003 */,
  AVROOM_EVT_UP_CHANGE_BITRATE /* 3004 */,
  AVROOM_EVT_FIRST_FRAME_AVAILABLE /* 3005 */,
  AVROOM_WARNING_HW_ACCELERATION_ENCODE_FAIL /* 3101 */,
  AVROOM_ERR_OPEN_CAMERA_FAIL /* -3001 */,
  AVROOM_ERR_OPEN_MIC_FAIL /* -3002 */,
  AVROOM_ERR_VIDEO_ENCODE_FAIL /* -3003 */,
  AVROOM_ERR_AUDIO_ENCODE_FAIL /* -3004 */,
  AVROOM_ERR_UNSUPPORTED_RESOLUTION /* -3005 */,
  AVROOM_ERR_UNSUPPORTED_SAMPLERATE /* -3006 */,
  AVROOM_EVT_RCV_FIRST_I_FRAME /* 4001 */,
  AVROOM_EVT_PLAY_BEGIN /* 4002 */,
  AVROOM_EVT_PLAY_LOADING /* 4003 */,
  AVROOM_EVT_START_VIDEO_DECODER /* 4004 */,
  AVROOM_EVT_DOWN_CHANGE_RESOLUTION /* 4005 */,
  AVROOM_WARNING_VIDEO_DECODE_FAIL /* 4101 */,
  AVROOM_WARNING_AUDIO_DECODE_FAIL /* 4102 */,
  AVROOM_WARNING_HW_ACCELERATION_DECODE_FAIL /* 4103 */,
  AVROOM_WARNING_VIDEO_PLAY_LAG /* 4104 */
}

extension TXEAVRoomEventIDToX on TXEAVRoomEventID {
  int toValue() {
    switch (this) {
      case TXEAVRoomEventID.AVROOM_EVT_REQUEST_IP_SUCC: return 1001;
      case TXEAVRoomEventID.AVROOM_EVT_CONNECT_SUCC: return 1002;
      case TXEAVRoomEventID.AVROOM_EVT_ENTER_ROOM_SUCC: return 1003;
      case TXEAVRoomEventID.AVROOM_EVT_EXIT_ROOM_SUCC: return 1004;
      case TXEAVRoomEventID.AVROOM_EVT_REQUEST_AVSEAT_SUCC: return 1005;
      case TXEAVRoomEventID.AVROOM_ERR_REQUEST_IP_FAIL: return -1001;
      case TXEAVRoomEventID.AVROOM_ERR_CONNECT_FAILE: return -1002;
      case TXEAVRoomEventID.AVROOM_ERR_ENTER_ROOM_FAIL: return -1003;
      case TXEAVRoomEventID.AVROOM_ERR_EXIT_ROOM_FAIL: return -1004;
      case TXEAVRoomEventID.AVROOM_ERR_REQUEST_AVSEAT_FAIL: return -1005;
      case TXEAVRoomEventID.AVROOM_WARNING_DISCONNECT: return 2001;
      case TXEAVRoomEventID.AVROOM_WARNING_RECONNECT: return 2002;
      case TXEAVRoomEventID.AVROOM_WARNING_NET_BUSY: return 2003;
      case TXEAVRoomEventID.AVROOM_EVT_OPEN_CAMERA_SUCC: return 3001;
      case TXEAVRoomEventID.AVROOM_EVT_START_VIDEO_ENCODER: return 3002;
      case TXEAVRoomEventID.AVROOM_EVT_UP_CHANGE_RESOLUTION: return 3003;
      case TXEAVRoomEventID.AVROOM_EVT_UP_CHANGE_BITRATE: return 3004;
      case TXEAVRoomEventID.AVROOM_EVT_FIRST_FRAME_AVAILABLE: return 3005;
      case TXEAVRoomEventID.AVROOM_WARNING_HW_ACCELERATION_ENCODE_FAIL: return 3101;
      case TXEAVRoomEventID.AVROOM_ERR_OPEN_CAMERA_FAIL: return -3001;
      case TXEAVRoomEventID.AVROOM_ERR_OPEN_MIC_FAIL: return -3002;
      case TXEAVRoomEventID.AVROOM_ERR_VIDEO_ENCODE_FAIL: return -3003;
      case TXEAVRoomEventID.AVROOM_ERR_AUDIO_ENCODE_FAIL: return -3004;
      case TXEAVRoomEventID.AVROOM_ERR_UNSUPPORTED_RESOLUTION: return -3005;
      case TXEAVRoomEventID.AVROOM_ERR_UNSUPPORTED_SAMPLERATE: return -3006;
      case TXEAVRoomEventID.AVROOM_EVT_RCV_FIRST_I_FRAME: return 4001;
      case TXEAVRoomEventID.AVROOM_EVT_PLAY_BEGIN: return 4002;
      case TXEAVRoomEventID.AVROOM_EVT_PLAY_LOADING: return 4003;
      case TXEAVRoomEventID.AVROOM_EVT_START_VIDEO_DECODER: return 4004;
      case TXEAVRoomEventID.AVROOM_EVT_DOWN_CHANGE_RESOLUTION: return 4005;
      case TXEAVRoomEventID.AVROOM_WARNING_VIDEO_DECODE_FAIL: return 4101;
      case TXEAVRoomEventID.AVROOM_WARNING_AUDIO_DECODE_FAIL: return 4102;
      case TXEAVRoomEventID.AVROOM_WARNING_HW_ACCELERATION_DECODE_FAIL: return 4103;
      case TXEAVRoomEventID.AVROOM_WARNING_VIDEO_PLAY_LAG: return 4104;
      default: return 0;
    }
  }
}

extension TXEAVRoomEventIDFromX on int {
  TXEAVRoomEventID toTXEAVRoomEventID() {
    switch (this) {
      case 1001: return TXEAVRoomEventID.AVROOM_EVT_REQUEST_IP_SUCC;
      case 1002: return TXEAVRoomEventID.AVROOM_EVT_CONNECT_SUCC;
      case 1003: return TXEAVRoomEventID.AVROOM_EVT_ENTER_ROOM_SUCC;
      case 1004: return TXEAVRoomEventID.AVROOM_EVT_EXIT_ROOM_SUCC;
      case 1005: return TXEAVRoomEventID.AVROOM_EVT_REQUEST_AVSEAT_SUCC;
      case -1001: return TXEAVRoomEventID.AVROOM_ERR_REQUEST_IP_FAIL;
      case -1002: return TXEAVRoomEventID.AVROOM_ERR_CONNECT_FAILE;
      case -1003: return TXEAVRoomEventID.AVROOM_ERR_ENTER_ROOM_FAIL;
      case -1004: return TXEAVRoomEventID.AVROOM_ERR_EXIT_ROOM_FAIL;
      case -1005: return TXEAVRoomEventID.AVROOM_ERR_REQUEST_AVSEAT_FAIL;
      case 2001: return TXEAVRoomEventID.AVROOM_WARNING_DISCONNECT;
      case 2002: return TXEAVRoomEventID.AVROOM_WARNING_RECONNECT;
      case 2003: return TXEAVRoomEventID.AVROOM_WARNING_NET_BUSY;
      case 3001: return TXEAVRoomEventID.AVROOM_EVT_OPEN_CAMERA_SUCC;
      case 3002: return TXEAVRoomEventID.AVROOM_EVT_START_VIDEO_ENCODER;
      case 3003: return TXEAVRoomEventID.AVROOM_EVT_UP_CHANGE_RESOLUTION;
      case 3004: return TXEAVRoomEventID.AVROOM_EVT_UP_CHANGE_BITRATE;
      case 3005: return TXEAVRoomEventID.AVROOM_EVT_FIRST_FRAME_AVAILABLE;
      case 3101: return TXEAVRoomEventID.AVROOM_WARNING_HW_ACCELERATION_ENCODE_FAIL;
      case -3001: return TXEAVRoomEventID.AVROOM_ERR_OPEN_CAMERA_FAIL;
      case -3002: return TXEAVRoomEventID.AVROOM_ERR_OPEN_MIC_FAIL;
      case -3003: return TXEAVRoomEventID.AVROOM_ERR_VIDEO_ENCODE_FAIL;
      case -3004: return TXEAVRoomEventID.AVROOM_ERR_AUDIO_ENCODE_FAIL;
      case -3005: return TXEAVRoomEventID.AVROOM_ERR_UNSUPPORTED_RESOLUTION;
      case -3006: return TXEAVRoomEventID.AVROOM_ERR_UNSUPPORTED_SAMPLERATE;
      case 4001: return TXEAVRoomEventID.AVROOM_EVT_RCV_FIRST_I_FRAME;
      case 4002: return TXEAVRoomEventID.AVROOM_EVT_PLAY_BEGIN;
      case 4003: return TXEAVRoomEventID.AVROOM_EVT_PLAY_LOADING;
      case 4004: return TXEAVRoomEventID.AVROOM_EVT_START_VIDEO_DECODER;
      case 4005: return TXEAVRoomEventID.AVROOM_EVT_DOWN_CHANGE_RESOLUTION;
      case 4101: return TXEAVRoomEventID.AVROOM_WARNING_VIDEO_DECODE_FAIL;
      case 4102: return TXEAVRoomEventID.AVROOM_WARNING_AUDIO_DECODE_FAIL;
      case 4103: return TXEAVRoomEventID.AVROOM_WARNING_HW_ACCELERATION_DECODE_FAIL;
      case 4104: return TXEAVRoomEventID.AVROOM_WARNING_VIDEO_PLAY_LAG;
      default: return TXEAVRoomEventID.values[this + 1001];
    }
  }
}