summaryrefslogtreecommitdiff
path: root/src/main/java/com/p4square/ccbapi/model/FamilyPosition.java
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2016-03-19 02:05:33 -0700
committerJesse Morgan <jesse@jesterpm.net>2016-03-19 02:07:24 -0700
commitb9eb1329a6dbec7b75c21d8e0eb13134121db6bb (patch)
treefec73ab32ff625c304513c24e864809845eede1a /src/main/java/com/p4square/ccbapi/model/FamilyPosition.java
Initial commit for the CCB API Client.
The client currently supports the following APIs: * individual_profiles * individual_profile_from_id * individual_profile_from_login_password * individual_profile_from_micr * custom_field_labels
Diffstat (limited to 'src/main/java/com/p4square/ccbapi/model/FamilyPosition.java')
-rw-r--r--src/main/java/com/p4square/ccbapi/model/FamilyPosition.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main/java/com/p4square/ccbapi/model/FamilyPosition.java b/src/main/java/com/p4square/ccbapi/model/FamilyPosition.java
new file mode 100644
index 0000000..ecd1e37
--- /dev/null
+++ b/src/main/java/com/p4square/ccbapi/model/FamilyPosition.java
@@ -0,0 +1,26 @@
+package com.p4square.ccbapi.model;
+
+import javax.xml.bind.annotation.XmlEnumValue;
+
+/**
+ * Enumeration of the supported values for the family_position field of an IndividualProfile.
+ */
+public enum FamilyPosition {
+ @XmlEnumValue("Primary Contact") PRIMARY_CONTACT("h"),
+ @XmlEnumValue("Spouse") SPOUSE("s"),
+ @XmlEnumValue("Child") CHILD("c"),
+ @XmlEnumValue("Other") OTHER("o");
+
+ private final String code;
+
+ FamilyPosition(String code) {
+ this.code = code;
+ }
+
+ /**
+ * @return A one character string representing the enum value.
+ */
+ public String getCode() {
+ return this.code;
+ }
+}