summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTarun Gupta <tarun1995gupta@gmail.com>2015-06-10 18:32:35 (GMT)
committerTarun Gupta <tarun1995gupta@gmail.com>2015-06-16 19:11:04 (GMT)
commitb2a8ac9a0387a9a5e75e31f7704e62ac077faba4 (patch)
tree633f0aa33043bef9db2f677d6b0874552562db75 /src/com/isode/stroke/elements
parent2180f81bd45045021d98c3a2e0649f10680596f9 (diff)
downloadstroke-b2a8ac9a0387a9a5e75e31f7704e62ac077faba4.zip
stroke-b2a8ac9a0387a9a5e75e31f7704e62ac077faba4.tar.bz2
Add the UserTune Element.
Adds UserTune Element, its parser and Serializer. License: This patch is BSD-licensed, see Documentation/Licenses/BSD-simplified.txt for details. Test-Information: Tests added for UserTune Parser and UserTune Serializer. Change-Id: I3330d8493c79c2305de426827b5018b68d5b8e1b
Diffstat (limited to 'src/com/isode/stroke/elements')
-rw-r--r--src/com/isode/stroke/elements/UserTune.java130
1 files changed, 130 insertions, 0 deletions
diff --git a/src/com/isode/stroke/elements/UserTune.java b/src/com/isode/stroke/elements/UserTune.java
new file mode 100644
index 0000000..9e651a5
--- /dev/null
+++ b/src/com/isode/stroke/elements/UserTune.java
@@ -0,0 +1,130 @@
+/*
+ * Copyright (c) 2014 Isode Limited.
+ * All rights reserved.
+ * See the COPYING file for more information.
+ */
+/*
+ * Copyright (c) 2015 Tarun Gupta.
+ * Licensed under the simplified BSD license.
+ * See Documentation/Licenses/BSD-simplified.txt for more information.
+ */
+
+package com.isode.stroke.elements;
+
+import com.isode.stroke.elements.Payload;
+
+public class UserTune extends Payload {
+
+ private Integer rating;
+ private String title;
+ private String track;
+ private String artist;
+ private String uri;
+ private String source;
+ private Integer length;
+
+ /**
+ * Default Constructor.
+ */
+ public UserTune() {
+
+ }
+
+ /**
+ * @return rating.
+ */
+ public Integer getRating() {
+ return rating;
+ }
+
+ /**
+ * @param rating.
+ */
+ public void setRating(Integer value) {
+ this.rating = value;
+ }
+
+ /**
+ * @return title.
+ */
+ public String getTitle() {
+ return title;
+ }
+
+ /**
+ * @param title.
+ */
+ public void setTitle(String value) {
+ this.title = value;
+ }
+
+ /**
+ * @return track.
+ */
+ public String getTrack() {
+ return track;
+ }
+
+ /**
+ * @param track.
+ */
+ public void setTrack(String value) {
+ this.track = value;
+ }
+
+ /**
+ * @return artist.
+ */
+ public String getArtist() {
+ return artist;
+ }
+
+ /**
+ * @param artist.
+ */
+ public void setArtist(String value) {
+ this.artist = value;
+ }
+
+ /**
+ * @return URI.
+ */
+ public String getURI() {
+ return uri;
+ }
+
+ /**
+ * @param URI.
+ */
+ public void setURI(String value) {
+ this.uri = value;
+ }
+
+ /**
+ * @return source.
+ */
+ public String getSource() {
+ return source;
+ }
+
+ /**
+ * @param source.
+ */
+ public void setSource(String value) {
+ this.source = value;
+ }
+
+ /**
+ * @return length.
+ */
+ public Integer getLength() {
+ return length;
+ }
+
+ /**
+ * @param length.
+ */
+ public void setLength(Integer value) {
+ this.length = value;
+ }
+}