BeetleHRClient class
The BeetleHRClient class is responsible for handling HTTP requests to the Beetle HR API.
Constructors
- BeetleHRClient(String baseUrl, {bool isLog = false, String language = 'id', String? token})
- Creates a new instance of the BeetleHRClient class.
Properties
- attendance → AttendanceBeetleHR
-
Feature Attendance
no setter
- baseUrl ↔ String
-
getter/setter pair
- dio ↔ Dio
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLog ↔ bool
-
getter/setter pair
- language ↔ String
-
getter/setter pair
- notice → NoticeBeetleHR
-
Feature Notice
no setter
- payroll → PayrollBeetlerHR
-
Feature Payroll
no setter
- profile → ProfileBeetleHR
-
Feature Profile
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- token ↔ String?
-
getter/setter pair
Methods
-
checkToken(
) → Future< bool> - check whether the token is available locally or not.
-
getServerStatus(
{BaseUrlSchema schema = BaseUrlSchema.https}) → Future< CheckServerModel> - Retrieves the server status.
-
loginWithEmail(
{required String email, required String password}) → Future< AuthResponseModel> - Logs in with email and password.
-
logout(
) → Future< bool> - Logs out the user by removing the token from shared preferences.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetPasswordEmail(
String email) → Future< bool> - Sends a password reset email.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited