// 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/ios/ios.export.g.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';

import 'package:foundation_fluttify/foundation_fluttify.dart';

class TXPlayerAuthParams extends NSObject  {
  //region constants
  static const String name__ = 'TXPlayerAuthParams';

  
  //endregion

  //region creators
  static Future<TXPlayerAuthParams> create__({ bool init = true /* ios only */ }) async {
    final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXPlayerAuthParams', {'init': init});
    final object = TXPlayerAuthParams()..refId = refId..tag__ = 'tencent_live_fluttify';
    return object;
  }
  
  static Future<List<TXPlayerAuthParams>> create_batch__(int length, { bool init = true /* ios only */ }) async {
    if (false) {
      return Future.error('all args must have same length!');
    }
    final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXPlayerAuthParams', {'length': length, 'init': init});
  
    final List<TXPlayerAuthParams> typedResult = resultBatch.map((result) => TXPlayerAuthParams()..refId = result..tag__ = 'tencent_live_fluttify').toList();
    return typedResult;
  }
  
  //endregion

  //region getters
  Future<int> get_appId() async {
    final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_appId", {'__this__': this});
    return __result__ == null ? null : (__result__);
  }
  
  Future<String> get_fileId() async {
    final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_fileId", {'__this__': this});
    return __result__ == null ? null : (__result__);
  }
  
  Future<String> get_timeout() async {
    final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_timeout", {'__this__': this});
    return __result__ == null ? null : (__result__);
  }
  
  Future<int> get_exper() async {
    final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_exper", {'__this__': this});
    return __result__ == null ? null : (__result__);
  }
  
  Future<String> get_us() async {
    final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_us", {'__this__': this});
    return __result__ == null ? null : (__result__);
  }
  
  Future<String> get_sign() async {
    final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_sign", {'__this__': this});
    return __result__ == null ? null : (__result__);
  }
  
  Future<bool> get_https() async {
    final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_https", {'__this__': this});
    return __result__ == null ? null : (__result__);
  }
  
  //endregion

  //region setters
  Future<void> set_appId(int appId) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXPlayerAuthParams::set_appId', <String, dynamic>{'__this__': this, "appId": appId});
  
  
  }
  
  Future<void> set_fileId(String fileId) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXPlayerAuthParams::set_fileId', <String, dynamic>{'__this__': this, "fileId": fileId});
  
  
  }
  
  Future<void> set_timeout(String timeout) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXPlayerAuthParams::set_timeout', <String, dynamic>{'__this__': this, "timeout": timeout});
  
  
  }
  
  Future<void> set_exper(int exper) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXPlayerAuthParams::set_exper', <String, dynamic>{'__this__': this, "exper": exper});
  
  
  }
  
  Future<void> set_us(String us) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXPlayerAuthParams::set_us', <String, dynamic>{'__this__': this, "us": us});
  
  
  }
  
  Future<void> set_sign(String sign) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXPlayerAuthParams::set_sign', <String, dynamic>{'__this__': this, "sign": sign});
  
  
  }
  
  Future<void> set_https(bool https) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXPlayerAuthParams::set_https', <String, dynamic>{'__this__': this, "https": https});
  
  
  }
  
  //endregion

  //region methods
  
  //endregion
}

extension TXPlayerAuthParams_Batch on List<TXPlayerAuthParams> {
  //region getters
  Future<List<int>> get_appId_batch() async {
    final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_appId_batch", [for (final __item__ in this) {'__this__': __item__}]);
  
    final typedResult = (resultBatch as List).cast<int>().map((__result__) => __result__).toList();
    return typedResult;
  }
  
  Future<List<String>> get_fileId_batch() async {
    final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_fileId_batch", [for (final __item__ in this) {'__this__': __item__}]);
  
    final typedResult = (resultBatch as List).cast<String>().map((__result__) => __result__).toList();
    return typedResult;
  }
  
  Future<List<String>> get_timeout_batch() async {
    final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_timeout_batch", [for (final __item__ in this) {'__this__': __item__}]);
  
    final typedResult = (resultBatch as List).cast<String>().map((__result__) => __result__).toList();
    return typedResult;
  }
  
  Future<List<int>> get_exper_batch() async {
    final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_exper_batch", [for (final __item__ in this) {'__this__': __item__}]);
  
    final typedResult = (resultBatch as List).cast<int>().map((__result__) => __result__).toList();
    return typedResult;
  }
  
  Future<List<String>> get_us_batch() async {
    final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_us_batch", [for (final __item__ in this) {'__this__': __item__}]);
  
    final typedResult = (resultBatch as List).cast<String>().map((__result__) => __result__).toList();
    return typedResult;
  }
  
  Future<List<String>> get_sign_batch() async {
    final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_sign_batch", [for (final __item__ in this) {'__this__': __item__}]);
  
    final typedResult = (resultBatch as List).cast<String>().map((__result__) => __result__).toList();
    return typedResult;
  }
  
  Future<List<bool>> get_https_batch() async {
    final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXPlayerAuthParams::get_https_batch", [for (final __item__ in this) {'__this__': __item__}]);
  
    final typedResult = (resultBatch as List).cast<bool>().map((__result__) => __result__).toList();
    return typedResult;
  }
  
  //endregion

  //region setters
  Future<void> set_appId_batch(List<int> appId) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXPlayerAuthParams::set_appId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "appId": appId[__i__]}]);
  
  
  }
  
  Future<void> set_fileId_batch(List<String> fileId) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXPlayerAuthParams::set_fileId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "fileId": fileId[__i__]}]);
  
  
  }
  
  Future<void> set_timeout_batch(List<String> timeout) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXPlayerAuthParams::set_timeout_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "timeout": timeout[__i__]}]);
  
  
  }
  
  Future<void> set_exper_batch(List<int> exper) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXPlayerAuthParams::set_exper_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "exper": exper[__i__]}]);
  
  
  }
  
  Future<void> set_us_batch(List<String> us) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXPlayerAuthParams::set_us_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "us": us[__i__]}]);
  
  
  }
  
  Future<void> set_sign_batch(List<String> sign) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXPlayerAuthParams::set_sign_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "sign": sign[__i__]}]);
  
  
  }
  
  Future<void> set_https_batch(List<bool> https) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXPlayerAuthParams::set_https_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "https": https[__i__]}]);
  
  
  }
  
  //endregion

  //region methods
  
  //endregion
}