summaryrefslogtreecommitdiff
path: root/src/main/java/com/p4square/ccbapi/model/Reference.java
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2018-07-14 12:13:04 -0700
committerJesse Morgan <jesse@jesterpm.net>2018-07-14 12:13:04 -0700
commit808c6323049c1efff52f20d872813f86e21c5b37 (patch)
treeacf7ec4000631e5fa7d5d9a8155367070c23fffa /src/main/java/com/p4square/ccbapi/model/Reference.java
parent35887b81ac23a389f123df529e45fd9c49ce7459 (diff)
parent633d0cebff548b6a54ac33e464447d93e800bf12 (diff)
Merge branch 'groups-api'
Diffstat (limited to 'src/main/java/com/p4square/ccbapi/model/Reference.java')
-rw-r--r--src/main/java/com/p4square/ccbapi/model/Reference.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/main/java/com/p4square/ccbapi/model/Reference.java b/src/main/java/com/p4square/ccbapi/model/Reference.java
new file mode 100644
index 0000000..5ac9800
--- /dev/null
+++ b/src/main/java/com/p4square/ccbapi/model/Reference.java
@@ -0,0 +1,34 @@
+package com.p4square.ccbapi.model;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlValue;
+
+/**
+ * Generic reference to a id and name.
+ */
+@XmlAccessorType(XmlAccessType.NONE)
+public class Reference {
+ @XmlAttribute(name="id")
+ private int id;
+
+ @XmlValue
+ private String name;
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}