Skip to content

Commit

Permalink
Change the county constructor back and add overload it for districts.
Browse files Browse the repository at this point in the history
  • Loading branch information
GraylinKim committed Sep 25, 2012
1 parent 0b1bed9 commit 95f8c47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ else if (!result.status_code.equals("0"))
}
dr.setAssembly(new Assembly(address.assembly_code+""));
dr.setCongressional(new Congressional(address.congressional_code+""));
dr.setCounty(new County(address.county_code+""));
dr.setCounty(new County(null,address.county_code+""));
dr.setElection(new Election(address.election_code+""));
dr.setLat(address.latitude);
dr.setLon(address.longitude);
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/gov/nysenate/sage/model/districts/County.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ public County() {

}

public County(String district) {
public County(String countyName) {
this.countyName = countyName;
}

public County(String countyName, String district) {
this.countyName = countyName;
this.district = district;
}

Expand Down

0 comments on commit 95f8c47

Please sign in to comment.