<?xml version="1.0" encoding="utf-8" ?>
<sone>
- <id><% currentSone.id></id>
- <name><% currentSone.name|html></name>
+ <time><% currentSone.time></time>
+ <protocol-version>0</protocol-version>
+
+ <client>
+ <name>Sone</name>
+ <version><% version|xml></version>
+ </client>
<profile>
- <first-name><% currentSone.profile.firstName|html></first-name>
- <middle-name><% currentSone.profile.middleName|html></middle-name>
- <last-name><% currentSone.profile.lastName|html></last-name>
+ <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>
+ <fields>
+ <%foreach currentSone.profile.fields field>
+ <field>
+ <field-name><% field.key|xml></field-name>
+ <field-value><% field.value|xml></field-value>
+ </field>
+ <%/foreach>
+ </fields>
</profile>
<posts>
<%foreach currentSone.posts post>
<post>
- <id><% post.id></id>
+ <id><% post.id|xml></id>
+ <recipient><%ifnull !post.recipient><% post.recipient.id|xml><%/if></recipient>
<time><% post.time></time>
- <text><% post.text|html></text>
+ <text><% post.text|xml></text>
</post>
<%/foreach>
</posts>
<%foreach currentSone.replies reply>
<reply>
<id><% reply.id></id>
- <sone-id><% reply.post.sone.requestUri|html></sone-id>
- <sone-key><% reply.post.sone.requestUri|html></sone-key>
- <sone-name><% reply.post.sone.niceName|html></sone-name>
- <post-id><% reply.post.id></post-id>
+ <post-id><% reply.post.id|xml></post-id>
<time><% reply.time></time>
- <text><% reply.text></text>
+ <text><% reply.text|xml></text>
</reply>
<%/foreach>
</replies>
- <friends>
- <%foreach currentSone.friends friend>
- <friend>
- <sone-id><% friend.id|html></sone-id>
- <sone-key><% friend.requestUri|html></sone-key>
- <sone-name><% friend.niceName|html></sone-name>
- </friend>
+ <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>
- </friends>
+ </reply-likes>
</sone>