import 'package:absenkuv3/Repository/Model/mFace.dart';
import 'package:dio/dio.dart';
import '../../Setting/Header.dart';
import 'serviceInfo.dart';

class FaceRecognitionApi {
  Dio dio = ServerInfo().getConnection();

  Future<FaceRegistrationInfoRespon> getDataPeringatanRegistrasi() async {
    var respon = await dio.get("face/regis-info", options: Options(headers: await Header().getHeader()));
    if (respon.statusCode == 200) {
      // print(respon);
      return faceRegistrationInfoResponFromJson(respon.data);
    } else {
      return FaceRegistrationInfoRespon(success: false);
    }
  }
}
