01: package example.data;
02:
03: import javax.xml.bind.annotation.*;
04:
05: @XmlRootElement(name="person")
06: public class FlickrPerson implements FlickrPayload {
07: @XmlAttribute
08: public String nsid;
09: @XmlAttribute
10: public int isadmin;
11: @XmlAttribute
12: public int ispro;
13: @XmlAttribute
14: public int iconserver;
15:
16: @XmlElement
17: public String username;
18: @XmlElement
19: public String realname;
20: @XmlElement
21: public String mbox_sha1sum;
22: @XmlElement
23: public String location;
24: @XmlElement
25: public String photosurl;
26: @XmlElement
27: public String profileurl;
28: @XmlElement
29: public Photos photos;
30:
31: public static class Photos {
32: @XmlElement
33: public long firstdate;
34: @XmlElement
35: public String firstdatetaken;
36: @XmlElement
37: public int count;
38:
39: public String toString() {
40: return "Photos[firstdate=" + firstdate + ", "
41: + "firstdatetaken=" + firstdatetaken + ", "
42: + "count=" + count + "]";
43: }
44: }
45:
46: public String toString() {
47: return "FlickrPerson[nsid=" + nsid + ", " + "isadmin="
48: + isadmin + ", " + "ispro=" + ispro + ", "
49: + "iconserver=" + iconserver + ", " + "username="
50: + username + ", " + "realname=" + realname + ", "
51: + "mbox_sha1sum=" + mbox_sha1sum + ", " + "location="
52: + location + ", " + "photosurl=" + photosurl + ", "
53: + "profileurl=" + profileurl + ", " + "photos="
54: + photos + "]";
55: }
56: }
|