{"action":"created","comment":{"url":"https://api.github.com/repos/willowtreeapps/appirater/pulls/comments/54789858","id":54789858,"diff_hunk":"@@ -243,8 +232,18 @@ - (BOOL)ratingConditionsHaveBeenMet {\n \tNSTimeInterval timeUntilReminder = 60 * 60 * 24 * _timeBeforeReminding;\n \tif (timeSinceReminderRequest < timeUntilReminder)\n \t\treturn NO;\n-\t\n-\treturn YES;\n+    \n+    \n+    NSDate *dateOfFirstLaunch = [NSDate dateWithTimeIntervalSince1970:[userDefaults doubleForKey:kAppiraterFirstUseDate]];\n+    NSTimeInterval timeSinceFirstLaunch = [[NSDate date] timeIntervalSinceDate:dateOfFirstLaunch];\n+    NSTimeInterval timeUntilRate = 60 * 60 * 24 * _daysUntilPrompt;\n+\n+    // check if the app has been used enough\n+    int useCount = [userDefaults integerForKey:kAppiraterUseCount];\n+    if (!(timeSinceFirstLaunch < timeUntilRate) || !(useCount <= _usesUntilPrompt))","path":"Appirater.m","position":34,"original_position":34,"commit_id":"7307f1a8e70cb9c526c345c2c4cc386a6e4793e1","original_commit_id":"7307f1a8e70cb9c526c345c2c4cc386a6e4793e1","user":{"login":"chrsmys","id":4017290,"avatar_url":"https://avatars.githubusercontent.com/u/4017290?v=3","gravatar_id":"","url":"https://api.github.com/users/chrsmys","html_url":"https://github.com/chrsmys","followers_url":"https://api.github.com/users/chrsmys/followers","following_url":"https://api.github.com/users/chrsmys/following{/other_user}","gists_url":"https://api.github.com/users/chrsmys/gists{/gist_id}","starred_url":"https://api.github.com/users/chrsmys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrsmys/subscriptions","organizations_url":"https://api.github.com/users/chrsmys/orgs","repos_url":"https://api.github.com/users/chrsmys/repos","events_url":"https://api.github.com/users/chrsmys/events{/privacy}","received_events_url":"https://api.github.com/users/chrsmys/received_events","type":"User","site_admin":false},"body":"return (!(timeSinceFirstLaunch < timeUntilRate) || !(useCount <= _usesUntilPrompt))","created_at":"2016-03-02T20:56:53Z","updated_at":"2016-03-02T20:56:53Z","html_url":"https://github.com/willowtreeapps/appirater/pull/1#discussion_r54789858","pull_request_url":"https://api.github.com/repos/willowtreeapps/appirater/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/willowtreeapps/appirater/pulls/comments/54789858"},"html":{"href":"https://github.com/willowtreeapps/appirater/pull/1#discussion_r54789858"},"pull_request":{"href":"https://api.github.com/repos/willowtreeapps/appirater/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/willowtreeapps/appirater/pulls/1","id":61465463,"html_url":"https://github.com/willowtreeapps/appirater/pull/1","diff_url":"https://github.com/willowtreeapps/appirater/pull/1.diff","patch_url":"https://github.com/willowtreeapps/appirater/pull/1.patch","issue_url":"https://api.github.com/repos/willowtreeapps/appirater/issues/1","number":1,"state":"open","locked":false,"title":"display the rating view if the days OR numberOfLaunches is satisfied","user":{"login":"aslanserdar","id":13018568,"avatar_url":"https://avatars.githubusercontent.com/u/13018568?v=3","gravatar_id":"","url":"https://api.github.com/users/aslanserdar","html_url":"https://github.com/aslanserdar","followers_url":"https://api.github.com/users/aslanserdar/followers","following_url":"https://api.github.com/users/aslanserdar/following{/other_user}","gists_url":"https://api.github.com/users/aslanserdar/gists{/gist_id}","starred_url":"https://api.github.com/users/aslanserdar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aslanserdar/subscriptions","organizations_url":"https://api.github.com/users/aslanserdar/orgs","repos_url":"https://api.github.com/users/aslanserdar/repos","events_url":"https://api.github.com/users/aslanserdar/events{/privacy}","received_events_url":"https://api.github.com/users/aslanserdar/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-02T20:56:03Z","updated_at":"2016-03-02T20:56:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89e337ad42437bdf091cb05d864308be357f23be","assignee":{"login":"chrsmys","id":4017290,"avatar_url":"https://avatars.githubusercontent.com/u/4017290?v=3","gravatar_id":"","url":"https://api.github.com/users/chrsmys","html_url":"https://github.com/chrsmys","followers_url":"https://api.github.com/users/chrsmys/followers","following_url":"https://api.github.com/users/chrsmys/following{/other_user}","gists_url":"https://api.github.com/users/chrsmys/gists{/gist_id}","starred_url":"https://api.github.com/users/chrsmys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrsmys/subscriptions","organizations_url":"https://api.github.com/users/chrsmys/orgs","repos_url":"https://api.github.com/users/chrsmys/repos","events_url":"https://api.github.com/users/chrsmys/events{/privacy}","received_events_url":"https://api.github.com/users/chrsmys/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/willowtreeapps/appirater/pulls/1/commits","review_comments_url":"https://api.github.com/repos/willowtreeapps/appirater/pulls/1/comments","review_comment_url":"https://api.github.com/repos/willowtreeapps/appirater/pulls/comments{/number}","comments_url":"https://api.github.com/repos/willowtreeapps/appirater/issues/1/comments","statuses_url":"https://api.github.com/repos/willowtreeapps/appirater/statuses/7307f1a8e70cb9c526c345c2c4cc386a6e4793e1","head":{"label":"willowtreeapps:feature/updateconfiguration","ref":"feature/updateconfiguration","sha":"7307f1a8e70cb9c526c345c2c4cc386a6e4793e1","user":{"login":"willowtreeapps","id":557680,"avatar_url":"https://avatars.githubusercontent.com/u/557680?v=3","gravatar_id":"","url":"https://api.github.com/users/willowtreeapps","html_url":"https://github.com/willowtreeapps","followers_url":"https://api.github.com/users/willowtreeapps/followers","following_url":"https://api.github.com/users/willowtreeapps/following{/other_user}","gists_url":"https://api.github.com/users/willowtreeapps/gists{/gist_id}","starred_url":"https://api.github.com/users/willowtreeapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willowtreeapps/subscriptions","organizations_url":"https://api.github.com/users/willowtreeapps/orgs","repos_url":"https://api.github.com/users/willowtreeapps/repos","events_url":"https://api.github.com/users/willowtreeapps/events{/privacy}","received_events_url":"https://api.github.com/users/willowtreeapps/received_events","type":"Organization","site_admin":false},"repo":{"id":12818446,"name":"appirater","full_name":"willowtreeapps/appirater","owner":{"login":"willowtreeapps","id":557680,"avatar_url":"https://avatars.githubusercontent.com/u/557680?v=3","gravatar_id":"","url":"https://api.github.com/users/willowtreeapps","html_url":"https://github.com/willowtreeapps","followers_url":"https://api.github.com/users/willowtreeapps/followers","following_url":"https://api.github.com/users/willowtreeapps/following{/other_user}","gists_url":"https://api.github.com/users/willowtreeapps/gists{/gist_id}","starred_url":"https://api.github.com/users/willowtreeapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willowtreeapps/subscriptions","organizations_url":"https://api.github.com/users/willowtreeapps/orgs","repos_url":"https://api.github.com/users/willowtreeapps/repos","events_url":"https://api.github.com/users/willowtreeapps/events{/privacy}","received_events_url":"https://api.github.com/users/willowtreeapps/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/willowtreeapps/appirater","description":"A utility that reminds your iPhone app's users to review the app.","fork":true,"url":"https://api.github.com/repos/willowtreeapps/appirater","forks_url":"https://api.github.com/repos/willowtreeapps/appirater/forks","keys_url":"https://api.github.com/repos/willowtreeapps/appirater/keys{/key_id}","collaborators_url":"https://api.github.com/repos/willowtreeapps/appirater/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/willowtreeapps/appirater/teams","hooks_url":"https://api.github.com/repos/willowtreeapps/appirater/hooks","issue_events_url":"https://api.github.com/repos/willowtreeapps/appirater/issues/events{/number}","events_url":"https://api.github.com/repos/willowtreeapps/appirater/events","assignees_url":"https://api.github.com/repos/willowtreeapps/appirater/assignees{/user}","branches_url":"https://api.github.com/repos/willowtreeapps/appirater/branches{/branch}","tags_url":"https://api.github.com/repos/willowtreeapps/appirater/tags","blobs_url":"https://api.github.com/repos/willowtreeapps/appirater/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/willowtreeapps/appirater/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/willowtreeapps/appirater/git/refs{/sha}","trees_url":"https://api.github.com/repos/willowtreeapps/appirater/git/trees{/sha}","statuses_url":"https://api.github.com/repos/willowtreeapps/appirater/statuses/{sha}","languages_url":"https://api.github.com/repos/willowtreeapps/appirater/languages","stargazers_url":"https://api.github.com/repos/willowtreeapps/appirater/stargazers","contributors_url":"https://api.github.com/repos/willowtreeapps/appirater/contributors","subscribers_url":"https://api.github.com/repos/willowtreeapps/appirater/subscribers","subscription_url":"https://api.github.com/repos/willowtreeapps/appirater/subscription","commits_url":"https://api.github.com/repos/willowtreeapps/appirater/commits{/sha}","git_commits_url":"https://api.github.com/repos/willowtreeapps/appirater/git/commits{/sha}","comments_url":"https://api.github.com/repos/willowtreeapps/appirater/comments{/number}","issue_comment_url":"https://api.github.com/repos/willowtreeapps/appirater/issues/comments{/number}","contents_url":"https://api.github.com/repos/willowtreeapps/appirater/contents/{+path}","compare_url":"https://api.github.com/repos/willowtreeapps/appirater/compare/{base}...{head}","merges_url":"https://api.github.com/repos/willowtreeapps/appirater/merges","archive_url":"https://api.github.com/repos/willowtreeapps/appirater/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/willowtreeapps/appirater/downloads","issues_url":"https://api.github.com/repos/willowtreeapps/appirater/issues{/number}","pulls_url":"https://api.github.com/repos/willowtreeapps/appirater/pulls{/number}","milestones_url":"https://api.github.com/repos/willowtreeapps/appirater/milestones{/number}","notifications_url":"https://api.github.com/repos/willowtreeapps/appirater/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/willowtreeapps/appirater/labels{/name}","releases_url":"https://api.github.com/repos/willowtreeapps/appirater/releases{/id}","deployments_url":"https://api.github.com/repos/willowtreeapps/appirater/deployments","created_at":"2013-09-13T20:13:14Z","updated_at":"2013-09-13T20:13:15Z","pushed_at":"2016-03-02T20:56:04Z","git_url":"git://github.com/willowtreeapps/appirater.git","ssh_url":"git@github.com:willowtreeapps/appirater.git","clone_url":"https://github.com/willowtreeapps/appirater.git","svn_url":"https://github.com/willowtreeapps/appirater","homepage":"http://arashpayan.com/blog/index.php/2009/09/07/presenting-appirater/","size":106,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"willowtreeapps:master","ref":"master","sha":"f22c3ed17f5edb1b809218b096ed7d8511e1b5dd","user":{"login":"willowtreeapps","id":557680,"avatar_url":"https://avatars.githubusercontent.com/u/557680?v=3","gravatar_id":"","url":"https://api.github.com/users/willowtreeapps","html_url":"https://github.com/willowtreeapps","followers_url":"https://api.github.com/users/willowtreeapps/followers","following_url":"https://api.github.com/users/willowtreeapps/following{/other_user}","gists_url":"https://api.github.com/users/willowtreeapps/gists{/gist_id}","starred_url":"https://api.github.com/users/willowtreeapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willowtreeapps/subscriptions","organizations_url":"https://api.github.com/users/willowtreeapps/orgs","repos_url":"https://api.github.com/users/willowtreeapps/repos","events_url":"https://api.github.com/users/willowtreeapps/events{/privacy}","received_events_url":"https://api.github.com/users/willowtreeapps/received_events","type":"Organization","site_admin":false},"repo":{"id":12818446,"name":"appirater","full_name":"willowtreeapps/appirater","owner":{"login":"willowtreeapps","id":557680,"avatar_url":"https://avatars.githubusercontent.com/u/557680?v=3","gravatar_id":"","url":"https://api.github.com/users/willowtreeapps","html_url":"https://github.com/willowtreeapps","followers_url":"https://api.github.com/users/willowtreeapps/followers","following_url":"https://api.github.com/users/willowtreeapps/following{/other_user}","gists_url":"https://api.github.com/users/willowtreeapps/gists{/gist_id}","starred_url":"https://api.github.com/users/willowtreeapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willowtreeapps/subscriptions","organizations_url":"https://api.github.com/users/willowtreeapps/orgs","repos_url":"https://api.github.com/users/willowtreeapps/repos","events_url":"https://api.github.com/users/willowtreeapps/events{/privacy}","received_events_url":"https://api.github.com/users/willowtreeapps/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/willowtreeapps/appirater","description":"A utility that reminds your iPhone app's users to review the app.","fork":true,"url":"https://api.github.com/repos/willowtreeapps/appirater","forks_url":"https://api.github.com/repos/willowtreeapps/appirater/forks","keys_url":"https://api.github.com/repos/willowtreeapps/appirater/keys{/key_id}","collaborators_url":"https://api.github.com/repos/willowtreeapps/appirater/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/willowtreeapps/appirater/teams","hooks_url":"https://api.github.com/repos/willowtreeapps/appirater/hooks","issue_events_url":"https://api.github.com/repos/willowtreeapps/appirater/issues/events{/number}","events_url":"https://api.github.com/repos/willowtreeapps/appirater/events","assignees_url":"https://api.github.com/repos/willowtreeapps/appirater/assignees{/user}","branches_url":"https://api.github.com/repos/willowtreeapps/appirater/branches{/branch}","tags_url":"https://api.github.com/repos/willowtreeapps/appirater/tags","blobs_url":"https://api.github.com/repos/willowtreeapps/appirater/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/willowtreeapps/appirater/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/willowtreeapps/appirater/git/refs{/sha}","trees_url":"https://api.github.com/repos/willowtreeapps/appirater/git/trees{/sha}","statuses_url":"https://api.github.com/repos/willowtreeapps/appirater/statuses/{sha}","languages_url":"https://api.github.com/repos/willowtreeapps/appirater/languages","stargazers_url":"https://api.github.com/repos/willowtreeapps/appirater/stargazers","contributors_url":"https://api.github.com/repos/willowtreeapps/appirater/contributors","subscribers_url":"https://api.github.com/repos/willowtreeapps/appirater/subscribers","subscription_url":"https://api.github.com/repos/willowtreeapps/appirater/subscription","commits_url":"https://api.github.com/repos/willowtreeapps/appirater/commits{/sha}","git_commits_url":"https://api.github.com/repos/willowtreeapps/appirater/git/commits{/sha}","comments_url":"https://api.github.com/repos/willowtreeapps/appirater/comments{/number}","issue_comment_url":"https://api.github.com/repos/willowtreeapps/appirater/issues/comments{/number}","contents_url":"https://api.github.com/repos/willowtreeapps/appirater/contents/{+path}","compare_url":"https://api.github.com/repos/willowtreeapps/appirater/compare/{base}...{head}","merges_url":"https://api.github.com/repos/willowtreeapps/appirater/merges","archive_url":"https://api.github.com/repos/willowtreeapps/appirater/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/willowtreeapps/appirater/downloads","issues_url":"https://api.github.com/repos/willowtreeapps/appirater/issues{/number}","pulls_url":"https://api.github.com/repos/willowtreeapps/appirater/pulls{/number}","milestones_url":"https://api.github.com/repos/willowtreeapps/appirater/milestones{/number}","notifications_url":"https://api.github.com/repos/willowtreeapps/appirater/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/willowtreeapps/appirater/labels{/name}","releases_url":"https://api.github.com/repos/willowtreeapps/appirater/releases{/id}","deployments_url":"https://api.github.com/repos/willowtreeapps/appirater/deployments","created_at":"2013-09-13T20:13:14Z","updated_at":"2013-09-13T20:13:15Z","pushed_at":"2016-03-02T20:56:04Z","git_url":"git://github.com/willowtreeapps/appirater.git","ssh_url":"git@github.com:willowtreeapps/appirater.git","clone_url":"https://github.com/willowtreeapps/appirater.git","svn_url":"https://github.com/willowtreeapps/appirater","homepage":"http://arashpayan.com/blog/index.php/2009/09/07/presenting-appirater/","size":106,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/willowtreeapps/appirater/pulls/1"},"html":{"href":"https://github.com/willowtreeapps/appirater/pull/1"},"issue":{"href":"https://api.github.com/repos/willowtreeapps/appirater/issues/1"},"comments":{"href":"https://api.github.com/repos/willowtreeapps/appirater/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/willowtreeapps/appirater/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/willowtreeapps/appirater/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/willowtreeapps/appirater/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/willowtreeapps/appirater/statuses/7307f1a8e70cb9c526c345c2c4cc386a6e4793e1"}}}}