diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2014-09-27 11:05:43 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2014-09-27 11:05:43 -0700 |
commit | bdf47fc7340ec2a3ecaa6b11bbf87f0f5eaaeea1 (patch) | |
tree | b0faa7efb72587f99cd742caffcfb00d3f625cd9 /src/com/p4square/f1oauth/Attribute.java | |
parent | 8fa4f1fb4f122ee1e27c6015479bcd883b4b0671 (diff) |
Adding support to fetch attributes for a user.
Diffstat (limited to 'src/com/p4square/f1oauth/Attribute.java')
-rw-r--r-- | src/com/p4square/f1oauth/Attribute.java | 36 |
1 files changed, 33 insertions, 3 deletions
diff --git a/src/com/p4square/f1oauth/Attribute.java b/src/com/p4square/f1oauth/Attribute.java index cc7cfc4..64f2507 100644 --- a/src/com/p4square/f1oauth/Attribute.java +++ b/src/com/p4square/f1oauth/Attribute.java @@ -12,11 +12,41 @@ import java.util.Date; * @author Jesse Morgan <jesse@jesterpm.net> */ public class Attribute { + private final String mAttributeName; + private String mId; private Date mStartDate; private Date mEndDate; private String mComment; /** + * @param name The attribute name. + */ + public Attribute(final String name) { + mAttributeName = name; + } + + /** + * @return the Attribute name. + */ + public String getAttributeName() { + return mAttributeName; + } + + /** + * @return the id of this specific attribute instance. + */ + public String getId() { + return mId; + } + + /** + * Set the attribute id to id. + */ + public void setId(final String id) { + mId = id; + } + + /** * @return the start date for the attribute. */ public Date getStartDate() { @@ -26,7 +56,7 @@ public class Attribute { /** * Set the start date for the attribute. */ - public void setStartDate(Date date) { + public void setStartDate(final Date date) { mStartDate = date; } @@ -40,7 +70,7 @@ public class Attribute { /** * Set the end date for the attribute. */ - public void setEndDate(Date date) { + public void setEndDate(final Date date) { mEndDate = date; } @@ -54,7 +84,7 @@ public class Attribute { /** * Set the comment on the attribute. */ - public void setComment(String comment) { + public void setComment(final String comment) { mComment = comment; } } |