Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

Problem with SiriAddViews() #219

Closed
gotnull opened this issue Dec 28, 2011 · 0 comments
Closed

Problem with SiriAddViews() #219

gotnull opened this issue Dec 28, 2011 · 0 comments

Comments

@gotnull
Copy link

gotnull commented Dec 28, 2011

I have a problem with the following code:

object = SiriAddViews.new

object.make_root(last_ref_id)

answer = SiriAnswer.new(program_name, [
    SiriAnswerLine.new("logo", "http://www.ourguide.com.au/images/station_images/#{channel}.png")
])

answer << SiriAnswerLine.new(program_additional_info) unless program_additional_info?

object.views << SiriAnswerSnippet.new([answer])

send_object object

If I remove the following line then it works fine:

answer << SiriAnswerLine.new(program_additional_info) unless program_additional_info?

It actually displays the view, however when I leave that line in. It doesn't display the view and just sits there doing nothing.

Any help would be greatly appreciated as program_additional_info doesn't always contain a value.

@plamoni plamoni closed this as completed Mar 8, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants