commonGetMobileNetworksWithHttpInfo method

Future<Response> commonGetMobileNetworksWithHttpInfo({
  1. String? countryCode,
  2. String? mcc,
  3. Future<void>? abortTrigger,
})

List mobile networks

Lists mobile network codes (MCC/MNC) with their operator, country and calling code. Returns { items } ordered by mcc then mnc, without paging. Optional filters: countryCode (ISO 3166-1 alpha-2, either case) and mcc (3 digits); both together return the networks matching both. A malformed filter or an unknown query parameter returns 400 with code 10001.

Note: This method returns the HTTP Response.

Parameters:

  • String countryCode: Only networks of this country: an ISO 3166-1 alpha-2 code, in either case.

  • String mcc: Only networks with this 3-digit mobile country code, for example 400.

Implementation

Future<Response> commonGetMobileNetworksWithHttpInfo({ String? countryCode, String? mcc, Future<void>? abortTrigger, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/b2b/common/mccmnc';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (countryCode != null) {
    queryParams.addAll(_queryParams('', 'countryCode', countryCode));
  }
  if (mcc != null) {
    queryParams.addAll(_queryParams('', 'mcc', mcc));
  }

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
    abortTrigger: abortTrigger,
  );
}