Permalink
Browse files

Merge pull request #61 from gcheng/jobtaskbugs

add job task links.
  • Loading branch information...
2 parents 1fc20d5 + e2c7980 commit 97545037b63bbc462df613fc57d40f3caeedd223 Albert Cheng committed Dec 13, 2012
@@ -69,10 +69,6 @@
@XmlElement(name = "TemplateId", namespace = Constants.ODATA_DATA_NS)
protected String templateId;
- /** The tasks. */
- @XmlElement(name = "TaskBody", namespace = Constants.ODATA_DATA_NS)
- protected String taskBody;
-
/**
* Gets the id.
*
@@ -273,24 +269,4 @@ public JobType setTemplateId(String templateId) {
return this;
}
- /**
- * Gets the tasks.
- *
- * @return the tasks
- */
- public String getTaskBody() {
- return taskBody;
- }
-
- /**
- * Sets the tasks.
- *
- * @param tasks
- * the new tasks
- */
- public JobType setTaskBody(String taskBody) {
- this.taskBody = taskBody;
- return this;
- }
-
}
@@ -21,6 +21,7 @@
import com.microsoft.windowsazure.services.media.implementation.atom.EntryType;
import com.microsoft.windowsazure.services.media.implementation.content.JobType;
+// TODO: Auto-generated Javadoc
/**
* The Class JobInfo.
*/
@@ -129,16 +130,7 @@ public String getTemplateId() {
}
/**
- * Gets the task body.
- *
- * @return the task body
- */
- public String getTaskBody() {
- return getContent().getTaskBody();
- }
-
- /**
- * Get a link which, when listed, will return the input assets for the job
+ * Get a link which, when listed, will return the input assets for the job.
*
* @return Link if found, null if not.
*/
@@ -147,11 +139,20 @@ public LinkInfo getInputAssetsLink() {
}
/**
- * Get a link which, when listed, will return the output assets for the job
+ * Get a link which, when listed, will return the output assets for the job.
*
* @return Link if found, null if not.
*/
public LinkInfo getOutputAssetsLink() {
return getRelationLink("OutputMediaAssets");
}
+
+ /**
+ * Gets the tasks link.
+ *
+ * @return the tasks link
+ */
+ public LinkInfo getTasksLink() {
+ return getRelationLink("Tasks");
+ }
}

0 comments on commit 9754503

Please sign in to comment.