/* versioning */
private String musicVersion;
+ private String musicBuild;
/* Data Fields */
private Map<String, HashMap<String, Object>> dataResult;
this.status = status;
}
- /**
+ /**
*
* @return
*/
/**
- *
+ * .
* @return the music version
*/
public String getMusicVersion() {
}
/**
- *
+ * .
* @param version of music
* @return
*/
return this;
}
+ /**
+ * .
+ * @return the music version
+ */
+ public String getMusicBuild() {
+ return this.musicBuild;
+ }
+
+ /**
+ * .
+ * @param build of music
+ * @return
+ */
+ public JsonResponse setMusicBuild(String build) {
+ this.musicBuild = build;
+ return this;
+ }
+
+
public Map<String, HashMap<String, Object>> getDataResult() {
return this.dataResult;
}
public Map<String, Object> toMap() {
Map<String, Object> fullMap = new HashMap<>();
fullMap.put("status", status);
-/*<<<<<<< HEAD
- if (error!=null) {
- fullMap.put("error", error);
+ if (error != null && !"".equals(error)) {
+ fullMap.put("error", error);
}
- if (message!=null) {
- fullMap.put("message", message);
+ if (message != null) {
+ fullMap.put("message", message);
}
-=======*/
- if (error!=null && !"".equals(error)) {fullMap.put("error", error);}
- if (message!=null) {fullMap.put("message", message);}
- if (musicVersion!=null) {
+ if (musicVersion != null) {
fullMap.put("version", musicVersion);
}
- if (dataResult!=null) {
+ if (musicBuild != null) {
+ fullMap.put("build", musicBuild);
+ }
+
+ if (dataResult != null) {
fullMap.put("result", dataResult);
}
- if (lock!=null) {
+ if (lock != null) {
Map<String, Object> lockMap = new HashMap<>();
- if (lock!=null) {
+ if (lock != null) {
lockMap.put("lock", lock);
}
- if (lockStatus!=null) {
+ if (lockStatus != null) {
lockMap.put("lock-status", lockStatus);
}
- if (lockHolder!=null) {
+ if (lockHolder != null) {
lockMap.put("lock-holder", lockHolder);
}
- if (lockLease!=null) {
+ if (lockLease != null) {
lockMap.put("lock-lease", lockLease);
}
fullMap.put("lock", lockMap);