/**
* The MIT License (MIT)
* Copyright (c) 2012 David Carver
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
* OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package us.nineworlds.plex.rest.model.impl;
import java.util.List;
import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;
/**
* @author dcarver
*
*/
@Root(name="Track")
public class Track {
@Attribute(name="key",required=true)
private String key;
@Attribute(required=false)
private String title;
@Attribute(required=false)
private String summary;
@Attribute(required=false)
private String type;
@Attribute(required=false)
private String parentKey;
@Attribute(required=false)
private int index;
@Attribute(name="duration",required=false)
private long duration;
@Attribute(name="addedAt",required=false)
private long timeAdded;
@Attribute(name="updatedAt",required=false)
private long timeUpdated;
@ElementList(inline=true,name="Media",required=true)
private List<Media> medias;
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getSummary() {
return summary;
}
public void setSummary(String summary) {
this.summary = summary;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getParentKey() {
return parentKey;
}
public void setParentKey(String parentKey) {
this.parentKey = parentKey;
}
public int getIndex() {
return index;
}
public void setIndex(int index) {
this.index = index;
}
public long getDuration() {
return duration;
}
public void setDuration(long duration) {
this.duration = duration;
}
public long getTimeAdded() {
return timeAdded;
}
public void setTimeAdded(long timeAdded) {
this.timeAdded = timeAdded;
}
public long getTimeUpdated() {
return timeUpdated;
}
public void setTimeUpdated(long timeUpdated) {
this.timeUpdated = timeUpdated;
}
public List<Media> getMedias() {
return medias;
}
public void setMedias(List<Media> medias) {
this.medias = medias;
}
}