You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
985 B
Dart
28 lines
985 B
Dart
import 'dart:async';
|
|
|
|
import 'package:hmg_nurses/api/api_client.dart';
|
|
import 'package:hmg_nurses/app_state/app_state.dart';
|
|
import 'package:hmg_nurses/classes/consts.dart';
|
|
|
|
|
|
class LoginApiClient {
|
|
static final LoginApiClient _instance = LoginApiClient._internal();
|
|
|
|
LoginApiClient._internal();
|
|
|
|
factory LoginApiClient() => _instance;
|
|
|
|
// Future<GetMobileLoginInfoListModel?> getMobileLoginInfoNEW(String deviceToken, String deviceType) async {
|
|
// String url = "${ApiConsts.erpRest}Mohemm_GetMobileLoginInfo_NEW";
|
|
// Map<String, dynamic> postParams = {};
|
|
// postParams["DeviceToken"] = deviceToken;
|
|
// postParams["DeviceType"] = deviceType;
|
|
// return await ApiClient().postJsonForObject((json) {
|
|
// GenericResponseModel? responseData = GenericResponseModel.fromJson(json);
|
|
// return (responseData.mohemmGetMobileLoginInfoList?.length ?? 0) > 0 ? (responseData.mohemmGetMobileLoginInfoList!.first) : null;
|
|
// }, url, postParams);
|
|
// }
|
|
|
|
|
|
}
|