jf-roku/components/data/collection.xml

31 lines
928 B
XML

<?xml version="1.0" encoding="utf-8" ?>
<component name="CollectionData" extends="ContentNode">
<interface>
<field id="title" type="string" />
<field id="posterUrl" type="string" />
<field id="collectionID" type="string" />
<field id="description" type="string" />
<field id="favorite" type="boolean" />
<field id="watched" type="boolean" />
<field id="full_data" type="associativearray" onChange="setFields" />
</interface>
<script type="text/brightscript">
<![CDATA[
sub setFields()
datum = m.top.full_data
m.top.id = datum.id
m.top.title = datum.name
m.top.collectionID = datum.id
if datum.posterURL <> invalid
m.top.posterURL = datum.posterURL
else
m.top.posterURL = ""
end if
m.top.description = datum.overview
m.top.favorite = datum.UserData.isFavorite
m.top.watched = datum.UserData.played
end sub
]]>
</script>
</component>