{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/botbuilder-js/pulls/comments/166907024","pull_request_review_id":95040235,"id":166907024,"diff_hunk":"@@ -0,0 +1,25 @@\n+const activitiesById = {};\n+\n+export class WebChatAdapter {\n+    post(activities) {\n+        activitiesById[activities[0].replyToId] = activities;\n+        activities.forEach(activity => Object.assign(activity, {id: activity.replyToId, from: {id: \"The Bot\"}}));\n+        return Promise.resolve(activities);\n+    }\n+\n+    onReceive(activity) {\n+        // overwritten by bot\n+    }\n+","path":"samples/alarmbot-es6-botframework-webchat/src/webChatAdapter.js","position":13,"original_position":13,"commit_id":"1d0b6f3f9518af7c6bf0d4f71e58bb7847b6372b","original_commit_id":"1d0b6f3f9518af7c6bf0d4f71e58bb7847b6372b","user":{"login":"Stevenic","id":698939,"avatar_url":"https://avatars2.githubusercontent.com/u/698939?v=4","gravatar_id":"","url":"https://api.github.com/users/Stevenic","html_url":"https://github.com/Stevenic","followers_url":"https://api.github.com/users/Stevenic/followers","following_url":"https://api.github.com/users/Stevenic/following{/other_user}","gists_url":"https://api.github.com/users/Stevenic/gists{/gist_id}","starred_url":"https://api.github.com/users/Stevenic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stevenic/subscriptions","organizations_url":"https://api.github.com/users/Stevenic/orgs","repos_url":"https://api.github.com/users/Stevenic/repos","events_url":"https://api.github.com/users/Stevenic/events{/privacy}","received_events_url":"https://api.github.com/users/Stevenic/received_events","type":"User","site_admin":false},"body":"I'm assuming the reason you chose to use a function here versus a property is because in ES6 you can't show that its typed to take a function.  I wonder if it would be cleaner use a setter here. I just filled an issue with TypeScript that there's currently no way to express in an interface that something is writeonly.  This is a classic \"weak reference\" pattern. ","created_at":"2018-02-08T11:31:49Z","updated_at":"2018-02-08T11:31:49Z","html_url":"https://github.com/Microsoft/botbuilder-js/pull/50#discussion_r166907024","pull_request_url":"https://api.github.com/repos/Microsoft/botbuilder-js/pulls/50","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/botbuilder-js/pulls/comments/166907024"},"html":{"href":"https://github.com/Microsoft/botbuilder-js/pull/50#discussion_r166907024"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/botbuilder-js/pulls/50"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/botbuilder-js/pulls/50","id":167846432,"html_url":"https://github.com/Microsoft/botbuilder-js/pull/50","diff_url":"https://github.com/Microsoft/botbuilder-js/pull/50.diff","patch_url":"https://github.com/Microsoft/botbuilder-js/pull/50.patch","issue_url":"https://api.github.com/repos/Microsoft/botbuilder-js/issues/50","number":50,"state":"open","locked":false,"title":"Jwilaby/web samples","user":{"login":"justinwilaby","id":2652885,"avatar_url":"https://avatars1.githubusercontent.com/u/2652885?v=4","gravatar_id":"","url":"https://api.github.com/users/justinwilaby","html_url":"https://github.com/justinwilaby","followers_url":"https://api.github.com/users/justinwilaby/followers","following_url":"https://api.github.com/users/justinwilaby/following{/other_user}","gists_url":"https://api.github.com/users/justinwilaby/gists{/gist_id}","starred_url":"https://api.github.com/users/justinwilaby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinwilaby/subscriptions","organizations_url":"https://api.github.com/users/justinwilaby/orgs","repos_url":"https://api.github.com/users/justinwilaby/repos","events_url":"https://api.github.com/users/justinwilaby/events{/privacy}","received_events_url":"https://api.github.com/users/justinwilaby/received_events","type":"User","site_admin":false},"body":"The PR provides 2 new samples for the browser:\r\n1. AlarmBot as a custom built chat\r\n2. AlarmBot using the [BotFramework-WebChat](https://github.com/Microsoft/BotFramework-WebChat)","created_at":"2018-02-08T00:22:45Z","updated_at":"2018-02-08T11:31:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d814cec8a20d631ae98729363a88da6e15f6257","assignee":null,"assignees":[],"requested_reviewers":[{"login":"billba","id":11050679,"avatar_url":"https://avatars3.githubusercontent.com/u/11050679?v=4","gravatar_id":"","url":"https://api.github.com/users/billba","html_url":"https://github.com/billba","followers_url":"https://api.github.com/users/billba/followers","following_url":"https://api.github.com/users/billba/following{/other_user}","gists_url":"https://api.github.com/users/billba/gists{/gist_id}","starred_url":"https://api.github.com/users/billba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billba/subscriptions","organizations_url":"https://api.github.com/users/billba/orgs","repos_url":"https://api.github.com/users/billba/repos","events_url":"https://api.github.com/users/billba/events{/privacy}","received_events_url":"https://api.github.com/users/billba/received_events","type":"User","site_admin":false}],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/botbuilder-js/pulls/50/commits","review_comments_url":"https://api.github.com/repos/Microsoft/botbuilder-js/pulls/50/comments","review_comment_url":"https://api.github.com/repos/Microsoft/botbuilder-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/botbuilder-js/issues/50/comments","statuses_url":"https://api.github.com/repos/Microsoft/botbuilder-js/statuses/1d0b6f3f9518af7c6bf0d4f71e58bb7847b6372b","head":{"label":"Microsoft:jwilaby/web-samples","ref":"jwilaby/web-samples","sha":"1d0b6f3f9518af7c6bf0d4f71e58bb7847b6372b","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":117021493,"name":"botbuilder-js","full_name":"Microsoft/botbuilder-js","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/botbuilder-js","description":"JavaScript SDK used to build chat bots for the Microsoft Bot Framework.","fork":false,"url":"https://api.github.com/repos/Microsoft/botbuilder-js","forks_url":"https://api.github.com/repos/Microsoft/botbuilder-js/forks","keys_url":"https://api.github.com/repos/Microsoft/botbuilder-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/botbuilder-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/botbuilder-js/teams","hooks_url":"https://api.github.com/repos/Microsoft/botbuilder-js/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/botbuilder-js/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/botbuilder-js/events","assignees_url":"https://api.github.com/repos/Microsoft/botbuilder-js/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/botbuilder-js/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/botbuilder-js/tags","blobs_url":"https://api.github.com/repos/Microsoft/botbuilder-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/botbuilder-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/botbuilder-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/botbuilder-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/botbuilder-js/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/botbuilder-js/languages","stargazers_url":"https://api.github.com/repos/Microsoft/botbuilder-js/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/botbuilder-js/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/botbuilder-js/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/botbuilder-js/subscription","commits_url":"https://api.github.com/repos/Microsoft/botbuilder-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/botbuilder-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/botbuilder-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/botbuilder-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/botbuilder-js/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/botbuilder-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/botbuilder-js/merges","archive_url":"https://api.github.com/repos/Microsoft/botbuilder-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/botbuilder-js/downloads","issues_url":"https://api.github.com/repos/Microsoft/botbuilder-js/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/botbuilder-js/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/botbuilder-js/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/botbuilder-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/botbuilder-js/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/botbuilder-js/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/botbuilder-js/deployments","created_at":"2018-01-10T23:01:21Z","updated_at":"2018-02-08T09:55:24Z","pushed_at":"2018-02-08T10:22:23Z","git_url":"git://github.com/Microsoft/botbuilder-js.git","ssh_url":"git@github.com:Microsoft/botbuilder-js.git","clone_url":"https://github.com/Microsoft/botbuilder-js.git","svn_url":"https://github.com/Microsoft/botbuilder-js","homepage":null,"size":2972,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":23,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":23,"watchers":5,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"a0e4c1c73f64e3b297157f21679585c8e4d549a0","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":117021493,"name":"botbuilder-js","full_name":"Microsoft/botbuilder-js","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/botbuilder-js","description":"JavaScript SDK used to build chat bots for the Microsoft Bot Framework.","fork":false,"url":"https://api.github.com/repos/Microsoft/botbuilder-js","forks_url":"https://api.github.com/repos/Microsoft/botbuilder-js/forks","keys_url":"https://api.github.com/repos/Microsoft/botbuilder-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/botbuilder-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/botbuilder-js/teams","hooks_url":"https://api.github.com/repos/Microsoft/botbuilder-js/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/botbuilder-js/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/botbuilder-js/events","assignees_url":"https://api.github.com/repos/Microsoft/botbuilder-js/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/botbuilder-js/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/botbuilder-js/tags","blobs_url":"https://api.github.com/repos/Microsoft/botbuilder-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/botbuilder-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/botbuilder-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/botbuilder-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/botbuilder-js/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/botbuilder-js/languages","stargazers_url":"https://api.github.com/repos/Microsoft/botbuilder-js/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/botbuilder-js/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/botbuilder-js/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/botbuilder-js/subscription","commits_url":"https://api.github.com/repos/Microsoft/botbuilder-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/botbuilder-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/botbuilder-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/botbuilder-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/botbuilder-js/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/botbuilder-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/botbuilder-js/merges","archive_url":"https://api.github.com/repos/Microsoft/botbuilder-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/botbuilder-js/downloads","issues_url":"https://api.github.com/repos/Microsoft/botbuilder-js/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/botbuilder-js/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/botbuilder-js/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/botbuilder-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/botbuilder-js/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/botbuilder-js/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/botbuilder-js/deployments","created_at":"2018-01-10T23:01:21Z","updated_at":"2018-02-08T09:55:24Z","pushed_at":"2018-02-08T10:22:23Z","git_url":"git://github.com/Microsoft/botbuilder-js.git","ssh_url":"git@github.com:Microsoft/botbuilder-js.git","clone_url":"https://github.com/Microsoft/botbuilder-js.git","svn_url":"https://github.com/Microsoft/botbuilder-js","homepage":null,"size":2972,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":23,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":23,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/botbuilder-js/pulls/50"},"html":{"href":"https://github.com/Microsoft/botbuilder-js/pull/50"},"issue":{"href":"https://api.github.com/repos/Microsoft/botbuilder-js/issues/50"},"comments":{"href":"https://api.github.com/repos/Microsoft/botbuilder-js/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/botbuilder-js/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/botbuilder-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/botbuilder-js/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/botbuilder-js/statuses/1d0b6f3f9518af7c6bf0d4f71e58bb7847b6372b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Stevenic"}}