public override void DigestActionInput(PointOfInterestSkillState state) { base.DigestActionInput(state); if (!string.IsNullOrEmpty(RouteType)) { if (RouteType == GeoSpatialServiceTypes.RouteType.Eco || RouteType == GeoSpatialServiceTypes.RouteType.Thrilling || RouteType == GeoSpatialServiceTypes.RouteType.Fastest || RouteType == GeoSpatialServiceTypes.RouteType.Shortest) { state.RouteType = RouteType; } } if (ShowRoute.HasValue) { if (ShowRoute.Value) { state.DestinationActionType = DestinationActionType.ShowDirectionsThenStartNavigation; } else { state.DestinationActionType = DestinationActionType.StartNavigation; } } }
public virtual void DigestActionInput(PointOfInterestSkillState state) { state.Clear(); if (CurrentLatitude.HasValue && CurrentLongitude.HasValue) { state.CurrentCoordinates = new SkillServiceLibrary.Models.LatLng { Latitude = CurrentLatitude.Value, Longitude = CurrentLongitude.Value, }; } state.Keyword = Keyword; state.Address = Address; if (!string.IsNullOrEmpty(PoiType)) { if (PoiType == GeoSpatialServiceTypes.PoiType.Nearest) { state.PoiType = PoiType; } } }
public override void DigestActionInput(PointOfInterestSkillState state) { base.DigestActionInput(state); state.Category = Category; }