public class PhotoList extends ResponseData
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <mediaList> <media> <credits>KwGZilfORbxRYDnRJOOATeERkgKQobENXDvDyLmWWWZtwTEQXzQZUamJazFZyZfP</credits> <description>pLPMXalhsjkVJrXVvEytTkYQxEIZdRMhbqsYgmAwreCmHedvLJpZOsjwgcBptpfL</description> <UID>afc8c96c-6523-4bff-9c74-87630156b47e</UID> <name>pnmKDeNIVVrTTAtrNtUdCnUlZyZRODEQtbNgYLcDDDFUxYzaCcKdovSDPQoUwBKr</name> <serviceId>1</serviceId> <visibility>PUBLIC</visibility> <objectList> <object> <backendId>105334350</backendId> <confidence>0.04171823869280289</confidence> <mediaObjectId>7381899336412632613</mediaObjectId> <mediaType>PHOTO</mediaType> <objectId>YYaxNjxnhtaFSuJuOCJAJNtAGAthZdrDurOmWsALajqputefKTPIBwXrNlPNwHoO</objectId> <rank>754453812</rank> <serviceId>6</serviceId> <status>NO_FRIENDLY_KEYWORD</status> <objectType>KEYWORD</objectType> <value>OTcKUADumreJKzkcbJlDllSyqrXnxEkbxDiuQVvXbejHPJZaVZlSWoRgHbTCjCFz</value> <visibility>PRIVATE</visibility> <userId>8291827787728071338</userId> </object> </objectList> <mediaType>PHOTO</mediaType> <userId>8291827787728071338</userId> <url>http://fe.example.org/rest/carc/r?uid=afc8c96c-6523-4bff-9c74-87630156b47e&service_id=1</url> </media> </mediaList>
Photo
,
ResultInfo
Constructor and Description |
---|
PhotoList()
NOTE: to use getPhotoList factory functions, the nullary constructor of the inherited class MUST be available
|
Modifier and Type | Method and Description |
---|---|
void |
addPhoto(Photo photo) |
void |
addPhotos(PhotoList photos) |
static int |
count(PhotoList list) |
java.util.List<java.lang.String> |
getGUIDs() |
static java.util.List<java.lang.String> |
getGUIDs(PhotoList photoList) |
Photo |
getPhoto(java.lang.String guid) |
static PhotoList |
getPhotoList(java.util.Collection<Photo> photos,
ResultInfo resultInfo) |
java.util.List<Photo> |
getPhotos() |
ResultInfo |
getResultInfo() |
static boolean |
isEmpty(PhotoList list) |
static boolean |
isValid(PhotoList list) |
void |
setPhotos(java.util.List<Photo> photos)
replace the currently set set of photos with a new set of photos
|
void |
setResultInfo(ResultInfo resultInfo) |
getDataClasses
public PhotoList()
public java.util.List<Photo> getPhotos()
setPhotos(List)
public java.util.List<java.lang.String> getGUIDs()
public static java.util.List<java.lang.String> getGUIDs(PhotoList photoList)
photoList
- public ResultInfo getResultInfo()
setResultInfo(ResultInfo)
public void setResultInfo(ResultInfo resultInfo)
resultInfo
- getResultInfo()
public void setPhotos(java.util.List<Photo> photos)
photos
- getPhotos()
public void addPhoto(Photo photo)
photo
- getPhotos()
public void addPhotos(PhotoList photos)
photos
- getPhotos()
public Photo getPhoto(java.lang.String guid)
guid
- public static PhotoList getPhotoList(java.util.Collection<Photo> photos, ResultInfo resultInfo)
photos
- resultInfo
- optional resultInfopublic static boolean isEmpty(PhotoList list)
list
- public static boolean isValid(PhotoList list)
list
- can be nullCopyright © 2015 Tampere University of Technology, Pori Department.