Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- structure (DestinationPoint){
- role-of (geo.NamedPoint)
- features {
- transient
- }
- }
- action (NewsSearch) {
- type(Search)
- collect{
- input (categoryName) {
- type (CategoryName)
- min (Optional)
- }
- input (dateTimeExpression) {
- type (time.DateTimeExpression)
- min (Optional)
- }
- input (cityName) {
- type (DestinationPoint)
- min (Optional) max (One)
- }
- input(location){
- type (Location)
- min (Optional)
- }
- computed-input (currentLocation){
- type (geo.NamedPoint)
- min (Optional)
- compute {
- if ($user.currentLocation.$exists) {
- intent {
- goal: geo.NamedPoint
- value-set: geo.CurrentLocation { $expr ($user.currentLocation) }
- }
- }
- }
- }
- }
- output (NewsConfirmationResult)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement