Store the client name and version in the inserted Sone.
[Sone.git] / src / main / resources / templates / insert / sone.xml
1 <?xml version="1.0" encoding="utf-8" ?>
2 <sone>
3
4         <time><% currentSone.time></time>
5
6         <client>
7                 <name>Sone</name>
8                 <version><% version|xml></version>
9         </client>
10
11         <profile>
12                 <first-name><% currentSone.profile.firstName|xml></first-name>
13                 <middle-name><% currentSone.profile.middleName|xml></middle-name>
14                 <last-name><% currentSone.profile.lastName|xml></last-name>
15                 <birth-day><% currentSone.profile.birthDay|xml></birth-day>
16                 <birth-month><% currentSone.profile.birthMonth|xml></birth-month>
17                 <birth-year><% currentSone.profile.birthYear|xml></birth-year>
18         </profile>
19
20         <posts>
21                 <%foreach currentSone.posts post>
22                 <post>
23                         <id><% post.id|xml></id>
24                         <time><% post.time></time>
25                         <text><% post.text|xml></text>
26                 </post>
27                 <%/foreach>
28         </posts>
29
30         <replies>
31                 <%foreach currentSone.replies reply>
32                 <reply>
33                         <id><% reply.id></id>
34                         <post-id><% reply.post.id|xml></post-id>
35                         <time><% reply.time></time>
36                         <text><% reply.text|xml></text>
37                 </reply>
38                 <%/foreach>
39         </replies>
40
41         <post-likes>
42                 <%foreach currentSone.likedPostIds postId>
43                 <post-like><% postId|xml></post-like>
44                 <%/foreach>
45         </post-likes>
46
47         <reply-likes>
48                 <%foreach currentSone.likedReplyIds replyId>
49                 <reply-like><% replyId|xml></reply-like>
50                 <%/foreach>
51         </reply-likes>
52
53 </sone>