Use the ID of a reply instead of a post.
[Sone.git] / src / test / resources / sone-parser / complete.xml
1 <?xml version="1.0" encoding="utf-8" ?>
2 <sone>
3
4         <time>1382419919000</time>
5         <protocol-version>0</protocol-version>
6
7         <client>
8                 <name>Sone</name>
9                 <version>0.8.7</version>
10         </client>
11
12         <profile>
13                 <first-name>First</first-name>
14                 <middle-name>M.</middle-name>
15                 <last-name>Last</last-name>
16                 <birth-day>22</birth-day>
17                 <birth-month>10</birth-month>
18                 <birth-year>2013</birth-year>
19                 <avatar>96431abe-3add-11e3-8a46-67047503bf6d</avatar>
20                 <fields>
21                         <field>
22                                 <field-name>Field1</field-name>
23                                 <field-value>Value1</field-value>
24                         </field>
25                         <field>
26                                 <field-name>Field2</field-name>
27                                 <field-value>Value2</field-value>
28                         </field>
29                 </fields>
30         </profile>
31
32         <posts>
33                 <post>
34                         <id>bbb7ebf0-3adb-11e3-8a0b-630cd8f21cf3</id>
35                         <recipient></recipient>
36                         <time>1382420140000</time>
37                         <text>Hello, World!</text>
38                 </post>
39                 <post>
40                         <id>d8c9586e-3adb-11e3-bb31-171fc040e645</id>
41                         <recipient>0rpD4gL8mszav2trndhIdKIxvKUCNAe2kjA3dLV8CVU</recipient>
42                         <time>1382420181000</time>
43                         <text>Hello, User!</text>
44                 </post>
45         </posts>
46
47         <replies>
48                 <reply>
49                         <id>f09fa448-3adb-11e3-a783-ab54a11aacc4</id>
50                         <post-id>bbb7ebf0-3adb-11e3-8a0b-630cd8f21cf3</post-id>
51                         <time>1382420224000</time>
52                         <text>Talking to myself.</text>
53                 </reply>
54                 <reply>
55                         <id>0a376440-3adc-11e3-8f45-c7cc157436a5</id>
56                         <post-id>11ebe86e-3adc-11e3-b7b9-7f2c88018a33</post-id>
57                         <time>1382420271000</time>
58                         <text>Talking to somebody I can't see.</text>
59                 </reply>
60         </replies>
61
62         <post-likes>
63                 <post-like>bbb7ebf0-3adb-11e3-8a0b-630cd8f21cf3</post-like>
64                 <post-like>305d85e6-3adc-11e3-be45-8b53dd91f0af</post-like>
65         </post-likes>
66
67         <reply-likes>
68                 <reply-like>f09fa448-3adb-11e3-a783-ab54a11aacc4</reply-like>
69                 <reply-like>3ba28960-3adc-11e3-93c7-6713d170f44c</reply-like>
70         </reply-likes>
71
72         <albums>
73                 <album>
74                         <id>6a73c6e6-3adc-11e3-b091-577b10a725ad</id>
75                         <title>Album1</title>
76                         <description>First album with stuff.</description>
77                         <album-image>e3707102-3adc-11e3-b828-9f4de99f0bc4</album-image>
78                         <images>
79                                 <image>
80                                         <id>8966f69a-3adc-11e3-802d-0f57b63c8809</id>
81                                         <creation-time>1382420473000</creation-time>
82                                         <key>SSK@JvW9oZ8AriNGbwBosJD1gyMdiMHc5AgSmhNBU1CmAb8,na1IPpMcYiZLaWSv9EWq9NcDPPGplQBw8kJsLobXIG4,AQACAAE/8966f69a-3adc-11e3-802d-0f57b63c8809.jpg</key>
83                                         <title>Stuff</title>
84                                         <description>Yes, it's stuff!</description>
85                                         <width>640</width>
86                                         <height>480</height>
87                                 </image>
88                                 <image>
89                                         <id>e3707102-3adc-11e3-b828-9f4de99f0bc4</id>
90                                         <creation-time>1382420624000</creation-time>
91                                         <key>SSK@dM1er7A9tG242bG-Xxy0kmprD7YkqEDE9mrZ98C~L3E,Np3iWiaGyd~er86edP9ndpH3pPKk2owDmAT2TQZNBA0,AQACAAE/e3707102-3adc-11e3-b828-9f4de99f0bc4.jpg</key>
92                                         <title>More Stuff</title>
93                                         <description>Yes, it's more stuff!</description>
94                                         <width>640</width>
95                                         <height>360</height>
96                                 </image>
97                         </images>
98                 </album>
99                 <album>
100                         <id>1e73b52a-3add-11e3-ba45-cb0c28da9c2a</id>
101                         <parent>6a73c6e6-3adc-11e3-b091-577b10a725ad</parent>
102                         <title>Nested Album</title>
103                         <description>Nested album with stuff.</description>
104                         <album-image>312182ba-3add-11e3-bd76-13e7278f0161</album-image>
105                         <images>
106                                 <image>
107                                         <id>312182ba-3add-11e3-bd76-13e7278f0161</id>
108                                         <creation-time>1382420756000</creation-time>
109                                         <key>SSK@0rpD4gL8mszav2trndhIdKIxvKUCNAe2kjA3dLV8CVU,2KP8WDSaQvyJ16pXBHQrE1vj~fAaYPIsk35lM-ec4B0,AQACAAE/312182ba-3add-11e3-bd76-13e7278f0161.jpg</key>
110                                         <title>Other Stuff</title>
111                                         <description>Yes, it's other stuff!</description>
112                                         <width>640</width>
113                                         <height>272</height>
114                                 </image>
115                         </images>
116                 </album>
117                 <album>
118                         <id>8a04b5fa-3add-11e3-afe2-676e721c04bd</id>
119                         <title>Avatars</title>
120                         <description>The avatar collection.</description>
121                         <album-image>96431abe-3add-11e3-8a46-67047503bf6d</album-image>
122                         <images>
123                                 <image>
124                                         <id>96431abe-3add-11e3-8a46-67047503bf6d</id>
125                                         <creation-time>1382420923000</creation-time>
126                                         <key>SSK@v6Js3ZJBMB23IB0JvdgiPynHQBYEvkFSi3~D8RDdj3s,FfLhjRC4bqYLHVexT33Pv6agXl6Ft~TDhX1jIM5w2n4,AQACAAE/96431abe-3add-11e3-8a46-67047503bf6d.png</key>
127                                         <title>Avatar 1</title>
128                                         <description>The first avatar.</description>
129                                         <width>64</width>
130                                         <height>64</height>
131                                 </image>
132                         </images>
133                 </album>
134         </albums>
135
136 </sone>