diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2016-03-27 08:02:14 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2016-03-27 08:02:14 -0700 |
commit | 6d987e0dd18ef830484641166a816661f4b16074 (patch) | |
tree | effaccb0a85cebca64e39ea8aa4545d59306cfc6 /src/main/java/com/p4square/ccbapi/model/Country.java | |
parent | f4cb9e6a44c016c0200a9291f25003c72e2551cd (diff) |
Adding the update_individual API
Diffstat (limited to 'src/main/java/com/p4square/ccbapi/model/Country.java')
-rw-r--r-- | src/main/java/com/p4square/ccbapi/model/Country.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/java/com/p4square/ccbapi/model/Country.java b/src/main/java/com/p4square/ccbapi/model/Country.java index e6936a5..ac9e9ec 100644 --- a/src/main/java/com/p4square/ccbapi/model/Country.java +++ b/src/main/java/com/p4square/ccbapi/model/Country.java @@ -16,6 +16,30 @@ public class Country { private String name; /** + * Default Country constructor. + */ + public Country() { + + } + + /** + * This package-private Country constructor is used to create the + * constants in the {@link Countries} class. + * + * Usually the country name cannot be set except when binding to + * responses from CCB. This constructor is an exception so that the + * constants in {@link Countries} can be provide with + * <strong>known</strong> values used by CCB. + * + * @param code The two letter country code. + * @param name The country name as typically presented by CCB. + */ + Country(final String code, final String name) { + setCountryCode(code); + this.name = name; + } + + /** * @return The two letter country code. */ public String getCountryCode() { |