001package service.tut.pori.facebookjazz;
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 * A summarization task response received from an analysis back-end.
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.facebookjazz.reference.Definitions#SERVICE_FBJ_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 */
031@XmlRootElement(name=Definitions.ELEMENT_TASK_RESULTS)
032@XmlAccessorType(XmlAccessType.NONE)
033public class FBTaskResponse extends PhotoTaskResponse {
034  @XmlElement(name = Definitions.ELEMENT_MEDIA_OBJECTLIST)
035  private MediaObjectList _mediaObjects = null;
036
037  /**
038   * @return the mediaObjects
039   * @see #setMediaObjects(MediaObjectList)
040   */
041  public MediaObjectList getMediaObjects() {
042    return _mediaObjects;
043  }
044
045  /**
046   * @param mediaObjects the mediaObjects to set
047   * @see #getMediaObjects()
048   */
049  public void setMediaObjects(MediaObjectList mediaObjects) {
050    _mediaObjects = mediaObjects;
051  }
052}