-
- All Implemented Interfaces:
-
com.batch.android.core.DateProvider
public class SecureDateProvider implements DateProvider
Class used to get the real time based of the server sync date
-
-
Constructor Summary
Constructors Constructor Description SecureDateProvider()
-
Method Summary
Modifier and Type Method Description DategetDate()Method used to obtain the real date based on the server dateif the server date was sync booleanisSecureDateAvailable()Method used to know if the date is sync with the server voidinitServerDate(Date pServerDate)Method used to init the server date BatchDategetCurrentDate()-
-
Method Detail
-
getDate
Date getDate()
Method used to obtain the real date based on the server dateif the server date was sync
-
isSecureDateAvailable
boolean isSecureDateAvailable()
Method used to know if the date is sync with the server
-
initServerDate
void initServerDate(Date pServerDate)
Method used to init the server date
- Parameters:
pServerDate- the sync server date
-
getCurrentDate
@NonNull() BatchDate getCurrentDate()
-
-
-
-