Created
January 14, 2011 16:03
-
-
Save mheadd/779793 to your computer and use it in GitHub Desktop.
PennApps Mobile Demo Applications
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if(currentCall.channel == 'VOICE') { | |
| say('Hello there Penn Apps participants and guests.'); | |
| say('Even though I use the ' + currentCall.network + ' network, I can still get jiggy.', {voice: 'simon'}); | |
| say('Have fun at Penn Apps mobile.', {voice: 'kate'}); | |
| say('Adiós amigos.', {voice: 'carlos'}); | |
| } | |
| else if(currentCall.channel == 'TEXT') { | |
| say('You sent "' + currentCall.initialText + '" on the '+ currentCall.network + ' network.'); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $places = array( | |
| 'Old City' => 'The Plow and the Stars', | |
| 'South Street' => 'South Street Diner', | |
| 'University City' => 'Abners', | |
| 'Penns Landing' => 'Buddakan' | |
| ); | |
| say("Hello there."); | |
| $response = ask("Where do you want to go tonight?", | |
| array("choices" => "Old City, South Street, University City, Penns Landing") | |
| ); | |
| say("Sweet. I'll see you at {$places[$response->value]} at 6pm."); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment