diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2018-07-08 09:34:59 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2018-07-08 09:34:59 -0700 |
commit | 151f74ffa870561bbb3c857c0f07aeb4b27968f5 (patch) | |
tree | fc81aefe1330750c9fcfef28f38d2c938b792cd4 /src/main/java/com/p4square/ccbapi/model/Reference.java | |
parent | 35887b81ac23a389f123df529e45fd9c49ce7459 (diff) |
Add Groups Service APIs
Diffstat (limited to 'src/main/java/com/p4square/ccbapi/model/Reference.java')
-rw-r--r-- | src/main/java/com/p4square/ccbapi/model/Reference.java | 34 |
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; + } +} |