{"action":"created","comment":{"url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/pulls/comments/82681127","pull_request_review_id":3572173,"id":82681127,"diff_hunk":"@@ -0,0 +1,70 @@\n+//\n+//  ColorTableViewController.swift\n+//  AC3.2Unit2FinalAssessment\n+//\n+//  Created by Ilmira Estil on 10/6/16.\n+//  Copyright © 2016 C4Q. All rights reserved.\n+//\n+\n+import UIKit\n+\n+class ColorTableViewController: UITableViewController {\n+    var crayons = [Crayon]()\n+    let cellIdentifier = \"CrayonCell\"\n+    \n+    override func viewDidLoad() {\n+        super.viewDidLoad()\n+        \n+//        self.tableView.rowHeight = UITableViewAutomaticDimension\n+//        self.tableView.estimatedRowHeight = 200.0\n+        // crayolaColors is a global variable defined in CrayonData.swift\n+        // so it should be visible from any point in your code\n+        \n+        \n+        for c in crayolaColors {\n+            if let crayon = Crayon(fromDict: c) {\n+                crayons.append(crayon)\n+            }\n+        }\n+        \n+    \n+    }\n+\n+ \n+\n+    // MARK: - Table view data source\n+\n+    override func numberOfSections(in tableView: UITableView) -> Int {\n+        \n+        return 1\n+    }\n+\n+    override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {\n+        return self.crayons.count\n+    }\n+\n+\n+    override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {\n+        let cell = tableView.dequeueReusableCell(withIdentifier: cellIdentifier, for: indexPath)\n+        let currentCrayon = UIColor(red: CGFloat(crayons[indexPath.row].red), green: CGFloat(crayons[indexPath.row].green), blue: CGFloat(crayons[indexPath.row].blue), alpha: 1.0)","path":"AC3.2Unit2FinalAssessment/AC3.2Unit2FinalAssessment/ColorTableViewController.swift","position":49,"original_position":49,"commit_id":"42b280806dc2a6b7ae3e2da547911605801d6678","original_commit_id":"42b280806dc2a6b7ae3e2da547911605801d6678","user":{"login":"Jamaal51","id":11876659,"avatar_url":"https://avatars.githubusercontent.com/u/11876659?v=3","gravatar_id":"","url":"https://api.github.com/users/Jamaal51","html_url":"https://github.com/Jamaal51","followers_url":"https://api.github.com/users/Jamaal51/followers","following_url":"https://api.github.com/users/Jamaal51/following{/other_user}","gists_url":"https://api.github.com/users/Jamaal51/gists{/gist_id}","starred_url":"https://api.github.com/users/Jamaal51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jamaal51/subscriptions","organizations_url":"https://api.github.com/users/Jamaal51/orgs","repos_url":"https://api.github.com/users/Jamaal51/repos","events_url":"https://api.github.com/users/Jamaal51/events{/privacy}","received_events_url":"https://api.github.com/users/Jamaal51/received_events","type":"User","site_admin":false},"body":"You can assign a crayon to a variable like:\r\n'let crayon = crayons[indexPath.row]`\r\n\r\nthen use variable to access properties like:\r\ncrayon.name, crayon.blue...etc","created_at":"2016-10-10T20:55:10Z","updated_at":"2016-10-10T20:55:10Z","html_url":"https://github.com/C4Q/AC3.2Unit2FinalAssessment/pull/15#discussion_r82681127","pull_request_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/pulls/comments/82681127"},"html":{"href":"https://github.com/C4Q/AC3.2Unit2FinalAssessment/pull/15#discussion_r82681127"},"pull_request":{"href":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/pulls/15","id":88309051,"html_url":"https://github.com/C4Q/AC3.2Unit2FinalAssessment/pull/15","diff_url":"https://github.com/C4Q/AC3.2Unit2FinalAssessment/pull/15.diff","patch_url":"https://github.com/C4Q/AC3.2Unit2FinalAssessment/pull/15.patch","issue_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/issues/15","number":15,"state":"open","locked":false,"title":"I'm Done","user":{"login":"MiraEs","id":15828125,"avatar_url":"https://avatars.githubusercontent.com/u/15828125?v=3","gravatar_id":"","url":"https://api.github.com/users/MiraEs","html_url":"https://github.com/MiraEs","followers_url":"https://api.github.com/users/MiraEs/followers","following_url":"https://api.github.com/users/MiraEs/following{/other_user}","gists_url":"https://api.github.com/users/MiraEs/gists{/gist_id}","starred_url":"https://api.github.com/users/MiraEs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiraEs/subscriptions","organizations_url":"https://api.github.com/users/MiraEs/orgs","repos_url":"https://api.github.com/users/MiraEs/repos","events_url":"https://api.github.com/users/MiraEs/events{/privacy}","received_events_url":"https://api.github.com/users/MiraEs/received_events","type":"User","site_admin":false},"body":"almost ","created_at":"2016-10-06T17:48:34Z","updated_at":"2016-10-10T21:00:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c3edbe5bf727712fbd7611868fc8a12d28ec0a8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/pulls/15/commits","review_comments_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/pulls/15/comments","review_comment_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/pulls/comments{/number}","comments_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/issues/15/comments","statuses_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/statuses/42b280806dc2a6b7ae3e2da547911605801d6678","head":{"label":"MiraEs:master","ref":"master","sha":"42b280806dc2a6b7ae3e2da547911605801d6678","user":{"login":"MiraEs","id":15828125,"avatar_url":"https://avatars.githubusercontent.com/u/15828125?v=3","gravatar_id":"","url":"https://api.github.com/users/MiraEs","html_url":"https://github.com/MiraEs","followers_url":"https://api.github.com/users/MiraEs/followers","following_url":"https://api.github.com/users/MiraEs/following{/other_user}","gists_url":"https://api.github.com/users/MiraEs/gists{/gist_id}","starred_url":"https://api.github.com/users/MiraEs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiraEs/subscriptions","organizations_url":"https://api.github.com/users/MiraEs/orgs","repos_url":"https://api.github.com/users/MiraEs/repos","events_url":"https://api.github.com/users/MiraEs/events{/privacy}","received_events_url":"https://api.github.com/users/MiraEs/received_events","type":"User","site_admin":false},"repo":{"id":70163002,"name":"AC3.2Unit2FinalAssessment","full_name":"MiraEs/AC3.2Unit2FinalAssessment","owner":{"login":"MiraEs","id":15828125,"avatar_url":"https://avatars.githubusercontent.com/u/15828125?v=3","gravatar_id":"","url":"https://api.github.com/users/MiraEs","html_url":"https://github.com/MiraEs","followers_url":"https://api.github.com/users/MiraEs/followers","following_url":"https://api.github.com/users/MiraEs/following{/other_user}","gists_url":"https://api.github.com/users/MiraEs/gists{/gist_id}","starred_url":"https://api.github.com/users/MiraEs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiraEs/subscriptions","organizations_url":"https://api.github.com/users/MiraEs/orgs","repos_url":"https://api.github.com/users/MiraEs/repos","events_url":"https://api.github.com/users/MiraEs/events{/privacy}","received_events_url":"https://api.github.com/users/MiraEs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MiraEs/AC3.2Unit2FinalAssessment","description":null,"fork":true,"url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment","forks_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/forks","keys_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/teams","hooks_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/hooks","issue_events_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/issues/events{/number}","events_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/events","assignees_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/assignees{/user}","branches_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/branches{/branch}","tags_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/tags","blobs_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/git/refs{/sha}","trees_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/statuses/{sha}","languages_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/languages","stargazers_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/stargazers","contributors_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/contributors","subscribers_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/subscribers","subscription_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/subscription","commits_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/commits{/sha}","git_commits_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/git/commits{/sha}","comments_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/comments{/number}","issue_comment_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/issues/comments{/number}","contents_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/contents/{+path}","compare_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/merges","archive_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/downloads","issues_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/issues{/number}","pulls_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/pulls{/number}","milestones_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/milestones{/number}","notifications_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/labels{/name}","releases_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/releases{/id}","deployments_url":"https://api.github.com/repos/MiraEs/AC3.2Unit2FinalAssessment/deployments","created_at":"2016-10-06T14:41:56Z","updated_at":"2016-10-06T14:45:01Z","pushed_at":"2016-10-06T17:46:47Z","git_url":"git://github.com/MiraEs/AC3.2Unit2FinalAssessment.git","ssh_url":"git@github.com:MiraEs/AC3.2Unit2FinalAssessment.git","clone_url":"https://github.com/MiraEs/AC3.2Unit2FinalAssessment.git","svn_url":"https://github.com/MiraEs/AC3.2Unit2FinalAssessment","homepage":null,"size":323,"stargazers_count":0,"watchers_count":0,"language":"Swift","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":"C4Q:master","ref":"master","sha":"3d369dd2945031a0bf53112c5607f3a93cac0390","user":{"login":"C4Q","id":5825944,"avatar_url":"https://avatars.githubusercontent.com/u/5825944?v=3","gravatar_id":"","url":"https://api.github.com/users/C4Q","html_url":"https://github.com/C4Q","followers_url":"https://api.github.com/users/C4Q/followers","following_url":"https://api.github.com/users/C4Q/following{/other_user}","gists_url":"https://api.github.com/users/C4Q/gists{/gist_id}","starred_url":"https://api.github.com/users/C4Q/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/C4Q/subscriptions","organizations_url":"https://api.github.com/users/C4Q/orgs","repos_url":"https://api.github.com/users/C4Q/repos","events_url":"https://api.github.com/users/C4Q/events{/privacy}","received_events_url":"https://api.github.com/users/C4Q/received_events","type":"Organization","site_admin":false},"repo":{"id":70119655,"name":"AC3.2Unit2FinalAssessment","full_name":"C4Q/AC3.2Unit2FinalAssessment","owner":{"login":"C4Q","id":5825944,"avatar_url":"https://avatars.githubusercontent.com/u/5825944?v=3","gravatar_id":"","url":"https://api.github.com/users/C4Q","html_url":"https://github.com/C4Q","followers_url":"https://api.github.com/users/C4Q/followers","following_url":"https://api.github.com/users/C4Q/following{/other_user}","gists_url":"https://api.github.com/users/C4Q/gists{/gist_id}","starred_url":"https://api.github.com/users/C4Q/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/C4Q/subscriptions","organizations_url":"https://api.github.com/users/C4Q/orgs","repos_url":"https://api.github.com/users/C4Q/repos","events_url":"https://api.github.com/users/C4Q/events{/privacy}","received_events_url":"https://api.github.com/users/C4Q/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/C4Q/AC3.2Unit2FinalAssessment","description":null,"fork":false,"url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment","forks_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/forks","keys_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/teams","hooks_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/hooks","issue_events_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/issues/events{/number}","events_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/events","assignees_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/assignees{/user}","branches_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/branches{/branch}","tags_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/tags","blobs_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/git/refs{/sha}","trees_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/statuses/{sha}","languages_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/languages","stargazers_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/stargazers","contributors_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/contributors","subscribers_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/subscribers","subscription_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/subscription","commits_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/commits{/sha}","git_commits_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/git/commits{/sha}","comments_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/comments{/number}","issue_comment_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/issues/comments{/number}","contents_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/contents/{+path}","compare_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/merges","archive_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/downloads","issues_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/issues{/number}","pulls_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/pulls{/number}","milestones_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/milestones{/number}","notifications_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/labels{/name}","releases_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/releases{/id}","deployments_url":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/deployments","created_at":"2016-10-06T03:31:48Z","updated_at":"2016-10-07T19:58:44Z","pushed_at":"2016-10-07T19:41:05Z","git_url":"git://github.com/C4Q/AC3.2Unit2FinalAssessment.git","ssh_url":"git@github.com:C4Q/AC3.2Unit2FinalAssessment.git","clone_url":"https://github.com/C4Q/AC3.2Unit2FinalAssessment.git","svn_url":"https://github.com/C4Q/AC3.2Unit2FinalAssessment","homepage":null,"size":522,"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":27,"forks":1,"open_issues":27,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/pulls/15"},"html":{"href":"https://github.com/C4Q/AC3.2Unit2FinalAssessment/pull/15"},"issue":{"href":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/issues/15"},"comments":{"href":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/C4Q/AC3.2Unit2FinalAssessment/statuses/42b280806dc2a6b7ae3e2da547911605801d6678"}}}}
{"actor":{"display_login":"Jamaal51"}}