@Test public void getMinimumFetchIntervalInSeconds_isNotSet_returnsDefault() { assertThat(metadataClient.getMinimumFetchIntervalInSeconds()) .isEqualTo(DEFAULT_MINIMUM_FETCH_INTERVAL_IN_SECONDS); }
public long getMinimumFetchIntervalInSeconds() { return frcMetadata.getLong( MINIMUM_FETCH_INTERVAL_IN_SECONDS_KEY, DEFAULT_MINIMUM_FETCH_INTERVAL_IN_SECONDS); }
ConfigMetadataClient { public long getMinimumFetchIntervalInSeconds() { return frcMetadata.getLong( MINIMUM_FETCH_INTERVAL_IN_SECONDS_KEY, DEFAULT_MINIMUM_FETCH_INTERVAL_IN_SECONDS); } }
ConfigMetadataClient { public long getMinimumFetchIntervalInSeconds() { return frcMetadata.getLong( MINIMUM_FETCH_INTERVAL_IN_SECONDS_KEY, DEFAULT_MINIMUM_FETCH_INTERVAL_IN_SECONDS); } ConfigMetadataClient(SharedPreferences frcMetadata); }
ConfigMetadataClient { public long getMinimumFetchIntervalInSeconds() { return frcMetadata.getLong( MINIMUM_FETCH_INTERVAL_IN_SECONDS_KEY, DEFAULT_MINIMUM_FETCH_INTERVAL_IN_SECONDS); } ConfigMetadataClient(SharedPreferences frcMetadata); boolean isDeveloperModeEnabled(); long getFetchTimeoutInSeconds(); long getMinimumFetchIntervalInSeconds(); FirebaseRemoteConfigInfo getInfo(); @WorkerThread void clear(); @WorkerThread void setConfigSettings(FirebaseRemoteConfigSettings settings); void setConfigSettingsWithoutWaitingOnDiskWrite(FirebaseRemoteConfigSettings settings); }
ConfigMetadataClient { public long getMinimumFetchIntervalInSeconds() { return frcMetadata.getLong( MINIMUM_FETCH_INTERVAL_IN_SECONDS_KEY, DEFAULT_MINIMUM_FETCH_INTERVAL_IN_SECONDS); } ConfigMetadataClient(SharedPreferences frcMetadata); boolean isDeveloperModeEnabled(); long getFetchTimeoutInSeconds(); long getMinimumFetchIntervalInSeconds(); FirebaseRemoteConfigInfo getInfo(); @WorkerThread void clear(); @WorkerThread void setConfigSettings(FirebaseRemoteConfigSettings settings); void setConfigSettingsWithoutWaitingOnDiskWrite(FirebaseRemoteConfigSettings settings); @VisibleForTesting static final long LAST_FETCH_TIME_IN_MILLIS_NO_FETCH_YET; }