GetServerSyncGracePeriodExpiryDate static method

int GetServerSyncGracePeriodExpiryDate()

Returns the server sync grace period expiry date timestamp.

The function throws a LexActivatorException on error.

Implementation

static int GetServerSyncGracePeriodExpiryDate() {
  final expiryDate = calloc<Uint32>();
  int status = _lexActivatorNative.GetServerSyncGracePeriodExpiryDate(
    expiryDate,
  );
  if (LexStatusCodes.LA_OK != status) {
    throw LexActivatorException(status);
  }
  return expiryDate.value;
}