5f3340d328696a9007551c450bdb83f13cf131ac
[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         <name><% currentSone.name|xml></name>
6         <time><% currentSone.time|xml></time>
7         <request-uri><% currentSone.requestUri|xml></request-uri>
8         <insert-uri><% currentSone.insertUri|xml></insert-uri>
9
10         <profile>
11                 <first-name><% currentSone.profile.firstName|xml></first-name>
12                 <middle-name><% currentSone.profile.middleName|xml></middle-name>
13                 <last-name><% currentSone.profile.lastName|xml></last-name>
14                 <birth-day><% currentSone.profile.birthDay|xml></birth-day>
15                 <birth-month><% currentSone.profile.birthMonth|xml></birth-month>
16                 <birth-year><% currentSone.profile.birthYear|xml></birth-year>
17         </profile>
18
19         <posts>
20                 <%foreach currentSone.posts post>
21                 <post>
22                         <id><% post.id|xml></id>
23                         <time><% post.time></time>
24                         <text><% post.text|xml></text>
25                 </post>
26                 <%/foreach>
27         </posts>
28
29         <replies>
30                 <%foreach currentSone.replies reply>
31                 <reply>
32                         <id><% reply.id></id>
33                         <post-id><% reply.post.id|xml></post-id>
34                         <time><% reply.time></time>
35                         <text><% reply.text|xml></text>
36                 </reply>
37                 <%/foreach>
38         </replies>
39
40         <post-likes>
41                 <%foreach currentSone.likedPostIds postId>
42                 <post-like><% postId|xml></post-like>
43                 <%/foreach>
44         </post-likes>
45
46         <reply-likes>
47                 <%foreach currentSone.likedReplyIds replyId>
48                 <reply-like><% replyId|xml></reply-like>
49                 <%/foreach>
50         </reply-likes>
51
52         <friends>
53                 <%foreach currentSone.friends friend>
54                 <friend>
55                         <sone-id><% friend.id|xml></sone-id>
56                         <sone-key><% friend.requestUri|xml></sone-key>
57                         <sone-name><% friend.name|xml></sone-name>
58                 </friend>
59                 <%/foreach>
60         </friends>
61
62 </sone>