{"action":"created","comment":{"url":"https://api.github.com/repos/ios-driver/ios-driver/pulls/comments/24562862","id":24562862,"diff_hunk":"@@ -0,0 +1,45 @@\n+/*\n+ * Copyright 2012-2013 eBay Software Foundation and ios-driver committers\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except\n+ * in compliance with the License. You may obtain a copy of the License at\n+ *\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software distributed under the License\n+ * is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n+ * or implied. See the License for the specific language governing permissions and limitations under\n+ * the License.\n+ */\n+\n+package org.uiautomation.ios.wkrdp.message;\n+\n+import org.json.JSONObject;\n+\n+public abstract class AbstractApplicationDataMessage extends BaseIOSWebKitMessage implements ApplicationDataMessage {\n+\n+  protected String destination;\n+\n+  protected JSONObject message;\n+\n+  public AbstractApplicationDataMessage(String rawMessage) throws Exception {\n+    super(rawMessage);\n+    populateMessage();\n+    populateDestinationKey();\n+  }\n+\n+  @Override\n+  public JSONObject getMessage() {","path":"server/src/main/java/org/uiautomation/ios/wkrdp/message/AbstractApplicationDataMessage.java","position":32,"original_position":32,"commit_id":"8dfa8fda0802688cf2a12712e5ec7befbae95968","original_commit_id":"8dfa8fda0802688cf2a12712e5ec7befbae95968","user":{"login":"krmahadevan","id":909773,"avatar_url":"https://avatars.githubusercontent.com/u/909773?v=3","gravatar_id":"","url":"https://api.github.com/users/krmahadevan","html_url":"https://github.com/krmahadevan","followers_url":"https://api.github.com/users/krmahadevan/followers","following_url":"https://api.github.com/users/krmahadevan/following{/other_user}","gists_url":"https://api.github.com/users/krmahadevan/gists{/gist_id}","starred_url":"https://api.github.com/users/krmahadevan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krmahadevan/subscriptions","organizations_url":"https://api.github.com/users/krmahadevan/orgs","repos_url":"https://api.github.com/users/krmahadevan/repos","events_url":"https://api.github.com/users/krmahadevan/events{/privacy}","received_events_url":"https://api.github.com/users/krmahadevan/received_events","type":"User","site_admin":false},"body":"Does IOS driver codebase still use `org.json.JSONObject` because as of Selenium 2.44.0 the selenium codebase has moved away from using `org.son.JSONObject`.","created_at":"2015-02-12T07:25:49Z","updated_at":"2015-02-12T07:25:49Z","html_url":"https://github.com/ios-driver/ios-driver/pull/352#discussion_r24562862","pull_request_url":"https://api.github.com/repos/ios-driver/ios-driver/pulls/352","_links":{"self":{"href":"https://api.github.com/repos/ios-driver/ios-driver/pulls/comments/24562862"},"html":{"href":"https://github.com/ios-driver/ios-driver/pull/352#discussion_r24562862"},"pull_request":{"href":"https://api.github.com/repos/ios-driver/ios-driver/pulls/352"}}},"pull_request":{"url":"https://api.github.com/repos/ios-driver/ios-driver/pulls/352","id":28984190,"html_url":"https://github.com/ios-driver/ios-driver/pull/352","diff_url":"https://github.com/ios-driver/ios-driver/pull/352.diff","patch_url":"https://github.com/ios-driver/ios-driver/pull/352.patch","issue_url":"https://api.github.com/repos/ios-driver/ios-driver/issues/352","number":352,"state":"open","locked":false,"title":"Fix for different WKRD protocol messages in iOS7 and iOS8.","user":{"login":"kumaravel-jayakumar","id":1195567,"avatar_url":"https://avatars.githubusercontent.com/u/1195567?v=3","gravatar_id":"","url":"https://api.github.com/users/kumaravel-jayakumar","html_url":"https://github.com/kumaravel-jayakumar","followers_url":"https://api.github.com/users/kumaravel-jayakumar/followers","following_url":"https://api.github.com/users/kumaravel-jayakumar/following{/other_user}","gists_url":"https://api.github.com/users/kumaravel-jayakumar/gists{/gist_id}","starred_url":"https://api.github.com/users/kumaravel-jayakumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumaravel-jayakumar/subscriptions","organizations_url":"https://api.github.com/users/kumaravel-jayakumar/orgs","repos_url":"https://api.github.com/users/kumaravel-jayakumar/repos","events_url":"https://api.github.com/users/kumaravel-jayakumar/events{/privacy}","received_events_url":"https://api.github.com/users/kumaravel-jayakumar/received_events","type":"User","site_admin":false},"body":"Fixed the NPE in \"https://github.com/ios-driver/ios-driver/commit/9c0e704c73864ae5841b10157c9f2969fc53f08e\" while safely adding the messages for iOS7.\r\nCreated a Factory based message creation logic for iOS7 and iOS8 by separating messages which are different.\r\nCreated separated packages \"org.uiautomation.ios.wkrdp.message.ios7\" and \"org.uiautomation.ios.wkrdp.message.ios8\" for messages received in iOS7 and iOS8 that are different.\r\nRe-factored and cleaned up classes and methods. ","created_at":"2015-02-10T06:32:30Z","updated_at":"2015-02-12T07:25:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a635136cccc0426e9c8c3e81e5d156041c62f3b7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ios-driver/ios-driver/pulls/352/commits","review_comments_url":"https://api.github.com/repos/ios-driver/ios-driver/pulls/352/comments","review_comment_url":"https://api.github.com/repos/ios-driver/ios-driver/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ios-driver/ios-driver/issues/352/comments","statuses_url":"https://api.github.com/repos/ios-driver/ios-driver/statuses/8dfa8fda0802688cf2a12712e5ec7befbae95968","head":{"label":"kumaravel-jayakumar:appliationsentlisting-message-fix","ref":"appliationsentlisting-message-fix","sha":"8dfa8fda0802688cf2a12712e5ec7befbae95968","user":{"login":"kumaravel-jayakumar","id":1195567,"avatar_url":"https://avatars.githubusercontent.com/u/1195567?v=3","gravatar_id":"","url":"https://api.github.com/users/kumaravel-jayakumar","html_url":"https://github.com/kumaravel-jayakumar","followers_url":"https://api.github.com/users/kumaravel-jayakumar/followers","following_url":"https://api.github.com/users/kumaravel-jayakumar/following{/other_user}","gists_url":"https://api.github.com/users/kumaravel-jayakumar/gists{/gist_id}","starred_url":"https://api.github.com/users/kumaravel-jayakumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumaravel-jayakumar/subscriptions","organizations_url":"https://api.github.com/users/kumaravel-jayakumar/orgs","repos_url":"https://api.github.com/users/kumaravel-jayakumar/repos","events_url":"https://api.github.com/users/kumaravel-jayakumar/events{/privacy}","received_events_url":"https://api.github.com/users/kumaravel-jayakumar/received_events","type":"User","site_admin":false},"repo":{"id":24403289,"name":"ios-driver","full_name":"kumaravel-jayakumar/ios-driver","owner":{"login":"kumaravel-jayakumar","id":1195567,"avatar_url":"https://avatars.githubusercontent.com/u/1195567?v=3","gravatar_id":"","url":"https://api.github.com/users/kumaravel-jayakumar","html_url":"https://github.com/kumaravel-jayakumar","followers_url":"https://api.github.com/users/kumaravel-jayakumar/followers","following_url":"https://api.github.com/users/kumaravel-jayakumar/following{/other_user}","gists_url":"https://api.github.com/users/kumaravel-jayakumar/gists{/gist_id}","starred_url":"https://api.github.com/users/kumaravel-jayakumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumaravel-jayakumar/subscriptions","organizations_url":"https://api.github.com/users/kumaravel-jayakumar/orgs","repos_url":"https://api.github.com/users/kumaravel-jayakumar/repos","events_url":"https://api.github.com/users/kumaravel-jayakumar/events{/privacy}","received_events_url":"https://api.github.com/users/kumaravel-jayakumar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kumaravel-jayakumar/ios-driver","description":"Selenium server to test native, hybrid and web apps on IOS. Join us on IRC #ios-driver on freenode","fork":true,"url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver","forks_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/forks","keys_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/teams","hooks_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/hooks","issue_events_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/issues/events{/number}","events_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/events","assignees_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/assignees{/user}","branches_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/branches{/branch}","tags_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/tags","blobs_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/languages","stargazers_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/stargazers","contributors_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/contributors","subscribers_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/subscribers","subscription_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/subscription","commits_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/issues/comments/{number}","contents_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/contents/{+path}","compare_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/merges","archive_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/downloads","issues_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/issues{/number}","pulls_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/labels{/name}","releases_url":"https://api.github.com/repos/kumaravel-jayakumar/ios-driver/releases{/id}","created_at":"2014-09-24T06:26:05Z","updated_at":"2015-02-06T12:07:35Z","pushed_at":"2015-02-10T12:33:43Z","git_url":"git://github.com/kumaravel-jayakumar/ios-driver.git","ssh_url":"git@github.com:kumaravel-jayakumar/ios-driver.git","clone_url":"https://github.com/kumaravel-jayakumar/ios-driver.git","svn_url":"https://github.com/kumaravel-jayakumar/ios-driver","homepage":"http://ios-driver.github.com/ios-driver/","size":50052,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"ios-driver:dev","ref":"dev","sha":"80961593e37c6a0818bee4dd3c138055d20c9412","user":{"login":"ios-driver","id":3475739,"avatar_url":"https://avatars.githubusercontent.com/u/3475739?v=3","gravatar_id":"","url":"https://api.github.com/users/ios-driver","html_url":"https://github.com/ios-driver","followers_url":"https://api.github.com/users/ios-driver/followers","following_url":"https://api.github.com/users/ios-driver/following{/other_user}","gists_url":"https://api.github.com/users/ios-driver/gists{/gist_id}","starred_url":"https://api.github.com/users/ios-driver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ios-driver/subscriptions","organizations_url":"https://api.github.com/users/ios-driver/orgs","repos_url":"https://api.github.com/users/ios-driver/repos","events_url":"https://api.github.com/users/ios-driver/events{/privacy}","received_events_url":"https://api.github.com/users/ios-driver/received_events","type":"Organization","site_admin":false},"repo":{"id":8025185,"name":"ios-driver","full_name":"ios-driver/ios-driver","owner":{"login":"ios-driver","id":3475739,"avatar_url":"https://avatars.githubusercontent.com/u/3475739?v=3","gravatar_id":"","url":"https://api.github.com/users/ios-driver","html_url":"https://github.com/ios-driver","followers_url":"https://api.github.com/users/ios-driver/followers","following_url":"https://api.github.com/users/ios-driver/following{/other_user}","gists_url":"https://api.github.com/users/ios-driver/gists{/gist_id}","starred_url":"https://api.github.com/users/ios-driver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ios-driver/subscriptions","organizations_url":"https://api.github.com/users/ios-driver/orgs","repos_url":"https://api.github.com/users/ios-driver/repos","events_url":"https://api.github.com/users/ios-driver/events{/privacy}","received_events_url":"https://api.github.com/users/ios-driver/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ios-driver/ios-driver","description":"Selenium server to test native, hybrid and web apps on IOS. Join us on IRC #ios-driver on freenode","fork":false,"url":"https://api.github.com/repos/ios-driver/ios-driver","forks_url":"https://api.github.com/repos/ios-driver/ios-driver/forks","keys_url":"https://api.github.com/repos/ios-driver/ios-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ios-driver/ios-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ios-driver/ios-driver/teams","hooks_url":"https://api.github.com/repos/ios-driver/ios-driver/hooks","issue_events_url":"https://api.github.com/repos/ios-driver/ios-driver/issues/events{/number}","events_url":"https://api.github.com/repos/ios-driver/ios-driver/events","assignees_url":"https://api.github.com/repos/ios-driver/ios-driver/assignees{/user}","branches_url":"https://api.github.com/repos/ios-driver/ios-driver/branches{/branch}","tags_url":"https://api.github.com/repos/ios-driver/ios-driver/tags","blobs_url":"https://api.github.com/repos/ios-driver/ios-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ios-driver/ios-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ios-driver/ios-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/ios-driver/ios-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ios-driver/ios-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/ios-driver/ios-driver/languages","stargazers_url":"https://api.github.com/repos/ios-driver/ios-driver/stargazers","contributors_url":"https://api.github.com/repos/ios-driver/ios-driver/contributors","subscribers_url":"https://api.github.com/repos/ios-driver/ios-driver/subscribers","subscription_url":"https://api.github.com/repos/ios-driver/ios-driver/subscription","commits_url":"https://api.github.com/repos/ios-driver/ios-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/ios-driver/ios-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/ios-driver/ios-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/ios-driver/ios-driver/issues/comments/{number}","contents_url":"https://api.github.com/repos/ios-driver/ios-driver/contents/{+path}","compare_url":"https://api.github.com/repos/ios-driver/ios-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ios-driver/ios-driver/merges","archive_url":"https://api.github.com/repos/ios-driver/ios-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ios-driver/ios-driver/downloads","issues_url":"https://api.github.com/repos/ios-driver/ios-driver/issues{/number}","pulls_url":"https://api.github.com/repos/ios-driver/ios-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/ios-driver/ios-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/ios-driver/ios-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ios-driver/ios-driver/labels{/name}","releases_url":"https://api.github.com/repos/ios-driver/ios-driver/releases{/id}","created_at":"2013-02-05T08:22:00Z","updated_at":"2015-02-11T22:40:12Z","pushed_at":"2015-02-08T00:55:45Z","git_url":"git://github.com/ios-driver/ios-driver.git","ssh_url":"git@github.com:ios-driver/ios-driver.git","clone_url":"https://github.com/ios-driver/ios-driver.git","svn_url":"https://github.com/ios-driver/ios-driver","homepage":"http://ios-driver.github.com/ios-driver/","size":55941,"stargazers_count":222,"watchers_count":222,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":109,"mirror_url":null,"open_issues_count":103,"forks":109,"open_issues":103,"watchers":222,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/ios-driver/ios-driver/pulls/352"},"html":{"href":"https://github.com/ios-driver/ios-driver/pull/352"},"issue":{"href":"https://api.github.com/repos/ios-driver/ios-driver/issues/352"},"comments":{"href":"https://api.github.com/repos/ios-driver/ios-driver/issues/352/comments"},"review_comments":{"href":"https://api.github.com/repos/ios-driver/ios-driver/pulls/352/comments"},"review_comment":{"href":"https://api.github.com/repos/ios-driver/ios-driver/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ios-driver/ios-driver/pulls/352/commits"},"statuses":{"href":"https://api.github.com/repos/ios-driver/ios-driver/statuses/8dfa8fda0802688cf2a12712e5ec7befbae95968"}}}}