{"action":"created","comment":{"url":"https://api.github.com/repos/vhart/InterviewFlashCards/pulls/comments/96312124","pull_request_review_id":16890375,"id":96312124,"diff_hunk":"@@ -12,79 +12,79 @@ enum SectionQuestionType {\n     case iOSTechnical\n     case dataStructures\n     case algorithms\n-\n+    \n }\n \n class QuestionsViewController: UIViewController {\n-\n+    \n     // MARK: IBOutlets\n     @IBOutlet weak var prevButton: UIButton!\n     @IBOutlet weak var nextButton: UIButton!\n     @IBOutlet weak var questionImageView: UIImageView!\n     @IBOutlet weak var questionLabel: UILabel!\n     @IBOutlet weak var answerButton: UIButton!\n-\n+    \n     // MARK: Private Properties\n     fileprivate(set) var flashCards = [IFCFlashCard]()\n     fileprivate var currentIndex = 0\n     fileprivate var section: SectionQuestionType = .dataStructures\n-\n+    let segueIdentifier = \"answerSegueIdentifier\"\n+    \n     // MARK: Public Properties\n     var sectionName = \"\"\n     var dataGenerator: Networking? = QueryManager()\n-\n+    \n     // MARK: Actions\n-\n     @IBAction fileprivate func prevButtonTapped(_ sender: UIButton) {\n         currentIndex = currentIndex - 1 < 0 ? (currentIndex - 1 + flashCards.count) : 0\n         prepareFlashCard(currentIndex)\n     }\n-\n+    \n     @IBAction fileprivate func nextButtonTapped(_ sender: UIButton) {\n         currentIndex = (currentIndex + 1) % (flashCards.count)\n         prepareFlashCard(currentIndex)\n     }\n-\n+    \n     // MARK: Lifecycle Methods\n     override func viewDidLoad() {\n         super.viewDidLoad()\n         setAccessibilityLabels()\n         setupNavBar()\n         fetchData()\n     }\n-\n+    \n     override func prepare(for segue: UIStoryboardSegue, sender: Any!) {\n-        if (segue.destination is AnswersViewController) {\n+        if segue.identifier == segueIdentifier {\n             (segue.destination as! AnswersViewController).flashCard = flashCards[currentIndex]\n         }\n     }\n-\n+    \n     //MARK: Public Functions\n     func set(sectionType value: SectionQuestionType) {\n-            section = value\n+        section = value\n     }\n-\n+    ","path":"InterviewFlashCards/QuestionsViewController.swift","position":87,"original_position":68,"commit_id":"2a4f5fff1ebf36a6b3d7b51a9a8c9c51b2caf1b5","original_commit_id":"fdaf774457e583016ac96810c7c1bc00b60bb8ce","user":{"login":"charleshkang","id":12476080,"avatar_url":"https://avatars.githubusercontent.com/u/12476080?v=3","gravatar_id":"","url":"https://api.github.com/users/charleshkang","html_url":"https://github.com/charleshkang","followers_url":"https://api.github.com/users/charleshkang/followers","following_url":"https://api.github.com/users/charleshkang/following{/other_user}","gists_url":"https://api.github.com/users/charleshkang/gists{/gist_id}","starred_url":"https://api.github.com/users/charleshkang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charleshkang/subscriptions","organizations_url":"https://api.github.com/users/charleshkang/orgs","repos_url":"https://api.github.com/users/charleshkang/repos","events_url":"https://api.github.com/users/charleshkang/events{/privacy}","received_events_url":"https://api.github.com/users/charleshkang/received_events","type":"User","site_admin":false},"body":"removed","created_at":"2017-01-16T22:05:21Z","updated_at":"2017-01-16T22:05:21Z","html_url":"https://github.com/vhart/InterviewFlashCards/pull/50#discussion_r96312124","pull_request_url":"https://api.github.com/repos/vhart/InterviewFlashCards/pulls/50","_links":{"self":{"href":"https://api.github.com/repos/vhart/InterviewFlashCards/pulls/comments/96312124"},"html":{"href":"https://github.com/vhart/InterviewFlashCards/pull/50#discussion_r96312124"},"pull_request":{"href":"https://api.github.com/repos/vhart/InterviewFlashCards/pulls/50"}}},"pull_request":{"url":"https://api.github.com/repos/vhart/InterviewFlashCards/pulls/50","id":100549819,"html_url":"https://github.com/vhart/InterviewFlashCards/pull/50","diff_url":"https://github.com/vhart/InterviewFlashCards/pull/50.diff","patch_url":"https://github.com/vhart/InterviewFlashCards/pull/50.patch","issue_url":"https://api.github.com/repos/vhart/InterviewFlashCards/issues/50","number":50,"state":"open","locked":false,"title":"migrated answersVC from obj-c to swift 3.0","user":{"login":"charleshkang","id":12476080,"avatar_url":"https://avatars.githubusercontent.com/u/12476080?v=3","gravatar_id":"","url":"https://api.github.com/users/charleshkang","html_url":"https://github.com/charleshkang","followers_url":"https://api.github.com/users/charleshkang/followers","following_url":"https://api.github.com/users/charleshkang/following{/other_user}","gists_url":"https://api.github.com/users/charleshkang/gists{/gist_id}","starred_url":"https://api.github.com/users/charleshkang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charleshkang/subscriptions","organizations_url":"https://api.github.com/users/charleshkang/orgs","repos_url":"https://api.github.com/users/charleshkang/repos","events_url":"https://api.github.com/users/charleshkang/events{/privacy}","received_events_url":"https://api.github.com/users/charleshkang/received_events","type":"User","site_admin":false},"body":"a few notes...\r\n- i was getting crazy compiler errors when trying to branch off for the swift 3 update for the answersVC, something to do with the quick and nimble pods and them having to be updated to swift 3. so to save me a headache, i just did the last piece of migration on the master branch\r\n- next step is ui now that i can update it without any issues","created_at":"2017-01-07T00:44:35Z","updated_at":"2017-01-16T22:05:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"68036941b06f9e9cd205d8958ac19eab59b23638","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/vhart/InterviewFlashCards/pulls/50/commits","review_comments_url":"https://api.github.com/repos/vhart/InterviewFlashCards/pulls/50/comments","review_comment_url":"https://api.github.com/repos/vhart/InterviewFlashCards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vhart/InterviewFlashCards/issues/50/comments","statuses_url":"https://api.github.com/repos/vhart/InterviewFlashCards/statuses/2a4f5fff1ebf36a6b3d7b51a9a8c9c51b2caf1b5","head":{"label":"charleshkang:master","ref":"master","sha":"2a4f5fff1ebf36a6b3d7b51a9a8c9c51b2caf1b5","user":{"login":"charleshkang","id":12476080,"avatar_url":"https://avatars.githubusercontent.com/u/12476080?v=3","gravatar_id":"","url":"https://api.github.com/users/charleshkang","html_url":"https://github.com/charleshkang","followers_url":"https://api.github.com/users/charleshkang/followers","following_url":"https://api.github.com/users/charleshkang/following{/other_user}","gists_url":"https://api.github.com/users/charleshkang/gists{/gist_id}","starred_url":"https://api.github.com/users/charleshkang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charleshkang/subscriptions","organizations_url":"https://api.github.com/users/charleshkang/orgs","repos_url":"https://api.github.com/users/charleshkang/repos","events_url":"https://api.github.com/users/charleshkang/events{/privacy}","received_events_url":"https://api.github.com/users/charleshkang/received_events","type":"User","site_admin":false},"repo":{"id":78155969,"name":"InterviewFlashCards","full_name":"charleshkang/InterviewFlashCards","owner":{"login":"charleshkang","id":12476080,"avatar_url":"https://avatars.githubusercontent.com/u/12476080?v=3","gravatar_id":"","url":"https://api.github.com/users/charleshkang","html_url":"https://github.com/charleshkang","followers_url":"https://api.github.com/users/charleshkang/followers","following_url":"https://api.github.com/users/charleshkang/following{/other_user}","gists_url":"https://api.github.com/users/charleshkang/gists{/gist_id}","starred_url":"https://api.github.com/users/charleshkang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charleshkang/subscriptions","organizations_url":"https://api.github.com/users/charleshkang/orgs","repos_url":"https://api.github.com/users/charleshkang/repos","events_url":"https://api.github.com/users/charleshkang/events{/privacy}","received_events_url":"https://api.github.com/users/charleshkang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/charleshkang/InterviewFlashCards","description":null,"fork":true,"url":"https://api.github.com/repos/charleshkang/InterviewFlashCards","forks_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/forks","keys_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/teams","hooks_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/hooks","issue_events_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/issues/events{/number}","events_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/events","assignees_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/assignees{/user}","branches_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/branches{/branch}","tags_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/tags","blobs_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/git/refs{/sha}","trees_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/statuses/{sha}","languages_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/languages","stargazers_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/stargazers","contributors_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/contributors","subscribers_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/subscribers","subscription_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/subscription","commits_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/commits{/sha}","git_commits_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/git/commits{/sha}","comments_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/comments{/number}","issue_comment_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/issues/comments{/number}","contents_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/contents/{+path}","compare_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/merges","archive_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/downloads","issues_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/issues{/number}","pulls_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/pulls{/number}","milestones_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/milestones{/number}","notifications_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/labels{/name}","releases_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/releases{/id}","deployments_url":"https://api.github.com/repos/charleshkang/InterviewFlashCards/deployments","created_at":"2017-01-05T23:13:20Z","updated_at":"2017-01-05T23:13:23Z","pushed_at":"2017-01-16T22:01:28Z","git_url":"git://github.com/charleshkang/InterviewFlashCards.git","ssh_url":"git@github.com:charleshkang/InterviewFlashCards.git","clone_url":"https://github.com/charleshkang/InterviewFlashCards.git","svn_url":"https://github.com/charleshkang/InterviewFlashCards","homepage":null,"size":45814,"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":"vhart:master","ref":"master","sha":"83c57648ab959dbfc2450c04b9a9a37ef0fb3b37","user":{"login":"vhart","id":12614727,"avatar_url":"https://avatars.githubusercontent.com/u/12614727?v=3","gravatar_id":"","url":"https://api.github.com/users/vhart","html_url":"https://github.com/vhart","followers_url":"https://api.github.com/users/vhart/followers","following_url":"https://api.github.com/users/vhart/following{/other_user}","gists_url":"https://api.github.com/users/vhart/gists{/gist_id}","starred_url":"https://api.github.com/users/vhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vhart/subscriptions","organizations_url":"https://api.github.com/users/vhart/orgs","repos_url":"https://api.github.com/users/vhart/repos","events_url":"https://api.github.com/users/vhart/events{/privacy}","received_events_url":"https://api.github.com/users/vhart/received_events","type":"User","site_admin":false},"repo":{"id":51563844,"name":"InterviewFlashCards","full_name":"vhart/InterviewFlashCards","owner":{"login":"vhart","id":12614727,"avatar_url":"https://avatars.githubusercontent.com/u/12614727?v=3","gravatar_id":"","url":"https://api.github.com/users/vhart","html_url":"https://github.com/vhart","followers_url":"https://api.github.com/users/vhart/followers","following_url":"https://api.github.com/users/vhart/following{/other_user}","gists_url":"https://api.github.com/users/vhart/gists{/gist_id}","starred_url":"https://api.github.com/users/vhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vhart/subscriptions","organizations_url":"https://api.github.com/users/vhart/orgs","repos_url":"https://api.github.com/users/vhart/repos","events_url":"https://api.github.com/users/vhart/events{/privacy}","received_events_url":"https://api.github.com/users/vhart/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vhart/InterviewFlashCards","description":null,"fork":false,"url":"https://api.github.com/repos/vhart/InterviewFlashCards","forks_url":"https://api.github.com/repos/vhart/InterviewFlashCards/forks","keys_url":"https://api.github.com/repos/vhart/InterviewFlashCards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vhart/InterviewFlashCards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vhart/InterviewFlashCards/teams","hooks_url":"https://api.github.com/repos/vhart/InterviewFlashCards/hooks","issue_events_url":"https://api.github.com/repos/vhart/InterviewFlashCards/issues/events{/number}","events_url":"https://api.github.com/repos/vhart/InterviewFlashCards/events","assignees_url":"https://api.github.com/repos/vhart/InterviewFlashCards/assignees{/user}","branches_url":"https://api.github.com/repos/vhart/InterviewFlashCards/branches{/branch}","tags_url":"https://api.github.com/repos/vhart/InterviewFlashCards/tags","blobs_url":"https://api.github.com/repos/vhart/InterviewFlashCards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vhart/InterviewFlashCards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vhart/InterviewFlashCards/git/refs{/sha}","trees_url":"https://api.github.com/repos/vhart/InterviewFlashCards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vhart/InterviewFlashCards/statuses/{sha}","languages_url":"https://api.github.com/repos/vhart/InterviewFlashCards/languages","stargazers_url":"https://api.github.com/repos/vhart/InterviewFlashCards/stargazers","contributors_url":"https://api.github.com/repos/vhart/InterviewFlashCards/contributors","subscribers_url":"https://api.github.com/repos/vhart/InterviewFlashCards/subscribers","subscription_url":"https://api.github.com/repos/vhart/InterviewFlashCards/subscription","commits_url":"https://api.github.com/repos/vhart/InterviewFlashCards/commits{/sha}","git_commits_url":"https://api.github.com/repos/vhart/InterviewFlashCards/git/commits{/sha}","comments_url":"https://api.github.com/repos/vhart/InterviewFlashCards/comments{/number}","issue_comment_url":"https://api.github.com/repos/vhart/InterviewFlashCards/issues/comments{/number}","contents_url":"https://api.github.com/repos/vhart/InterviewFlashCards/contents/{+path}","compare_url":"https://api.github.com/repos/vhart/InterviewFlashCards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vhart/InterviewFlashCards/merges","archive_url":"https://api.github.com/repos/vhart/InterviewFlashCards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vhart/InterviewFlashCards/downloads","issues_url":"https://api.github.com/repos/vhart/InterviewFlashCards/issues{/number}","pulls_url":"https://api.github.com/repos/vhart/InterviewFlashCards/pulls{/number}","milestones_url":"https://api.github.com/repos/vhart/InterviewFlashCards/milestones{/number}","notifications_url":"https://api.github.com/repos/vhart/InterviewFlashCards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vhart/InterviewFlashCards/labels{/name}","releases_url":"https://api.github.com/repos/vhart/InterviewFlashCards/releases{/id}","deployments_url":"https://api.github.com/repos/vhart/InterviewFlashCards/deployments","created_at":"2016-02-12T02:56:56Z","updated_at":"2017-01-12T14:37:16Z","pushed_at":"2017-01-16T22:01:29Z","git_url":"git://github.com/vhart/InterviewFlashCards.git","ssh_url":"git@github.com:vhart/InterviewFlashCards.git","clone_url":"https://github.com/vhart/InterviewFlashCards.git","svn_url":"https://github.com/vhart/InterviewFlashCards","homepage":null,"size":45799,"stargazers_count":5,"watchers_count":5,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":18,"forks":10,"open_issues":18,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vhart/InterviewFlashCards/pulls/50"},"html":{"href":"https://github.com/vhart/InterviewFlashCards/pull/50"},"issue":{"href":"https://api.github.com/repos/vhart/InterviewFlashCards/issues/50"},"comments":{"href":"https://api.github.com/repos/vhart/InterviewFlashCards/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/vhart/InterviewFlashCards/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/vhart/InterviewFlashCards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vhart/InterviewFlashCards/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/vhart/InterviewFlashCards/statuses/2a4f5fff1ebf36a6b3d7b51a9a8c9c51b2caf1b5"}}}}
{"actor":{"display_login":"charleshkang"}}