Skip to content

Commit

Permalink
add desription, backward-compatible constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Strandenæs committed Aug 8, 2019
1 parent 05e17b1 commit 60a9852
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Details about a Residence, and may be joined with Residence to retrieve the core
|bruksenhet|String|no||
|andelsnummer|String|no||
|heftelser|List|no||
|callToAction|[ExternalLink](#boligdetaljerexternallink)|no||
|callToAction|[ExternalLink](#boligdetaljerexternallink)|no|An optional ExternalLink prompting the user to perform an action on an external site|

### Boligdetaljer.Residence

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,16 @@ public class Boligdetaljer implements DataType {

@XmlElement
@Valid
@Description("An optional ExternalLink prompting the user to perform an action on an external site")
ExternalLink callToAction;

public Boligdetaljer(Residence residence, List<Hjemmelshaver> hjemmelshavere, Integer bruksareal, Integer antallOppholdsrom,
Integer antallBaderom, List<Omsetningshistorikk> omsetningshistorikk, String organisasjonsnummer, String bruksenhet,
String andelsnummer, List<Heftelse> heftelser) {
this(residence, hjemmelshavere, bruksareal, antallOppholdsrom, antallBaderom, omsetningshistorikk, organisasjonsnummer,
bruksenhet, andelsnummer, heftelser, null);
}

public static Boligdetaljer EXAMPLE = new Boligdetaljer(Residence.EXAMPLE,
Collections.singletonList(new Hjemmelshaver("Gunnar Gunnersen", "[email protected]")),
59, 3, 4,
Expand Down

0 comments on commit 60a9852

Please sign in to comment.