{"action":"created","comment":{"url":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/comments/41457219","id":41457219,"diff_hunk":"@@ -0,0 +1,75 @@\n+/*\n+ Copyright (c) 2015, Alejandro Martinez, Quintiles Inc.\n+ Copyright (c) 2015, Brian Kelly, Quintiles Inc.\n+ Copyright (c) 2015, Bryan Strothmann, Quintiles Inc.\n+ Copyright (c) 2015, Greg Yip, Quintiles Inc.\n+ Copyright (c) 2015, John Reites, Quintiles Inc.\n+ Copyright (c) 2015, Richard Thomas, Quintiles Inc.\n+ Copyright (c) 2015, Shelby Brooks, Quintiles Inc.\n+ Copyright (c) 2015, Pavel Kanzelsberger, Quintiles Inc.\n+ \n+ Redistribution and use in source and binary forms, with or without modification,\n+ are permitted provided that the following conditions are met:\n+ \n+ 1.  Redistributions of source code must retain the above copyright notice, this\n+ list of conditions and the following disclaimer.\n+ \n+ 2.  Redistributions in binary form must reproduce the above copyright notice,\n+ this list of conditions and the following disclaimer in the documentation and/or\n+ other materials provided with the distribution.\n+ \n+ 3.  Neither the name of the copyright holder(s) nor the names of any contributors\n+ may be used to endorse or promote products derived from this software without\n+ specific prior written permission. No license is granted to the trademarks of\n+ the copyright holders even if such marks are included in this software.\n+ \n+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE\n+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+ */\n+\n+\n+#import <UIKit/UIKit.h>\n+\n+@class ORKLocationSelectionView;\n+@class MKPlacemark;\n+\n+@protocol ORKLocationSelectionViewDelegate <NSObject>\n+\n+- (void)locationSelectionViewDidChange:(nonnull ORKLocationSelectionView *)view;\n+\n+- (void)locationSelectionViewDidBeginEditing:(nonnull ORKLocationSelectionView *)view;\n+\n+- (void)locationSelectionViewDidEndEditing:(nonnull ORKLocationSelectionView *)view;\n+\n+- (void)locationSelectionViewNeedsResize:(nonnull ORKLocationSelectionView *)view;\n+\n+- (void)locationSelectionView:(nonnull ORKLocationSelectionView *)view didFailWithError:(nonnull NSError *)error;\n+\n+@end\n+\n+\n+@interface ORKLocationSelectionView : UIView\n+\n+@property (nonatomic, weak, nullable) id<ORKLocationSelectionViewDelegate> delegate;\n+\n+@property (nonatomic, strong, nullable) MKPlacemark *answer;\n+\n+@property (nonatomic, assign) BOOL edgeToEdgeMap;\n+\n+- (nonnull instancetype)initWithOpenMap:(BOOL)openMap;\n+\n+- (void)setPlaceholderText:(nullable NSString *)text;\n+\n+- (void)setTextColor:(nonnull UIColor *)color;\n+\n+- (void)showMapView;\n+\n+@end","path":"ResearchKit/Common/ORKLocationSelectionView.h","position":75,"original_position":75,"commit_id":"452665de14c07d85c47c080ebb7f6caf428a7b41","original_commit_id":"452665de14c07d85c47c080ebb7f6caf428a7b41","user":{"login":"umerkhan-apple","id":13040996,"avatar_url":"https://avatars.githubusercontent.com/u/13040996?v=3","gravatar_id":"","url":"https://api.github.com/users/umerkhan-apple","html_url":"https://github.com/umerkhan-apple","followers_url":"https://api.github.com/users/umerkhan-apple/followers","following_url":"https://api.github.com/users/umerkhan-apple/following{/other_user}","gists_url":"https://api.github.com/users/umerkhan-apple/gists{/gist_id}","starred_url":"https://api.github.com/users/umerkhan-apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umerkhan-apple/subscriptions","organizations_url":"https://api.github.com/users/umerkhan-apple/orgs","repos_url":"https://api.github.com/users/umerkhan-apple/repos","events_url":"https://api.github.com/users/umerkhan-apple/events{/privacy}","received_events_url":"https://api.github.com/users/umerkhan-apple/received_events","type":"User","site_admin":false},"body":"Add `NS_ASSUME_NONULL_BEGIN` and `NS_ASSUME_NONULL_END` to this file. And remove all the `nonnull` specifiers.","created_at":"2015-10-07T22:39:41Z","updated_at":"2015-10-07T22:39:41Z","html_url":"https://github.com/ResearchKit/ResearchKit/pull/478#discussion_r41457219","pull_request_url":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/478","_links":{"self":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/comments/41457219"},"html":{"href":"https://github.com/ResearchKit/ResearchKit/pull/478#discussion_r41457219"},"pull_request":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/478"}}},"pull_request":{"url":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/478","id":45916545,"html_url":"https://github.com/ResearchKit/ResearchKit/pull/478","diff_url":"https://github.com/ResearchKit/ResearchKit/pull/478.diff","patch_url":"https://github.com/ResearchKit/ResearchKit/pull/478.patch","issue_url":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/478","number":478,"state":"open","locked":false,"title":"Location Question Type","user":{"login":"QuintilesRK","id":14351575,"avatar_url":"https://avatars.githubusercontent.com/u/14351575?v=3","gravatar_id":"","url":"https://api.github.com/users/QuintilesRK","html_url":"https://github.com/QuintilesRK","followers_url":"https://api.github.com/users/QuintilesRK/followers","following_url":"https://api.github.com/users/QuintilesRK/following{/other_user}","gists_url":"https://api.github.com/users/QuintilesRK/gists{/gist_id}","starred_url":"https://api.github.com/users/QuintilesRK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuintilesRK/subscriptions","organizations_url":"https://api.github.com/users/QuintilesRK/orgs","repos_url":"https://api.github.com/users/QuintilesRK/repos","events_url":"https://api.github.com/users/QuintilesRK/events{/privacy}","received_events_url":"https://api.github.com/users/QuintilesRK/received_events","type":"User","site_admin":false},"body":"This pull request adds support for a new location question and answer type. It can be used as a single question step and/or in a form task. You may have multiple entries in the form task and while interacting with each individual form item, the map will hide or show depending on your current selection. The location question handles the permission request for accessing the devices current location, when using the current location button. It will reverse geocode the current location value to an address and fill it in the question answer field.","created_at":"2015-09-24T16:07:27Z","updated_at":"2015-10-07T22:39:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"abbbb6a6077d74a9cfd108f93f32993ad2950820","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/478/commits","review_comments_url":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/478/comments","review_comment_url":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/478/comments","statuses_url":"https://api.github.com/repos/ResearchKit/ResearchKit/statuses/452665de14c07d85c47c080ebb7f6caf428a7b41","head":{"label":"QuintilesRK:LocationQuestion","ref":"LocationQuestion","sha":"452665de14c07d85c47c080ebb7f6caf428a7b41","user":{"login":"QuintilesRK","id":14351575,"avatar_url":"https://avatars.githubusercontent.com/u/14351575?v=3","gravatar_id":"","url":"https://api.github.com/users/QuintilesRK","html_url":"https://github.com/QuintilesRK","followers_url":"https://api.github.com/users/QuintilesRK/followers","following_url":"https://api.github.com/users/QuintilesRK/following{/other_user}","gists_url":"https://api.github.com/users/QuintilesRK/gists{/gist_id}","starred_url":"https://api.github.com/users/QuintilesRK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuintilesRK/subscriptions","organizations_url":"https://api.github.com/users/QuintilesRK/orgs","repos_url":"https://api.github.com/users/QuintilesRK/repos","events_url":"https://api.github.com/users/QuintilesRK/events{/privacy}","received_events_url":"https://api.github.com/users/QuintilesRK/received_events","type":"User","site_admin":false},"repo":{"id":43075990,"name":"ResearchKit","full_name":"QuintilesRK/ResearchKit","owner":{"login":"QuintilesRK","id":14351575,"avatar_url":"https://avatars.githubusercontent.com/u/14351575?v=3","gravatar_id":"","url":"https://api.github.com/users/QuintilesRK","html_url":"https://github.com/QuintilesRK","followers_url":"https://api.github.com/users/QuintilesRK/followers","following_url":"https://api.github.com/users/QuintilesRK/following{/other_user}","gists_url":"https://api.github.com/users/QuintilesRK/gists{/gist_id}","starred_url":"https://api.github.com/users/QuintilesRK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuintilesRK/subscriptions","organizations_url":"https://api.github.com/users/QuintilesRK/orgs","repos_url":"https://api.github.com/users/QuintilesRK/repos","events_url":"https://api.github.com/users/QuintilesRK/events{/privacy}","received_events_url":"https://api.github.com/users/QuintilesRK/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/QuintilesRK/ResearchKit","description":"ResearchKit is an open source software framework that makes it easy to create apps for medical research or for other research projects.","fork":true,"url":"https://api.github.com/repos/QuintilesRK/ResearchKit","forks_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/forks","keys_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/teams","hooks_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/hooks","issue_events_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/issues/events{/number}","events_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/events","assignees_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/assignees{/user}","branches_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/branches{/branch}","tags_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/tags","blobs_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/statuses/{sha}","languages_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/languages","stargazers_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/stargazers","contributors_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/contributors","subscribers_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/subscribers","subscription_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/subscription","commits_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/contents/{+path}","compare_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/merges","archive_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/downloads","issues_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/issues{/number}","pulls_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/pulls{/number}","milestones_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/milestones{/number}","notifications_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/labels{/name}","releases_url":"https://api.github.com/repos/QuintilesRK/ResearchKit/releases{/id}","created_at":"2015-09-24T15:36:38Z","updated_at":"2015-10-02T19:37:15Z","pushed_at":"2015-10-07T20:53:50Z","git_url":"git://github.com/QuintilesRK/ResearchKit.git","ssh_url":"git@github.com:QuintilesRK/ResearchKit.git","clone_url":"https://github.com/QuintilesRK/ResearchKit.git","svn_url":"https://github.com/QuintilesRK/ResearchKit","homepage":"","size":18863,"stargazers_count":1,"watchers_count":1,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"ResearchKit:master","ref":"master","sha":"7f106898e23dd00057dc08a77591913f851f6bd7","user":{"login":"ResearchKit","id":11183179,"avatar_url":"https://avatars.githubusercontent.com/u/11183179?v=3","gravatar_id":"","url":"https://api.github.com/users/ResearchKit","html_url":"https://github.com/ResearchKit","followers_url":"https://api.github.com/users/ResearchKit/followers","following_url":"https://api.github.com/users/ResearchKit/following{/other_user}","gists_url":"https://api.github.com/users/ResearchKit/gists{/gist_id}","starred_url":"https://api.github.com/users/ResearchKit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ResearchKit/subscriptions","organizations_url":"https://api.github.com/users/ResearchKit/orgs","repos_url":"https://api.github.com/users/ResearchKit/repos","events_url":"https://api.github.com/users/ResearchKit/events{/privacy}","received_events_url":"https://api.github.com/users/ResearchKit/received_events","type":"Organization","site_admin":false},"repo":{"id":31979038,"name":"ResearchKit","full_name":"ResearchKit/ResearchKit","owner":{"login":"ResearchKit","id":11183179,"avatar_url":"https://avatars.githubusercontent.com/u/11183179?v=3","gravatar_id":"","url":"https://api.github.com/users/ResearchKit","html_url":"https://github.com/ResearchKit","followers_url":"https://api.github.com/users/ResearchKit/followers","following_url":"https://api.github.com/users/ResearchKit/following{/other_user}","gists_url":"https://api.github.com/users/ResearchKit/gists{/gist_id}","starred_url":"https://api.github.com/users/ResearchKit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ResearchKit/subscriptions","organizations_url":"https://api.github.com/users/ResearchKit/orgs","repos_url":"https://api.github.com/users/ResearchKit/repos","events_url":"https://api.github.com/users/ResearchKit/events{/privacy}","received_events_url":"https://api.github.com/users/ResearchKit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ResearchKit/ResearchKit","description":"ResearchKit is an open source software framework that makes it easy to create apps for medical research or for other research projects.","fork":false,"url":"https://api.github.com/repos/ResearchKit/ResearchKit","forks_url":"https://api.github.com/repos/ResearchKit/ResearchKit/forks","keys_url":"https://api.github.com/repos/ResearchKit/ResearchKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ResearchKit/ResearchKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ResearchKit/ResearchKit/teams","hooks_url":"https://api.github.com/repos/ResearchKit/ResearchKit/hooks","issue_events_url":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/events{/number}","events_url":"https://api.github.com/repos/ResearchKit/ResearchKit/events","assignees_url":"https://api.github.com/repos/ResearchKit/ResearchKit/assignees{/user}","branches_url":"https://api.github.com/repos/ResearchKit/ResearchKit/branches{/branch}","tags_url":"https://api.github.com/repos/ResearchKit/ResearchKit/tags","blobs_url":"https://api.github.com/repos/ResearchKit/ResearchKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ResearchKit/ResearchKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ResearchKit/ResearchKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/ResearchKit/ResearchKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ResearchKit/ResearchKit/statuses/{sha}","languages_url":"https://api.github.com/repos/ResearchKit/ResearchKit/languages","stargazers_url":"https://api.github.com/repos/ResearchKit/ResearchKit/stargazers","contributors_url":"https://api.github.com/repos/ResearchKit/ResearchKit/contributors","subscribers_url":"https://api.github.com/repos/ResearchKit/ResearchKit/subscribers","subscription_url":"https://api.github.com/repos/ResearchKit/ResearchKit/subscription","commits_url":"https://api.github.com/repos/ResearchKit/ResearchKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/ResearchKit/ResearchKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/ResearchKit/ResearchKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/ResearchKit/ResearchKit/contents/{+path}","compare_url":"https://api.github.com/repos/ResearchKit/ResearchKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ResearchKit/ResearchKit/merges","archive_url":"https://api.github.com/repos/ResearchKit/ResearchKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ResearchKit/ResearchKit/downloads","issues_url":"https://api.github.com/repos/ResearchKit/ResearchKit/issues{/number}","pulls_url":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls{/number}","milestones_url":"https://api.github.com/repos/ResearchKit/ResearchKit/milestones{/number}","notifications_url":"https://api.github.com/repos/ResearchKit/ResearchKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ResearchKit/ResearchKit/labels{/name}","releases_url":"https://api.github.com/repos/ResearchKit/ResearchKit/releases{/id}","created_at":"2015-03-10T20:05:32Z","updated_at":"2015-10-07T13:50:10Z","pushed_at":"2015-10-07T22:29:02Z","git_url":"git://github.com/ResearchKit/ResearchKit.git","ssh_url":"git@github.com:ResearchKit/ResearchKit.git","clone_url":"https://github.com/ResearchKit/ResearchKit.git","svn_url":"https://github.com/ResearchKit/ResearchKit","homepage":"","size":27206,"stargazers_count":4008,"watchers_count":4008,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":563,"mirror_url":null,"open_issues_count":68,"forks":563,"open_issues":68,"watchers":4008,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/478"},"html":{"href":"https://github.com/ResearchKit/ResearchKit/pull/478"},"issue":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/478"},"comments":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/478/comments"},"review_comments":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/478/comments"},"review_comment":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/478/commits"},"statuses":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/statuses/452665de14c07d85c47c080ebb7f6caf428a7b41"}}}}