001package service.tut.pori.twitterjazz;
002
003import javax.xml.bind.annotation.XmlAccessType;
004import javax.xml.bind.annotation.XmlAccessorType;
005import javax.xml.bind.annotation.XmlElement;
006import javax.xml.bind.annotation.XmlRootElement;
007
008import service.tut.pori.contentanalysis.Definitions;
009import service.tut.pori.contentanalysis.PhotoTaskResponse;
010import service.tut.pori.contentanalysis.MediaObjectList;
011
012/**
013 * Response received from an analysis back-end for a summarization task.
014 * 
015 * <h2>Conditional Elements</h2>
016 * <ul>
017 *  <li>{@value service.tut.pori.contentanalysis.Definitions#ELEMENT_PHOTOLIST}</li>
018 *  <li>{@value service.tut.pori.contentanalysis.Definitions#ELEMENT_MEDIA_OBJECTLIST}</li>
019 * </ul>
020 * 
021 * At least one of the conditional elements must be present, and contain valid data.
022 *
023 * <h3>XML Example</h3>
024 * 
025 * {@doc.restlet service="[service.tut.pori.twitterjazz.reference.Definitions#SERVICE_TJ_REFERENCE_EXAMPLE]" method="[service.tut.pori.contentanalysis.Definitions#ELEMENT_TASK_RESULTS]" type="GET" query="" body_uri=""}
026 * 
027 * @see service.tut.pori.contentanalysis.PhotoList
028 * @see service.tut.pori.contentanalysis.MediaObjectList
029 */
030@XmlRootElement(name=Definitions.ELEMENT_TASK_RESULTS)
031@XmlAccessorType(XmlAccessType.NONE)
032public class TwitterTaskResponse extends PhotoTaskResponse {
033  @XmlElement(name = Definitions.ELEMENT_MEDIA_OBJECTLIST)
034  private MediaObjectList _mediaObjects = null;
035
036  /**
037   * @return the mediaObjects
038   * @see #setMediaObjects(MediaObjectList)
039   */
040  public MediaObjectList getMediaObjects() {
041    return _mediaObjects;
042  }
043
044  /**
045   * @param mediaObjects the mediaObjects to set
046   * @see #getMediaObjects()
047   */
048  public void setMediaObjects(MediaObjectList mediaObjects) {
049    _mediaObjects = mediaObjects;
050  }
051}