// 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.
//////////////////////////////////////////////////////////

import 'dart:typed_data';

import 'package:tencent_live_fluttify/src/android/android.export.g.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';

import 'package:foundation_fluttify/foundation_fluttify.dart';

class com_tencent_rtmp_sharp_jni_TraeAudioCodecList_CodecInfo extends java_lang_Object  {
  //region constants
  static const String name__ = 'com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo';

  
  //endregion

  //region creators
  
  //endregion

  //region getters
  Future<int> get_sessionId() async {
    final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::get_sessionId", {'__this__': this});
    return __result__ == null ? null : (__result__);
  }
  
  Future<com_tencent_rtmp_sharp_jni_AudioDecoder> get_audioDecoder() async {
    final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::get_audioDecoder", {'__this__': this});
    return __result__ == null ? null : (com_tencent_rtmp_sharp_jni_AudioDecoder()..refId = __result__..tag__ = 'tencent_live_fluttify');
  }
  
  Future<Uint8List> get__tempBufdec() async {
    final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::get__tempBufdec", {'__this__': this});
    return __result__ == null ? null : (__result__ as Uint8List);
  }
  
  //endregion

  //region setters
  Future<void> set_sessionId(int sessionId) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::set_sessionId', <String, dynamic>{'__this__': this, "sessionId": sessionId});
  
  
  }
  
  Future<void> set_audioDecoder(com_tencent_rtmp_sharp_jni_AudioDecoder audioDecoder) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::set_audioDecoder', <String, dynamic>{'__this__': this, "audioDecoder": audioDecoder});
  
  
  }
  
  Future<void> set__tempBufdec(Uint8List _tempBufdec) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::set__tempBufdec', <String, dynamic>{'__this__': this, "_tempBufdec": _tempBufdec});
  
  
  }
  
  //endregion

  //region methods
  
  //endregion
}

extension com_tencent_rtmp_sharp_jni_TraeAudioCodecList_CodecInfo_Batch on List<com_tencent_rtmp_sharp_jni_TraeAudioCodecList_CodecInfo> {
  //region getters
  Future<List<int>> get_sessionId_batch() async {
    final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::get_sessionId_batch", [for (final __item__ in this) {'__this__': __item__}]);
  
    final typedResult = (resultBatch as List).cast<int>().map((__result__) => __result__).toList();
    return typedResult;
  }
  
  Future<List<com_tencent_rtmp_sharp_jni_AudioDecoder>> get_audioDecoder_batch() async {
    final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::get_audioDecoder_batch", [for (final __item__ in this) {'__this__': __item__}]);
  
    final typedResult = (resultBatch as List).cast<String>().map((__result__) => com_tencent_rtmp_sharp_jni_AudioDecoder()..refId = __result__..tag__ = 'tencent_live_fluttify').toList();
    return typedResult;
  }
  
  Future<List<Uint8List>> get__tempBufdec_batch() async {
    final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::get__tempBufdec_batch", [for (final __item__ in this) {'__this__': __item__}]);
  
    final typedResult = (resultBatch as List).cast<Uint8List>().map((__result__) => __result__ as Uint8List).toList();
    return typedResult;
  }
  
  //endregion

  //region setters
  Future<void> set_sessionId_batch(List<int> sessionId) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::set_sessionId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "sessionId": sessionId[__i__]}]);
  
  
  }
  
  Future<void> set_audioDecoder_batch(List<com_tencent_rtmp_sharp_jni_AudioDecoder> audioDecoder) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::set_audioDecoder_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "audioDecoder": audioDecoder[__i__]}]);
  
  
  }
  
  Future<void> set__tempBufdec_batch(List<Uint8List> _tempBufdec) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('com.tencent.rtmp.sharp.jni.TraeAudioCodecList.CodecInfo::set__tempBufdec_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "_tempBufdec": _tempBufdec[__i__]}]);
  
  
  }
  
  //endregion

  //region methods
  
  //endregion
}