// 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 TXJoinerResultCode {
  JOINER_RESULT_OK /* 0 */,
  JOINER_RESULT_FAILED /* -1 */,
  JOINER_RESULT_LICENCE_VERIFICATION_FAILED /* -5 */
}

extension TXJoinerResultCodeToX on TXJoinerResultCode {
  int toValue() {
    switch (this) {
      case TXJoinerResultCode.JOINER_RESULT_OK: return 0;
      case TXJoinerResultCode.JOINER_RESULT_FAILED: return -1;
      case TXJoinerResultCode.JOINER_RESULT_LICENCE_VERIFICATION_FAILED: return -5;
      default: return 0;
    }
  }
}

extension TXJoinerResultCodeFromX on int {
  TXJoinerResultCode toTXJoinerResultCode() {
    switch (this) {
      case 0: return TXJoinerResultCode.JOINER_RESULT_OK;
      case -1: return TXJoinerResultCode.JOINER_RESULT_FAILED;
      case -5: return TXJoinerResultCode.JOINER_RESULT_LICENCE_VERIFICATION_FAILED;
      default: return TXJoinerResultCode.values[this + 0];
    }
  }
}