ping method

  1. @override
Future ping()
override

api service check ping

Implementation

@override
Future<dynamic> ping() async {
  ApiResponse<EncApiRet> apiRegResp = await DtbLinkNet.instance.request(
    method: Method.get,
    path: "/ping",
    prefix: "ping req",
    fromJson: (dynamic ret) => EncApiRet.fromJson(ret),
    timeOut: const Duration(seconds: 20),
  );
  return apiRegResp.ret;
}