{"action":"created","comment":{"url":"https://api.github.com/repos/Flipkart/connekt/pulls/comments/135191052","pull_request_review_id":58576541,"id":135191052,"diff_hunk":"@@ -0,0 +1,58 @@\n+/*\n+ *         -╥⌐⌐⌐⌐            -⌐⌐⌐⌐-\n+ *      ≡╢░░░░⌐\\░░░φ     ╓╝░░░░⌐░░░░╪╕\n+ *     ╣╬░░`    `░░░╢┘ φ▒╣╬╝╜     ░░╢╣Q\n+ *    ║╣╬░⌐        ` ╤▒▒▒Å`        ║╢╬╣\n+ *    ╚╣╬░⌐        ╔▒▒▒▒`«╕        ╢╢╣▒\n+ *     ╫╬░░╖    .░ ╙╨╨  ╣╣╬░φ    ╓φ░╢╢Å\n+ *      ╙╢░░░░⌐\"░░░╜     ╙Å░░░░⌐░░░░╝`\n+ *        ``˚¬ ⌐              ˚˚⌐´\n+ *\n+ *      Copyright © 2016 Flipkart.com\n+ */\n+package com.flipkart.connekt.commons.dao\n+\n+import com.flipkart.connekt.commons.dao.HbaseDao._\n+import com.flipkart.connekt.commons.factories.THTableFactory\n+import com.flipkart.connekt.commons.iomodels._\n+\n+class PullCallbackDao(tableName: String, hTableFactory: THTableFactory) extends CallbackDao(tableName: String, hTableFactory: THTableFactory) {\n+  override def channelEventPropsMap(channelCallbackEvent: CallbackEvent): Map[String, Array[Byte]] = {\n+    val pullCallbackEvent = channelCallbackEvent.asInstanceOf[PullCallbackEvent]\n+    Map[String, Array[Byte]](\n+      \"messageId\" -> pullCallbackEvent.messageId.getUtf8Bytes,\n+      \"contactId\" -> pullCallbackEvent.contactId.getUtf8Bytes,\n+      \"eventId\" -> pullCallbackEvent.eventId.getUtf8Bytes,\n+      \"clientId\" -> pullCallbackEvent.clientId.getUtf8Bytes,\n+      \"contextId\" -> pullCallbackEvent.contextId.getUtf8Bytes,\n+      \"eventType\" -> pullCallbackEvent.eventType.getUtf8Bytes,\n+      \"appName\" -> pullCallbackEvent.appName.getUtf8Bytes,\n+      \"timestamp\" -> pullCallbackEvent.timestamp.getBytes\n+    )\n+  }\n+\n+  override def mapToChannelEvent(channelEventPropsMap: Map[String, Array[Byte]]): CallbackEvent = {\n+    PullCallbackEvent(\n+      messageId = channelEventPropsMap.getS(\"messageId\"),\n+      contactId = channelEventPropsMap.getS(\"contactId\"),\n+      eventId = channelEventPropsMap.getS(\"eventId\"),\n+      clientId = channelEventPropsMap.getS(\"clientId\"),\n+      contextId = channelEventPropsMap.getS(\"contextId\"),\n+      eventType = channelEventPropsMap.getS(\"eventType\"),\n+      appName = channelEventPropsMap.getS(\"appName\"),\n+      timestamp = channelEventPropsMap.getL(\"timestamp\").asInstanceOf[Long]\n+    )\n+  }\n+\n+  override def fetchEventMapFromList(event: List[CallbackEvent]): Map[String, List[CallbackEvent]] = {\n+    val smsCallbackEvents = event.map(_.asInstanceOf[PullCallbackEvent])\n+    smsCallbackEvents.groupBy(p => p.messageId)","path":"commons/src/main/scala/com/flipkart/connekt/commons/dao/PullCallbackDao.scala","position":49,"original_position":49,"commit_id":"3ae83eacaf0da88469529ae3fb111365a3b7eb64","original_commit_id":"3ae83eacaf0da88469529ae3fb111365a3b7eb64","user":{"login":"mimani-s","id":3087762,"avatar_url":"https://avatars0.githubusercontent.com/u/3087762?v=4","gravatar_id":"","url":"https://api.github.com/users/mimani-s","html_url":"https://github.com/mimani-s","followers_url":"https://api.github.com/users/mimani-s/followers","following_url":"https://api.github.com/users/mimani-s/following{/other_user}","gists_url":"https://api.github.com/users/mimani-s/gists{/gist_id}","starred_url":"https://api.github.com/users/mimani-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mimani-s/subscriptions","organizations_url":"https://api.github.com/users/mimani-s/orgs","repos_url":"https://api.github.com/users/mimani-s/repos","events_url":"https://api.github.com/users/mimani-s/events{/privacy}","received_events_url":"https://api.github.com/users/mimani-s/received_events","type":"User","site_admin":false},"body":"Fixed.","created_at":"2017-08-25T06:29:02Z","updated_at":"2017-08-25T06:29:02Z","html_url":"https://github.com/Flipkart/connekt/pull/337#discussion_r135191052","pull_request_url":"https://api.github.com/repos/Flipkart/connekt/pulls/337","_links":{"self":{"href":"https://api.github.com/repos/Flipkart/connekt/pulls/comments/135191052"},"html":{"href":"https://github.com/Flipkart/connekt/pull/337#discussion_r135191052"},"pull_request":{"href":"https://api.github.com/repos/Flipkart/connekt/pulls/337"}},"in_reply_to_id":135144388},"pull_request":{"url":"https://api.github.com/repos/Flipkart/connekt/pulls/337","id":136421464,"html_url":"https://github.com/Flipkart/connekt/pull/337","diff_url":"https://github.com/Flipkart/connekt/pull/337.diff","patch_url":"https://github.com/Flipkart/connekt/pull/337.patch","issue_url":"https://api.github.com/repos/Flipkart/connekt/issues/337","number":337,"state":"open","locked":false,"title":"CET-910 : In app Support in Connekt","user":{"login":"mimani-s","id":3087762,"avatar_url":"https://avatars0.githubusercontent.com/u/3087762?v=4","gravatar_id":"","url":"https://api.github.com/users/mimani-s","html_url":"https://github.com/mimani-s","followers_url":"https://api.github.com/users/mimani-s/followers","following_url":"https://api.github.com/users/mimani-s/following{/other_user}","gists_url":"https://api.github.com/users/mimani-s/gists{/gist_id}","starred_url":"https://api.github.com/users/mimani-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mimani-s/subscriptions","organizations_url":"https://api.github.com/users/mimani-s/orgs","repos_url":"https://api.github.com/users/mimani-s/repos","events_url":"https://api.github.com/users/mimani-s/events{/privacy}","received_events_url":"https://api.github.com/users/mimani-s/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-08-18T07:54:08Z","updated_at":"2017-08-25T06:29:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c2af5c4e566a5cbeaede7c92741537dab4171f4","assignee":{"login":"mimani-s","id":3087762,"avatar_url":"https://avatars0.githubusercontent.com/u/3087762?v=4","gravatar_id":"","url":"https://api.github.com/users/mimani-s","html_url":"https://github.com/mimani-s","followers_url":"https://api.github.com/users/mimani-s/followers","following_url":"https://api.github.com/users/mimani-s/following{/other_user}","gists_url":"https://api.github.com/users/mimani-s/gists{/gist_id}","starred_url":"https://api.github.com/users/mimani-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mimani-s/subscriptions","organizations_url":"https://api.github.com/users/mimani-s/orgs","repos_url":"https://api.github.com/users/mimani-s/repos","events_url":"https://api.github.com/users/mimani-s/events{/privacy}","received_events_url":"https://api.github.com/users/mimani-s/received_events","type":"User","site_admin":false},"assignees":[{"login":"mimani-s","id":3087762,"avatar_url":"https://avatars0.githubusercontent.com/u/3087762?v=4","gravatar_id":"","url":"https://api.github.com/users/mimani-s","html_url":"https://github.com/mimani-s","followers_url":"https://api.github.com/users/mimani-s/followers","following_url":"https://api.github.com/users/mimani-s/following{/other_user}","gists_url":"https://api.github.com/users/mimani-s/gists{/gist_id}","starred_url":"https://api.github.com/users/mimani-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mimani-s/subscriptions","organizations_url":"https://api.github.com/users/mimani-s/orgs","repos_url":"https://api.github.com/users/mimani-s/repos","events_url":"https://api.github.com/users/mimani-s/events{/privacy}","received_events_url":"https://api.github.com/users/mimani-s/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"amarjeetsingh12","id":4013071,"avatar_url":"https://avatars1.githubusercontent.com/u/4013071?v=4","gravatar_id":"","url":"https://api.github.com/users/amarjeetsingh12","html_url":"https://github.com/amarjeetsingh12","followers_url":"https://api.github.com/users/amarjeetsingh12/followers","following_url":"https://api.github.com/users/amarjeetsingh12/following{/other_user}","gists_url":"https://api.github.com/users/amarjeetsingh12/gists{/gist_id}","starred_url":"https://api.github.com/users/amarjeetsingh12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amarjeetsingh12/subscriptions","organizations_url":"https://api.github.com/users/amarjeetsingh12/orgs","repos_url":"https://api.github.com/users/amarjeetsingh12/repos","events_url":"https://api.github.com/users/amarjeetsingh12/events{/privacy}","received_events_url":"https://api.github.com/users/amarjeetsingh12/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Flipkart/connekt/pulls/337/commits","review_comments_url":"https://api.github.com/repos/Flipkart/connekt/pulls/337/comments","review_comment_url":"https://api.github.com/repos/Flipkart/connekt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Flipkart/connekt/issues/337/comments","statuses_url":"https://api.github.com/repos/Flipkart/connekt/statuses/3ae83eacaf0da88469529ae3fb111365a3b7eb64","head":{"label":"Flipkart:in-app-mimani","ref":"in-app-mimani","sha":"3ae83eacaf0da88469529ae3fb111365a3b7eb64","user":{"login":"Flipkart","id":1179997,"avatar_url":"https://avatars0.githubusercontent.com/u/1179997?v=4","gravatar_id":"","url":"https://api.github.com/users/Flipkart","html_url":"https://github.com/Flipkart","followers_url":"https://api.github.com/users/Flipkart/followers","following_url":"https://api.github.com/users/Flipkart/following{/other_user}","gists_url":"https://api.github.com/users/Flipkart/gists{/gist_id}","starred_url":"https://api.github.com/users/Flipkart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flipkart/subscriptions","organizations_url":"https://api.github.com/users/Flipkart/orgs","repos_url":"https://api.github.com/users/Flipkart/repos","events_url":"https://api.github.com/users/Flipkart/events{/privacy}","received_events_url":"https://api.github.com/users/Flipkart/received_events","type":"Organization","site_admin":false},"repo":{"id":46194967,"name":"connekt","full_name":"Flipkart/connekt","owner":{"login":"Flipkart","id":1179997,"avatar_url":"https://avatars0.githubusercontent.com/u/1179997?v=4","gravatar_id":"","url":"https://api.github.com/users/Flipkart","html_url":"https://github.com/Flipkart","followers_url":"https://api.github.com/users/Flipkart/followers","following_url":"https://api.github.com/users/Flipkart/following{/other_user}","gists_url":"https://api.github.com/users/Flipkart/gists{/gist_id}","starred_url":"https://api.github.com/users/Flipkart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flipkart/subscriptions","organizations_url":"https://api.github.com/users/Flipkart/orgs","repos_url":"https://api.github.com/users/Flipkart/repos","events_url":"https://api.github.com/users/Flipkart/events{/privacy}","received_events_url":"https://api.github.com/users/Flipkart/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Flipkart/connekt","description":"NextGen Communications Gateway","fork":false,"url":"https://api.github.com/repos/Flipkart/connekt","forks_url":"https://api.github.com/repos/Flipkart/connekt/forks","keys_url":"https://api.github.com/repos/Flipkart/connekt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Flipkart/connekt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Flipkart/connekt/teams","hooks_url":"https://api.github.com/repos/Flipkart/connekt/hooks","issue_events_url":"https://api.github.com/repos/Flipkart/connekt/issues/events{/number}","events_url":"https://api.github.com/repos/Flipkart/connekt/events","assignees_url":"https://api.github.com/repos/Flipkart/connekt/assignees{/user}","branches_url":"https://api.github.com/repos/Flipkart/connekt/branches{/branch}","tags_url":"https://api.github.com/repos/Flipkart/connekt/tags","blobs_url":"https://api.github.com/repos/Flipkart/connekt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Flipkart/connekt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Flipkart/connekt/git/refs{/sha}","trees_url":"https://api.github.com/repos/Flipkart/connekt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Flipkart/connekt/statuses/{sha}","languages_url":"https://api.github.com/repos/Flipkart/connekt/languages","stargazers_url":"https://api.github.com/repos/Flipkart/connekt/stargazers","contributors_url":"https://api.github.com/repos/Flipkart/connekt/contributors","subscribers_url":"https://api.github.com/repos/Flipkart/connekt/subscribers","subscription_url":"https://api.github.com/repos/Flipkart/connekt/subscription","commits_url":"https://api.github.com/repos/Flipkart/connekt/commits{/sha}","git_commits_url":"https://api.github.com/repos/Flipkart/connekt/git/commits{/sha}","comments_url":"https://api.github.com/repos/Flipkart/connekt/comments{/number}","issue_comment_url":"https://api.github.com/repos/Flipkart/connekt/issues/comments{/number}","contents_url":"https://api.github.com/repos/Flipkart/connekt/contents/{+path}","compare_url":"https://api.github.com/repos/Flipkart/connekt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Flipkart/connekt/merges","archive_url":"https://api.github.com/repos/Flipkart/connekt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Flipkart/connekt/downloads","issues_url":"https://api.github.com/repos/Flipkart/connekt/issues{/number}","pulls_url":"https://api.github.com/repos/Flipkart/connekt/pulls{/number}","milestones_url":"https://api.github.com/repos/Flipkart/connekt/milestones{/number}","notifications_url":"https://api.github.com/repos/Flipkart/connekt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Flipkart/connekt/labels{/name}","releases_url":"https://api.github.com/repos/Flipkart/connekt/releases{/id}","deployments_url":"https://api.github.com/repos/Flipkart/connekt/deployments","created_at":"2015-11-14T22:40:10Z","updated_at":"2017-07-21T12:57:39Z","pushed_at":"2017-08-24T14:31:08Z","git_url":"git://github.com/Flipkart/connekt.git","ssh_url":"git@github.com:Flipkart/connekt.git","clone_url":"https://github.com/Flipkart/connekt.git","svn_url":"https://github.com/Flipkart/connekt","homepage":"","size":3918,"stargazers_count":4,"watchers_count":4,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":4,"default_branch":"master"}},"base":{"label":"Flipkart:master","ref":"master","sha":"0e2ddc233c3480c19b3ae0071ae7aa2c6b06f276","user":{"login":"Flipkart","id":1179997,"avatar_url":"https://avatars0.githubusercontent.com/u/1179997?v=4","gravatar_id":"","url":"https://api.github.com/users/Flipkart","html_url":"https://github.com/Flipkart","followers_url":"https://api.github.com/users/Flipkart/followers","following_url":"https://api.github.com/users/Flipkart/following{/other_user}","gists_url":"https://api.github.com/users/Flipkart/gists{/gist_id}","starred_url":"https://api.github.com/users/Flipkart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flipkart/subscriptions","organizations_url":"https://api.github.com/users/Flipkart/orgs","repos_url":"https://api.github.com/users/Flipkart/repos","events_url":"https://api.github.com/users/Flipkart/events{/privacy}","received_events_url":"https://api.github.com/users/Flipkart/received_events","type":"Organization","site_admin":false},"repo":{"id":46194967,"name":"connekt","full_name":"Flipkart/connekt","owner":{"login":"Flipkart","id":1179997,"avatar_url":"https://avatars0.githubusercontent.com/u/1179997?v=4","gravatar_id":"","url":"https://api.github.com/users/Flipkart","html_url":"https://github.com/Flipkart","followers_url":"https://api.github.com/users/Flipkart/followers","following_url":"https://api.github.com/users/Flipkart/following{/other_user}","gists_url":"https://api.github.com/users/Flipkart/gists{/gist_id}","starred_url":"https://api.github.com/users/Flipkart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flipkart/subscriptions","organizations_url":"https://api.github.com/users/Flipkart/orgs","repos_url":"https://api.github.com/users/Flipkart/repos","events_url":"https://api.github.com/users/Flipkart/events{/privacy}","received_events_url":"https://api.github.com/users/Flipkart/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Flipkart/connekt","description":"NextGen Communications Gateway","fork":false,"url":"https://api.github.com/repos/Flipkart/connekt","forks_url":"https://api.github.com/repos/Flipkart/connekt/forks","keys_url":"https://api.github.com/repos/Flipkart/connekt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Flipkart/connekt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Flipkart/connekt/teams","hooks_url":"https://api.github.com/repos/Flipkart/connekt/hooks","issue_events_url":"https://api.github.com/repos/Flipkart/connekt/issues/events{/number}","events_url":"https://api.github.com/repos/Flipkart/connekt/events","assignees_url":"https://api.github.com/repos/Flipkart/connekt/assignees{/user}","branches_url":"https://api.github.com/repos/Flipkart/connekt/branches{/branch}","tags_url":"https://api.github.com/repos/Flipkart/connekt/tags","blobs_url":"https://api.github.com/repos/Flipkart/connekt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Flipkart/connekt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Flipkart/connekt/git/refs{/sha}","trees_url":"https://api.github.com/repos/Flipkart/connekt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Flipkart/connekt/statuses/{sha}","languages_url":"https://api.github.com/repos/Flipkart/connekt/languages","stargazers_url":"https://api.github.com/repos/Flipkart/connekt/stargazers","contributors_url":"https://api.github.com/repos/Flipkart/connekt/contributors","subscribers_url":"https://api.github.com/repos/Flipkart/connekt/subscribers","subscription_url":"https://api.github.com/repos/Flipkart/connekt/subscription","commits_url":"https://api.github.com/repos/Flipkart/connekt/commits{/sha}","git_commits_url":"https://api.github.com/repos/Flipkart/connekt/git/commits{/sha}","comments_url":"https://api.github.com/repos/Flipkart/connekt/comments{/number}","issue_comment_url":"https://api.github.com/repos/Flipkart/connekt/issues/comments{/number}","contents_url":"https://api.github.com/repos/Flipkart/connekt/contents/{+path}","compare_url":"https://api.github.com/repos/Flipkart/connekt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Flipkart/connekt/merges","archive_url":"https://api.github.com/repos/Flipkart/connekt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Flipkart/connekt/downloads","issues_url":"https://api.github.com/repos/Flipkart/connekt/issues{/number}","pulls_url":"https://api.github.com/repos/Flipkart/connekt/pulls{/number}","milestones_url":"https://api.github.com/repos/Flipkart/connekt/milestones{/number}","notifications_url":"https://api.github.com/repos/Flipkart/connekt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Flipkart/connekt/labels{/name}","releases_url":"https://api.github.com/repos/Flipkart/connekt/releases{/id}","deployments_url":"https://api.github.com/repos/Flipkart/connekt/deployments","created_at":"2015-11-14T22:40:10Z","updated_at":"2017-07-21T12:57:39Z","pushed_at":"2017-08-24T14:31:08Z","git_url":"git://github.com/Flipkart/connekt.git","ssh_url":"git@github.com:Flipkart/connekt.git","clone_url":"https://github.com/Flipkart/connekt.git","svn_url":"https://github.com/Flipkart/connekt","homepage":"","size":3918,"stargazers_count":4,"watchers_count":4,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Flipkart/connekt/pulls/337"},"html":{"href":"https://github.com/Flipkart/connekt/pull/337"},"issue":{"href":"https://api.github.com/repos/Flipkart/connekt/issues/337"},"comments":{"href":"https://api.github.com/repos/Flipkart/connekt/issues/337/comments"},"review_comments":{"href":"https://api.github.com/repos/Flipkart/connekt/pulls/337/comments"},"review_comment":{"href":"https://api.github.com/repos/Flipkart/connekt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Flipkart/connekt/pulls/337/commits"},"statuses":{"href":"https://api.github.com/repos/Flipkart/connekt/statuses/3ae83eacaf0da88469529ae3fb111365a3b7eb64"}}}}
{"actor":{"display_login":"mimani-s"}}