1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package com.commsen.jwebthumb;
21
22 import java.util.List;
23
24 import org.apache.commons.lang.builder.ReflectionToStringBuilder;
25 import org.simpleframework.xml.ElementList;
26
27 /***
28 * This class represents 'jobStatus' part of webthumb's response to "status" API call. See <a
29 * href="http://webthumb.bluga.net/apidoc#status">http://webthumb.bluga.net/apidoc#status</a> for
30 * details
31 *
32 * @author <a href="mailto:MilenDyankov@gmail.com">Milen Dyankov</a>
33 * @since 0.3
34 *
35 */
36 public class WebThumbJobStatus {
37
38 @ElementList(required = false, inline = true, entry = "status")
39 private List<WebThumbStatus> statuses;
40
41 @ElementList(required = false, inline = true, entry = "error")
42 private List<WebThumbError> errors;
43
44
45
46
47
48 @Override
49 public String toString() {
50 return new ReflectionToStringBuilder(this).toString();
51 }
52
53
54 /***
55 * @return the statuses
56 */
57 public List<WebThumbStatus> getStatuses() {
58 return this.statuses;
59 }
60
61
62 /***
63 * @return the errors
64 */
65 public List<WebThumbError> getErrors() {
66 return this.errors;
67 }
68
69 /***
70 * @return the error
71 */
72
73
74
75
76 }