Too many changes to list them all.
[Sone.git] / src / main / resources / templates / backup.xml
1 <?xml version="1.0" encoding="utf-8" ?>
2 <sone>
3
4         <id><% currentSone.id|xml></id>
5         <time><% currentSone.time|xml></time>
6         <request-uri><% currentSone.requestUri|xml></request-uri>
7         <insert-uri><% currentSone.insertUri|xml></insert-uri>
8
9         <profile>
10                 <first-name><% currentSone.profile.firstName|xml></first-name>
11                 <middle-name><% currentSone.profile.middleName|xml></middle-name>
12                 <last-name><% currentSone.profile.lastName|xml></last-name>
13                 <birth-day><% currentSone.profile.birthDay|xml></birth-day>
14                 <birth-month><% currentSone.profile.birthMonth|xml></birth-month>
15                 <birth-year><% currentSone.profile.birthYear|xml></birth-year>
16         </profile>
17
18         <posts>
19                 <%foreach currentSone.posts post>
20                 <post>
21                         <id><% post.id|xml></id>
22                         <time><% post.time></time>
23                         <text><% post.text|xml></text>
24                 </post>
25                 <%/foreach>
26         </posts>
27
28         <replies>
29                 <%foreach currentSone.replies reply>
30                 <reply>
31                         <id><% reply.id></id>
32                         <post-id><% reply.post.id|xml></post-id>
33                         <time><% reply.time></time>
34                         <text><% reply.text|xml></text>
35                 </reply>
36                 <%/foreach>
37         </replies>
38
39         <post-likes>
40                 <%foreach currentSone.likedPostIds postId>
41                 <post-like><% postId|xml></post-like>
42                 <%/foreach>
43         </post-likes>
44
45         <reply-likes>
46                 <%foreach currentSone.likedReplyIds replyId>
47                 <reply-like><% replyId|xml></reply-like>
48                 <%/foreach>
49         </reply-likes>
50
51         <friends>
52                 <%foreach currentSone.friends friend>
53                 <friend>
54                         <sone-id><% friend.id|xml></sone-id>
55                         <sone-key><% friend.requestUri|xml></sone-key>
56                         <sone-name><% friend.name|xml></sone-name>
57                 </friend>
58                 <%/foreach>
59         </friends>
60
61 </sone>