import 'package:diplomaticquarterapp/config/config.dart';
import 'package:diplomaticquarterapp/core/service/base_service.dart';

class TermsConditionsService extends BaseService {

  String userAgreementContent = "";

  Future getUserTermsAndConditions() async {
    hasError = false;
    await baseAppClient.post(GET_USER_TERMS,
        onSuccess: (dynamic response, int statusCode) {
          userAgreementContent = response['UserAgreementContent'];
        }, onFailure: (String error, int statusCode) {
          hasError = true;
          super.error = error;
        }, body: Map<String, dynamic>());
  }
}