Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement