{"action":"created","comment":{"url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/pulls/comments/58306787","id":58306787,"diff_hunk":"@@ -0,0 +1,44 @@\n+// Copyright (c) 2016 Lightricks. All rights reserved.\n+// Created by Michael Kupchick.\n+\n+#import \"PhotoPresenter.h\"\n+\n+#import \"ScrollViewController.h\"\n+\n+NS_ASSUME_NONNULL_BEGIN\n+\n+@interface PhotoPresenter()\n+\n+/// Provider that loads the image data.\n+@property (strong, nonatomic) id<ImageDataProviderProtocol> imageDataProvider;\n+\n+/// Protocol that handles the photo history.\n+@property (strong, nonatomic) id<PhotoHistoryProtocol> history;\n+\n+@end\n+\n+@implementation PhotoPresenter\n+\n+- (instancetype)initWithImageProvider:(id<ImageDataProviderProtocol>)provider\n+                              history:(nullable id<PhotoHistoryProtocol>)history{\n+  if (self = [super init]) {\n+    _imageDataProvider = provider;\n+    _history = history;\n+  }\n+  \n+  return self;\n+}\n+\n+- (void)showPhoto:(PhotoRecord *)record inNavController:(UINavigationController *)navController {\n+  [self.history addPhotoRecord:record];\n+  \n+  ScrollViewController *scrollVC =","path":"FlickrViewer/View/PhotoPresenter.m","position":35,"original_position":35,"commit_id":"09af215dbb362978620de4433f73ccc5e4c892df","original_commit_id":"09af215dbb362978620de4433f73ccc5e4c892df","user":{"login":"michaellightricks","id":17297304,"avatar_url":"https://avatars.githubusercontent.com/u/17297304?v=3","gravatar_id":"","url":"https://api.github.com/users/michaellightricks","html_url":"https://github.com/michaellightricks","followers_url":"https://api.github.com/users/michaellightricks/followers","following_url":"https://api.github.com/users/michaellightricks/following{/other_user}","gists_url":"https://api.github.com/users/michaellightricks/gists{/gist_id}","starred_url":"https://api.github.com/users/michaellightricks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaellightricks/subscriptions","organizations_url":"https://api.github.com/users/michaellightricks/orgs","repos_url":"https://api.github.com/users/michaellightricks/repos","events_url":"https://api.github.com/users/michaellightricks/events{/privacy}","received_events_url":"https://api.github.com/users/michaellightricks/received_events","type":"User","site_admin":false},"body":"done","created_at":"2016-04-03T08:56:30Z","updated_at":"2016-04-03T08:56:30Z","html_url":"https://github.com/amit-goldstein/FlickrMichael/pull/4#discussion_r58306787","pull_request_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/amit-goldstein/FlickrMichael/pulls/comments/58306787"},"html":{"href":"https://github.com/amit-goldstein/FlickrMichael/pull/4#discussion_r58306787"},"pull_request":{"href":"https://api.github.com/repos/amit-goldstein/FlickrMichael/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/pulls/4","id":62886720,"html_url":"https://github.com/amit-goldstein/FlickrMichael/pull/4","diff_url":"https://github.com/amit-goldstein/FlickrMichael/pull/4.diff","patch_url":"https://github.com/amit-goldstein/FlickrMichael/pull/4.patch","issue_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/issues/4","number":4,"state":"open","locked":false,"title":"Feature/part3","user":{"login":"michaellightricks","id":17297304,"avatar_url":"https://avatars.githubusercontent.com/u/17297304?v=3","gravatar_id":"","url":"https://api.github.com/users/michaellightricks","html_url":"https://github.com/michaellightricks","followers_url":"https://api.github.com/users/michaellightricks/followers","following_url":"https://api.github.com/users/michaellightricks/following{/other_user}","gists_url":"https://api.github.com/users/michaellightricks/gists{/gist_id}","starred_url":"https://api.github.com/users/michaellightricks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaellightricks/subscriptions","organizations_url":"https://api.github.com/users/michaellightricks/orgs","repos_url":"https://api.github.com/users/michaellightricks/repos","events_url":"https://api.github.com/users/michaellightricks/events{/privacy}","received_events_url":"https://api.github.com/users/michaellightricks/received_events","type":"User","site_admin":false},"body":"Implement part 3 of the exercise.","created_at":"2016-03-15T10:54:42Z","updated_at":"2016-04-03T08:56:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bb2436b8893fdeb58dbe6ab76243630a5bcef0f3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/pulls/4/commits","review_comments_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/pulls/4/comments","review_comment_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/issues/4/comments","statuses_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/statuses/09af215dbb362978620de4433f73ccc5e4c892df","head":{"label":"michaellightricks:feature/part3","ref":"feature/part3","sha":"09af215dbb362978620de4433f73ccc5e4c892df","user":{"login":"michaellightricks","id":17297304,"avatar_url":"https://avatars.githubusercontent.com/u/17297304?v=3","gravatar_id":"","url":"https://api.github.com/users/michaellightricks","html_url":"https://github.com/michaellightricks","followers_url":"https://api.github.com/users/michaellightricks/followers","following_url":"https://api.github.com/users/michaellightricks/following{/other_user}","gists_url":"https://api.github.com/users/michaellightricks/gists{/gist_id}","starred_url":"https://api.github.com/users/michaellightricks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaellightricks/subscriptions","organizations_url":"https://api.github.com/users/michaellightricks/orgs","repos_url":"https://api.github.com/users/michaellightricks/repos","events_url":"https://api.github.com/users/michaellightricks/events{/privacy}","received_events_url":"https://api.github.com/users/michaellightricks/received_events","type":"User","site_admin":false},"repo":{"id":52790915,"name":"FlickrMichael","full_name":"michaellightricks/FlickrMichael","owner":{"login":"michaellightricks","id":17297304,"avatar_url":"https://avatars.githubusercontent.com/u/17297304?v=3","gravatar_id":"","url":"https://api.github.com/users/michaellightricks","html_url":"https://github.com/michaellightricks","followers_url":"https://api.github.com/users/michaellightricks/followers","following_url":"https://api.github.com/users/michaellightricks/following{/other_user}","gists_url":"https://api.github.com/users/michaellightricks/gists{/gist_id}","starred_url":"https://api.github.com/users/michaellightricks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaellightricks/subscriptions","organizations_url":"https://api.github.com/users/michaellightricks/orgs","repos_url":"https://api.github.com/users/michaellightricks/repos","events_url":"https://api.github.com/users/michaellightricks/events{/privacy}","received_events_url":"https://api.github.com/users/michaellightricks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michaellightricks/FlickrMichael","description":"Flickr Exercise for Michael K.","fork":true,"url":"https://api.github.com/repos/michaellightricks/FlickrMichael","forks_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/forks","keys_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/teams","hooks_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/hooks","issue_events_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/issues/events{/number}","events_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/events","assignees_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/assignees{/user}","branches_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/branches{/branch}","tags_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/tags","blobs_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/git/refs{/sha}","trees_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/statuses/{sha}","languages_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/languages","stargazers_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/stargazers","contributors_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/contributors","subscribers_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/subscribers","subscription_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/subscription","commits_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/commits{/sha}","git_commits_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/git/commits{/sha}","comments_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/comments{/number}","issue_comment_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/issues/comments{/number}","contents_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/contents/{+path}","compare_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/merges","archive_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/downloads","issues_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/issues{/number}","pulls_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/pulls{/number}","milestones_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/milestones{/number}","notifications_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/labels{/name}","releases_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/releases{/id}","deployments_url":"https://api.github.com/repos/michaellightricks/FlickrMichael/deployments","created_at":"2016-02-29T12:55:26Z","updated_at":"2016-02-29T12:34:13Z","pushed_at":"2016-03-20T08:43:21Z","git_url":"git://github.com/michaellightricks/FlickrMichael.git","ssh_url":"git@github.com:michaellightricks/FlickrMichael.git","clone_url":"https://github.com/michaellightricks/FlickrMichael.git","svn_url":"https://github.com/michaellightricks/FlickrMichael","homepage":null,"size":63,"stargazers_count":0,"watchers_count":0,"language":null,"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":"amit-goldstein:develop","ref":"develop","sha":"0ecfd482d259fd29f0ce1191a61d3917c1168dfd","user":{"login":"amit-goldstein","id":3172498,"avatar_url":"https://avatars.githubusercontent.com/u/3172498?v=3","gravatar_id":"","url":"https://api.github.com/users/amit-goldstein","html_url":"https://github.com/amit-goldstein","followers_url":"https://api.github.com/users/amit-goldstein/followers","following_url":"https://api.github.com/users/amit-goldstein/following{/other_user}","gists_url":"https://api.github.com/users/amit-goldstein/gists{/gist_id}","starred_url":"https://api.github.com/users/amit-goldstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amit-goldstein/subscriptions","organizations_url":"https://api.github.com/users/amit-goldstein/orgs","repos_url":"https://api.github.com/users/amit-goldstein/repos","events_url":"https://api.github.com/users/amit-goldstein/events{/privacy}","received_events_url":"https://api.github.com/users/amit-goldstein/received_events","type":"User","site_admin":false},"repo":{"id":52789708,"name":"FlickrMichael","full_name":"amit-goldstein/FlickrMichael","owner":{"login":"amit-goldstein","id":3172498,"avatar_url":"https://avatars.githubusercontent.com/u/3172498?v=3","gravatar_id":"","url":"https://api.github.com/users/amit-goldstein","html_url":"https://github.com/amit-goldstein","followers_url":"https://api.github.com/users/amit-goldstein/followers","following_url":"https://api.github.com/users/amit-goldstein/following{/other_user}","gists_url":"https://api.github.com/users/amit-goldstein/gists{/gist_id}","starred_url":"https://api.github.com/users/amit-goldstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amit-goldstein/subscriptions","organizations_url":"https://api.github.com/users/amit-goldstein/orgs","repos_url":"https://api.github.com/users/amit-goldstein/repos","events_url":"https://api.github.com/users/amit-goldstein/events{/privacy}","received_events_url":"https://api.github.com/users/amit-goldstein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amit-goldstein/FlickrMichael","description":"Flickr Exercise for Michael K.","fork":false,"url":"https://api.github.com/repos/amit-goldstein/FlickrMichael","forks_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/forks","keys_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/teams","hooks_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/hooks","issue_events_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/issues/events{/number}","events_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/events","assignees_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/assignees{/user}","branches_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/branches{/branch}","tags_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/tags","blobs_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/git/refs{/sha}","trees_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/statuses/{sha}","languages_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/languages","stargazers_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/stargazers","contributors_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/contributors","subscribers_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/subscribers","subscription_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/subscription","commits_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/commits{/sha}","git_commits_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/git/commits{/sha}","comments_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/comments{/number}","issue_comment_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/issues/comments{/number}","contents_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/contents/{+path}","compare_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/merges","archive_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/downloads","issues_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/issues{/number}","pulls_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/pulls{/number}","milestones_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/milestones{/number}","notifications_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/labels{/name}","releases_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/releases{/id}","deployments_url":"https://api.github.com/repos/amit-goldstein/FlickrMichael/deployments","created_at":"2016-02-29T12:34:13Z","updated_at":"2016-02-29T12:34:13Z","pushed_at":"2016-03-20T08:43:21Z","git_url":"git://github.com/amit-goldstein/FlickrMichael.git","ssh_url":"git@github.com:amit-goldstein/FlickrMichael.git","clone_url":"https://github.com/amit-goldstein/FlickrMichael.git","svn_url":"https://github.com/amit-goldstein/FlickrMichael","homepage":null,"size":24,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amit-goldstein/FlickrMichael/pulls/4"},"html":{"href":"https://github.com/amit-goldstein/FlickrMichael/pull/4"},"issue":{"href":"https://api.github.com/repos/amit-goldstein/FlickrMichael/issues/4"},"comments":{"href":"https://api.github.com/repos/amit-goldstein/FlickrMichael/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/amit-goldstein/FlickrMichael/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/amit-goldstein/FlickrMichael/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amit-goldstein/FlickrMichael/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/amit-goldstein/FlickrMichael/statuses/09af215dbb362978620de4433f73ccc5e4c892df"}}}}