Package 

Class SecureDateProvider

  • 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

    • Method Summary

      Modifier and Type Method Description
      Date getDate() Method used to obtain the real date based on the server dateif the server date was sync
      boolean isSecureDateAvailable() Method used to know if the date is sync with the server
      void initServerDate(Date pServerDate) Method used to init the server date
      BatchDate getCurrentDate()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SecureDateProvider

        SecureDateProvider()
    • 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