{"action":"created","comment":{"url":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/comments/38361563","id":38361563,"diff_hunk":"@@ -1670,6 +1686,138 @@ - (ORKQuestionType) questionType {\n @end\n \n \n+#pragma mark - ORKTextScaleAnswerFormat\n+\n+@implementation ORKTextScaleAnswerFormat {\n+    NSNumberFormatter *_numberFormatter;\n+}\n+\n+- (Class)questionResultClass {\n+    return [ORKScaleQuestionResult class];\n+}\n+\n+- (instancetype)init {\n+    ORKThrowMethodUnavailableException();\n+    return nil;\n+}\n+\n+- (instancetype)initWithTextChoices:(NSArray<ORKTextChoice *> *)textChoices\n+                       defaultIndex:(NSInteger)defaultIndex\n+                           vertical:(BOOL)vertical {\n+    self = [super init];\n+    if (self) {\n+        _textChoices = textChoices;\n+        _defaultIndex = defaultIndex;\n+        _vertical = vertical;\n+        \n+        [self validateParameters];\n+    }\n+    return self;\n+}\n+\n+- (instancetype)initWithTextChoices:(NSArray<ORKTextChoice *> *)textChoices\n+                       defaultIndex:(NSInteger)defaultIndex{","path":"ResearchKit/Common/ORKAnswerFormat.m","position":71,"original_position":71,"commit_id":"e8bd259952f10cf6987635ae14cbb34ea9a03236","original_commit_id":"e8bd259952f10cf6987635ae14cbb34ea9a03236","user":{"login":"YuanZhu-apple","id":11466704,"avatar_url":"https://avatars.githubusercontent.com/u/11466704?v=3","gravatar_id":"","url":"https://api.github.com/users/YuanZhu-apple","html_url":"https://github.com/YuanZhu-apple","followers_url":"https://api.github.com/users/YuanZhu-apple/followers","following_url":"https://api.github.com/users/YuanZhu-apple/following{/other_user}","gists_url":"https://api.github.com/users/YuanZhu-apple/gists{/gist_id}","starred_url":"https://api.github.com/users/YuanZhu-apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuanZhu-apple/subscriptions","organizations_url":"https://api.github.com/users/YuanZhu-apple/orgs","repos_url":"https://api.github.com/users/YuanZhu-apple/repos","events_url":"https://api.github.com/users/YuanZhu-apple/events{/privacy}","received_events_url":"https://api.github.com/users/YuanZhu-apple/received_events","type":"User","site_admin":false},"body":"`NSUInteger`","created_at":"2015-08-31T21:25:04Z","updated_at":"2015-08-31T21:25:04Z","html_url":"https://github.com/ResearchKit/ResearchKit/pull/392#discussion_r38361563","pull_request_url":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/392","_links":{"self":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/comments/38361563"},"html":{"href":"https://github.com/ResearchKit/ResearchKit/pull/392#discussion_r38361563"},"pull_request":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/392"}}},"pull_request":{"url":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/392","id":43216235,"html_url":"https://github.com/ResearchKit/ResearchKit/pull/392","diff_url":"https://github.com/ResearchKit/ResearchKit/pull/392.diff","patch_url":"https://github.com/ResearchKit/ResearchKit/pull/392.patch","issue_url":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/392","number":392,"state":"open","locked":false,"title":"IOI # 230 - Text scale slider","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":"Introducing ORKTextScaleAnswerFormat which enables developers to use the current discrete scale slider with text choices.\r\n\r\nIssue #230\r\n\r\n![simulator screen shot aug 24 2015 1 09 30 pm](https://cloud.githubusercontent.com/assets/13040996/9451167/d44cb9a6-4a61-11e5-8c68-e1f7a9b037e2.png)\r\n![simulator screen shot aug 24 2015 1 09 36 pm](https://cloud.githubusercontent.com/assets/13040996/9451170/d99d0a1e-4a61-11e5-9976-f64f092ed0fc.png)","created_at":"2015-08-24T20:12:40Z","updated_at":"2015-08-31T21:25:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2cddc9de452dd8f883063b042564976f9bb75c40","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/392/commits","review_comments_url":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/392/comments","review_comment_url":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/392/comments","statuses_url":"https://api.github.com/repos/ResearchKit/ResearchKit/statuses/e8bd259952f10cf6987635ae14cbb34ea9a03236","head":{"label":"umerkhan-apple:textSlider","ref":"textSlider","sha":"e8bd259952f10cf6987635ae14cbb34ea9a03236","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},"repo":{"id":38137073,"name":"ResearchKit","full_name":"umerkhan-apple/ResearchKit","owner":{"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},"private":false,"html_url":"https://github.com/umerkhan-apple/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/umerkhan-apple/ResearchKit","forks_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/forks","keys_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/teams","hooks_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/hooks","issue_events_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/issues/events{/number}","events_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/events","assignees_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/assignees{/user}","branches_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/branches{/branch}","tags_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/tags","blobs_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/statuses/{sha}","languages_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/languages","stargazers_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/stargazers","contributors_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/contributors","subscribers_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/subscribers","subscription_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/subscription","commits_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/contents/{+path}","compare_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/merges","archive_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/downloads","issues_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/issues{/number}","pulls_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/pulls{/number}","milestones_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/milestones{/number}","notifications_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/labels{/name}","releases_url":"https://api.github.com/repos/umerkhan-apple/ResearchKit/releases{/id}","created_at":"2015-06-26T22:29:51Z","updated_at":"2015-06-26T22:29:53Z","pushed_at":"2015-08-31T19:34:11Z","git_url":"git://github.com/umerkhan-apple/ResearchKit.git","ssh_url":"git@github.com:umerkhan-apple/ResearchKit.git","clone_url":"https://github.com/umerkhan-apple/ResearchKit.git","svn_url":"https://github.com/umerkhan-apple/ResearchKit","homepage":"","size":16168,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"ResearchKit:master","ref":"master","sha":"c786ed06e11bbdb1eaedc44e50a74e6dea5ef4b5","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-08-31T14:58:42Z","pushed_at":"2015-08-31T21:04:01Z","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":24651,"stargazers_count":3933,"watchers_count":3933,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":528,"mirror_url":null,"open_issues_count":58,"forks":528,"open_issues":58,"watchers":3933,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/392"},"html":{"href":"https://github.com/ResearchKit/ResearchKit/pull/392"},"issue":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/392"},"comments":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/392/comments"},"review_comments":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/392/comments"},"review_comment":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/pulls/392/commits"},"statuses":{"href":"https://api.github.com/repos/ResearchKit/ResearchKit/statuses/e8bd259952f10cf6987635ae14cbb34ea9a03236"}}}}