Skip to content

Commit

Permalink
Last modified parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieSinn committed Jul 24, 2024
1 parent 9a0269b commit 73e4d59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public interface IDevCycleApi {
*/
@Headers({"Content-Type:application/json"})
@GET("config/v1/server/{sdkToken}.json")
Call<ProjectConfig> getConfig(@Path("sdkToken") String sdkToken, @Header("If-None-Match") String etag);
Call<ProjectConfig> getConfig(@Path("sdkToken") String sdkToken, @Header("If-None-Match") String etag, @Header("If-Modified-Since") String lastModified);

/**
* Post events to DevCycle for user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public boolean isConfigInitialized() {
}

private ProjectConfig getConfig() throws DevCycleException {
Call<ProjectConfig> config = this.configApiClient.getConfig(this.sdkKey, this.configETag);
Call<ProjectConfig> config = this.configApiClient.getConfig(this.sdkKey, this.configETag, this.configLastModified);
this.config = getResponseWithRetries(config, 1);
return this.config;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public Call<DevCycleResponse> track(DevCycleUserAndEvents userAndEvents, Boolean
}

@Override
public Call<ProjectConfig> getConfig(String sdkToken, String etag) {
public Call<ProjectConfig> getConfig(String sdkToken, String etag, String lastModified) {
// TODO Auto-generated method stub
return null;
}
Expand Down

0 comments on commit 73e4d59

Please sign in to comment.