Skip to content

Commit

Permalink
Merge pull request #64 from DP-3T/feature/add-countries
Browse files Browse the repository at this point in the history
List of Countries
  • Loading branch information
ubamrein committed Jul 29, 2020
2 parents 57bb769 + e4ec840 commit 7d9b4cb
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

package org.dpppt.switzerland.backend.sdk.config.ws.model;

import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class ConfigResponse {

private boolean forceUpdate = false;
Expand All @@ -21,6 +25,14 @@ public class ConfigResponse {
private GAENSDKConfig iOSGaenSdkConfig = new GAENSDKConfig();
private GAENSDKConfig androidGaenSdkConfig = new GAENSDKConfig();

private List<Country> supportedCountries = Stream.of(new Country("DE"),
new Country("IT"),
new Country("AT"),
new Country("DK"),
new Country("IE"),
new Country("LV"),
new Country("PT")).collect(Collectors.toList());

public boolean isForceUpdate() {
return forceUpdate;
}
Expand Down Expand Up @@ -68,4 +80,12 @@ public GAENSDKConfig getAndroidGaenSdkConfig() {
public void setAndroidGaenSdkConfig(GAENSDKConfig androidGaenSdkConfig) {
this.androidGaenSdkConfig = androidGaenSdkConfig;
}

public List<Country> getSupportedCountries() {
return supportedCountries;
}

public void setSupportedCountries(List<Country> supportedCountries) {
this.supportedCountries = supportedCountries;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package org.dpppt.switzerland.backend.sdk.config.ws.model;

public class Country {
private String isoCountryCode;

public Country(){
this.isoCountryCode = "";
}
public Country(String isoCountryCode) {
this.isoCountryCode = isoCountryCode;
}

public String getIsoCountryCode() {
return isoCountryCode;
}

public void setIsoCountryCode(String isoCountryCode) {
this.isoCountryCode = isoCountryCode;
}
}

0 comments on commit 7d9b4cb

Please sign in to comment.