// 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 TXDownloadError {
  TXDownloadSuccess /* 0 */,
  TXDownloadAuthFaild /* -5001 */,
  TXDownloadNoFile /* -5003 */,
  TXDownloadFormatError /* -5004 */,
  TXDownloadDisconnet /* -5005 */,
  TXDownloadHlsKeyError /* -5006 */,
  TXDownloadPathError /* -5007 */
}

extension TXDownloadErrorToX on TXDownloadError {
  int toValue() {
    switch (this) {
      case TXDownloadError.TXDownloadSuccess: return 0;
      case TXDownloadError.TXDownloadAuthFaild: return -5001;
      case TXDownloadError.TXDownloadNoFile: return -5003;
      case TXDownloadError.TXDownloadFormatError: return -5004;
      case TXDownloadError.TXDownloadDisconnet: return -5005;
      case TXDownloadError.TXDownloadHlsKeyError: return -5006;
      case TXDownloadError.TXDownloadPathError: return -5007;
      default: return 0;
    }
  }
}

extension TXDownloadErrorFromX on int {
  TXDownloadError toTXDownloadError() {
    switch (this) {
      case 0: return TXDownloadError.TXDownloadSuccess;
      case -5001: return TXDownloadError.TXDownloadAuthFaild;
      case -5003: return TXDownloadError.TXDownloadNoFile;
      case -5004: return TXDownloadError.TXDownloadFormatError;
      case -5005: return TXDownloadError.TXDownloadDisconnet;
      case -5006: return TXDownloadError.TXDownloadHlsKeyError;
      case -5007: return TXDownloadError.TXDownloadPathError;
      default: return TXDownloadError.values[this + 0];
    }
  }
}