Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. components: [
  2. {name: "emailService",      kind: "PalmService",
  3.                 service: "palm://com.palm.applicationManager/",
  4.                 method: "open",
  5.  
  6. },
  7. {name: "messagingService",  kind: "PalmService",
  8.                 service: "palm://com.palm.applicationManager/",
  9.                 method: "open",
  10. }  
  11. ],
  12.  
  13. sendEmail : function(inSender, inResponse) {
  14.     var params =  {
  15.         "summary":"I found this on Reddit with Red It for webOS. Check it out!",
  16.         "text":"Title: '"+this.storyStruct.title+"' URL: " +this.storyStruct.url+""
  17.     };
  18.     this.$.emailService.call({"id": "com.palm.app.email", "params":params});
  19. },
  20. sendMessage : function(inSender, inResponse) {
  21.     var  params =  {
  22.             "composeRecipients" :
  23.             {
  24.                     "address"     : "9193895334",
  25.             },
  26.             "messageText"     : "Title: '"+this.storyStruct.title+"' URL: " +this.storyStruct.url+""
  27.     };  
  28.     this.$.messagingService.call({"id": "com.palm.app.messaging", "params":params});
  29. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement