import '../../../networks_sdk.dart';
import 'networks_sdk_core.dart';

/// SDK API Implementation
class NetworksSdkApiImpl implements NetworksSdkApi {
  final NetworksSdkCore _core;

  NetworksSdkApiImpl({required NetworksSdkCore core}) : _core = core;

  @override
  Future<String?> platformVersion() => _core.repo.platformVersion();

  @override
  void initialize(ApiConfig apiConfig) => _core.repo.initialize(apiConfig);

  @override
  Future<T?> executeRequest<T>(ApiRequestable<T> request) => _core.repo.executeRequest(request);

}
