SHARE
TWEET

Untitled

a guest Feb 20th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. structure (DestinationPoint){
  2.   role-of (geo.NamedPoint)
  3.   features {
  4.     transient
  5.   }
  6. }
  7.      
  8. action (NewsSearch) {
  9. type(Search)
  10.  
  11.    collect{
  12.     input (categoryName) {
  13.       type (CategoryName)
  14.       min (Optional)
  15.     }
  16.     input (dateTimeExpression) {
  17.       type (time.DateTimeExpression)
  18.       min (Optional)
  19.     }
  20.  
  21.     input (cityName) {
  22.       type (DestinationPoint)
  23.       min (Optional) max (One)
  24.     }
  25.     input(location){
  26.       type (Location)
  27.       min (Optional)
  28.     }
  29.  
  30.     computed-input (currentLocation){
  31.      type (geo.NamedPoint)
  32.      min (Optional)
  33.      compute {
  34.        if ($user.currentLocation.$exists) {
  35.          intent {
  36.            goal: geo.NamedPoint
  37.            value-set: geo.CurrentLocation { $expr ($user.currentLocation) }
  38.          }
  39.       }
  40.     }
  41.  }
  42.  }
  43.   output (NewsConfirmationResult)
  44. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top