Too many changes to list them all.
[Sone.git] / src / main / resources / templates / backup.xml
index 7ad2cc3..5591e7c 100644 (file)
@@ -1,8 +1,61 @@
 <?xml version="1.0" encoding="utf-8" ?>
 <sone>
 
-       <name><% currentSone.name|xml></name>
-       <requestUri><% currentSone.requestUri|xml></requestUri>
-       <insertUri><% currentSone.insertUri|xml></insertUri>
+       <id><% currentSone.id|xml></id>
+       <time><% currentSone.time|xml></time>
+       <request-uri><% currentSone.requestUri|xml></request-uri>
+       <insert-uri><% currentSone.insertUri|xml></insert-uri>
+
+       <profile>
+               <first-name><% currentSone.profile.firstName|xml></first-name>
+               <middle-name><% currentSone.profile.middleName|xml></middle-name>
+               <last-name><% currentSone.profile.lastName|xml></last-name>
+               <birth-day><% currentSone.profile.birthDay|xml></birth-day>
+               <birth-month><% currentSone.profile.birthMonth|xml></birth-month>
+               <birth-year><% currentSone.profile.birthYear|xml></birth-year>
+       </profile>
+
+       <posts>
+               <%foreach currentSone.posts post>
+               <post>
+                       <id><% post.id|xml></id>
+                       <time><% post.time></time>
+                       <text><% post.text|xml></text>
+               </post>
+               <%/foreach>
+       </posts>
+
+       <replies>
+               <%foreach currentSone.replies reply>
+               <reply>
+                       <id><% reply.id></id>
+                       <post-id><% reply.post.id|xml></post-id>
+                       <time><% reply.time></time>
+                       <text><% reply.text|xml></text>
+               </reply>
+               <%/foreach>
+       </replies>
+
+       <post-likes>
+               <%foreach currentSone.likedPostIds postId>
+               <post-like><% postId|xml></post-like>
+               <%/foreach>
+       </post-likes>
+
+       <reply-likes>
+               <%foreach currentSone.likedReplyIds replyId>
+               <reply-like><% replyId|xml></reply-like>
+               <%/foreach>
+       </reply-likes>
+
+       <friends>
+               <%foreach currentSone.friends friend>
+               <friend>
+                       <sone-id><% friend.id|xml></sone-id>
+                       <sone-key><% friend.requestUri|xml></sone-key>
+                       <sone-name><% friend.name|xml></sone-name>
+               </friend>
+               <%/foreach>
+       </friends>
 
 </sone>