botframework
Advanced tools
Comparing version 0.15.0 to 0.16.0
@@ -153,2 +153,5 @@ "use strict"; | ||
}; | ||
if (attachment.title) { | ||
location_1.location.title = attachment.title; | ||
} | ||
(this.botController.locationMessage) ? this.botController.locationMessage(location_1, reply) : null; | ||
@@ -155,0 +158,0 @@ break; |
@@ -23,2 +23,3 @@ import * as Promise from 'bluebird'; | ||
export interface ILocation { | ||
title?: string; | ||
coordinates: ICoordinates; | ||
@@ -25,0 +26,0 @@ } |
{ | ||
"name": "botframework", | ||
"version": "0.15.0", | ||
"version": "0.16.0", | ||
"description": "Framework for messaging bots", | ||
@@ -5,0 +5,0 @@ "main": "./dist/es5/src/bot.js", |
@@ -143,5 +143,8 @@ import {IBotController, BOT_REQUEST_TYPE, IBotSettings, IBotUser, IBotRequest, IBotReply, IBotReplyListItemAction, IBotReplyListItem} from '../interfaces' | ||
case FB_ATTACHMENT_TYPE.LOCATION: | ||
let location = { | ||
let location: IBotRequest = { | ||
user, location: {coordinates: attachment.payload.coordinates}, type: BOT_REQUEST_TYPE.FACEBOOK | ||
}; | ||
if (attachment.title) { | ||
location.location.title = attachment.title; | ||
} | ||
(this.botController.locationMessage) ? this.botController.locationMessage(location, reply) : null; | ||
@@ -148,0 +151,0 @@ break; |
@@ -29,2 +29,3 @@ import * as Promise from 'bluebird'; | ||
export interface ILocation { | ||
title?: string; | ||
coordinates: ICoordinates; | ||
@@ -31,0 +32,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
781725
15643