{"action":"created","comment":{"url":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/comments/87315646","pull_request_review_id":7933121,"id":87315646,"diff_hunk":"@@ -0,0 +1,186 @@\n+//\n+//  EmergencyViewController.swift\n+//  big-red-shuttle\n+//\n+//  Created by Austin Astorga on 10/26/16.\n+//  Copyright © 2016 cuappdev. All rights reserved.\n+//\n+\n+import UIKit\n+\n+class EmergencyViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {\n+    \n+    var tableView: UITableView!\n+    let emergencyArray = [(\"Call Cornell Univeristy Police\", 6072551111), (\"Call Emergency Services\", 911), (\"Call Blue Light Escorts\", 6072557373), (\"Call Gannett Health Services\", 6072555155)] //add more later\n+    \n+    \n+    override func viewDidLoad() {\n+        super.viewDidLoad()\n+        \n+        // Do any additional setup after loading the view.\n+        self.title = \"Emergency\"\n+        let tableViewFrame = CGRect(x: 0, y: 0, width: view.bounds.width, height: view.bounds.height - (tabBarController?.tabBar.frame.height)!)\n+        \n+        self.tableView = UITableView(frame: tableViewFrame, style: .grouped)\n+        self.tableView.delegate = self\n+        self.tableView.dataSource = self\n+        tableView.tableFooterView = UIView()\n+        tableView.backgroundColor = UIColor(red:0.96, green:0.96, blue:0.96, alpha:1.0)\n+        tableView.contentInset = UIEdgeInsetsMake(-1.0, 0.0, 0.0, 0.0)\n+        \n+        self.view.addSubview(self.tableView)\n+    }\n+\n+    \n+    override func didReceiveMemoryWarning() {\n+        super.didReceiveMemoryWarning()\n+        // Dispose of any resources that can be recreated.\n+    }\n+    \n+    /*phoneNumberToFormattedString takes in an integer and converts it to a (XXX) YYY-YYYY string */\n+    func phoneNumberToFormattedString(phoneNumber: Int) -> String {\n+        var stringOfPhoneNumber = String(describing: phoneNumber)\n+        if stringOfPhoneNumber.characters.count == 10 {\n+            let startIndex = stringOfPhoneNumber.startIndex\n+            stringOfPhoneNumber.insert(\"(\", at: startIndex)\n+            stringOfPhoneNumber.insert(\")\", at: stringOfPhoneNumber.index(startIndex, offsetBy: 4))\n+            stringOfPhoneNumber.insert(\" \", at: stringOfPhoneNumber.index(startIndex, offsetBy: 5))\n+            stringOfPhoneNumber.insert(\"-\", at: stringOfPhoneNumber.index(startIndex, offsetBy: 9))\n+            \n+            return stringOfPhoneNumber\n+        } else{\n+            \n+            return stringOfPhoneNumber\n+        }\n+    }\n+    \n+    //MARK: tableview functions\n+    \n+    func numberOfSections(in tableView: UITableView) -> Int {\n+\n+        return 2\n+    }\n+    \n+    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {\n+        if section == 1 {\n+            return emergencyArray.count\n+        }\n+        return 1\n+    }\n+    \n+    \n+    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {\n+        \n+\n+        //create everything for first cell\n+        if indexPath.section == 0 {\n+            let cell = UITableViewCell()\n+\n+            //imageView\n+            let imageView = UIImageView()\n+            imageView.image = UIImage(named: \"eye\")","path":"big-red-shuttle/EmergencyViewController.swift","position":81,"original_position":81,"commit_id":"c7d53fe1a780918645befaa54bca326828d88d28","original_commit_id":"c7d53fe1a780918645befaa54bca326828d88d28","user":{"login":"acheng96","id":8130751,"avatar_url":"https://avatars.githubusercontent.com/u/8130751?v=3","gravatar_id":"","url":"https://api.github.com/users/acheng96","html_url":"https://github.com/acheng96","followers_url":"https://api.github.com/users/acheng96/followers","following_url":"https://api.github.com/users/acheng96/following{/other_user}","gists_url":"https://api.github.com/users/acheng96/gists{/gist_id}","starred_url":"https://api.github.com/users/acheng96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acheng96/subscriptions","organizations_url":"https://api.github.com/users/acheng96/orgs","repos_url":"https://api.github.com/users/acheng96/repos","events_url":"https://api.github.com/users/acheng96/events{/privacy}","received_events_url":"https://api.github.com/users/acheng96/received_events","type":"User","site_admin":false},"body":"Condense lines 80 - 81 to `let imageView = UIImageView(image: UIImage(named: \"eye\"))`","created_at":"2016-11-10T01:46:44Z","updated_at":"2016-11-10T01:46:44Z","html_url":"https://github.com/cuappdev/big-red-shuttle/pull/10#discussion_r87315646","pull_request_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/comments/87315646"},"html":{"href":"https://github.com/cuappdev/big-red-shuttle/pull/10#discussion_r87315646"},"pull_request":{"href":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/10","id":93068342,"html_url":"https://github.com/cuappdev/big-red-shuttle/pull/10","diff_url":"https://github.com/cuappdev/big-red-shuttle/pull/10.diff","patch_url":"https://github.com/cuappdev/big-red-shuttle/pull/10.patch","issue_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/issues/10","number":10,"state":"open","locked":false,"title":"Austin/emergency view","user":{"login":"AAAstorga","id":15990084,"avatar_url":"https://avatars.githubusercontent.com/u/15990084?v=3","gravatar_id":"","url":"https://api.github.com/users/AAAstorga","html_url":"https://github.com/AAAstorga","followers_url":"https://api.github.com/users/AAAstorga/followers","following_url":"https://api.github.com/users/AAAstorga/following{/other_user}","gists_url":"https://api.github.com/users/AAAstorga/gists{/gist_id}","starred_url":"https://api.github.com/users/AAAstorga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AAAstorga/subscriptions","organizations_url":"https://api.github.com/users/AAAstorga/orgs","repos_url":"https://api.github.com/users/AAAstorga/repos","events_url":"https://api.github.com/users/AAAstorga/events{/privacy}","received_events_url":"https://api.github.com/users/AAAstorga/received_events","type":"User","site_admin":false},"body":"Built Emergency View.","created_at":"2016-11-10T01:00:28Z","updated_at":"2016-11-10T01:46:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e5535491d8970e5ba327a89ee0494364b1e04563","assignee":{"login":"acheng96","id":8130751,"avatar_url":"https://avatars.githubusercontent.com/u/8130751?v=3","gravatar_id":"","url":"https://api.github.com/users/acheng96","html_url":"https://github.com/acheng96","followers_url":"https://api.github.com/users/acheng96/followers","following_url":"https://api.github.com/users/acheng96/following{/other_user}","gists_url":"https://api.github.com/users/acheng96/gists{/gist_id}","starred_url":"https://api.github.com/users/acheng96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acheng96/subscriptions","organizations_url":"https://api.github.com/users/acheng96/orgs","repos_url":"https://api.github.com/users/acheng96/repos","events_url":"https://api.github.com/users/acheng96/events{/privacy}","received_events_url":"https://api.github.com/users/acheng96/received_events","type":"User","site_admin":false},"assignees":[{"login":"acheng96","id":8130751,"avatar_url":"https://avatars.githubusercontent.com/u/8130751?v=3","gravatar_id":"","url":"https://api.github.com/users/acheng96","html_url":"https://github.com/acheng96","followers_url":"https://api.github.com/users/acheng96/followers","following_url":"https://api.github.com/users/acheng96/following{/other_user}","gists_url":"https://api.github.com/users/acheng96/gists{/gist_id}","starred_url":"https://api.github.com/users/acheng96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acheng96/subscriptions","organizations_url":"https://api.github.com/users/acheng96/orgs","repos_url":"https://api.github.com/users/acheng96/repos","events_url":"https://api.github.com/users/acheng96/events{/privacy}","received_events_url":"https://api.github.com/users/acheng96/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/10/commits","review_comments_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/10/comments","review_comment_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/issues/10/comments","statuses_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/statuses/c7d53fe1a780918645befaa54bca326828d88d28","head":{"label":"cuappdev:austin/emergencyView","ref":"austin/emergencyView","sha":"c7d53fe1a780918645befaa54bca326828d88d28","user":{"login":"cuappdev","id":17533691,"avatar_url":"https://avatars.githubusercontent.com/u/17533691?v=3","gravatar_id":"","url":"https://api.github.com/users/cuappdev","html_url":"https://github.com/cuappdev","followers_url":"https://api.github.com/users/cuappdev/followers","following_url":"https://api.github.com/users/cuappdev/following{/other_user}","gists_url":"https://api.github.com/users/cuappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/cuappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuappdev/subscriptions","organizations_url":"https://api.github.com/users/cuappdev/orgs","repos_url":"https://api.github.com/users/cuappdev/repos","events_url":"https://api.github.com/users/cuappdev/events{/privacy}","received_events_url":"https://api.github.com/users/cuappdev/received_events","type":"Organization","site_admin":false},"repo":{"id":70748937,"name":"big-red-shuttle","full_name":"cuappdev/big-red-shuttle","owner":{"login":"cuappdev","id":17533691,"avatar_url":"https://avatars.githubusercontent.com/u/17533691?v=3","gravatar_id":"","url":"https://api.github.com/users/cuappdev","html_url":"https://github.com/cuappdev","followers_url":"https://api.github.com/users/cuappdev/followers","following_url":"https://api.github.com/users/cuappdev/following{/other_user}","gists_url":"https://api.github.com/users/cuappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/cuappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuappdev/subscriptions","organizations_url":"https://api.github.com/users/cuappdev/orgs","repos_url":"https://api.github.com/users/cuappdev/repos","events_url":"https://api.github.com/users/cuappdev/events{/privacy}","received_events_url":"https://api.github.com/users/cuappdev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cuappdev/big-red-shuttle","description":null,"fork":false,"url":"https://api.github.com/repos/cuappdev/big-red-shuttle","forks_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/forks","keys_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/teams","hooks_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/hooks","issue_events_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/issues/events{/number}","events_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/events","assignees_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/assignees{/user}","branches_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/branches{/branch}","tags_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/tags","blobs_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/git/refs{/sha}","trees_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/statuses/{sha}","languages_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/languages","stargazers_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/stargazers","contributors_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/contributors","subscribers_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/subscribers","subscription_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/subscription","commits_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/commits{/sha}","git_commits_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/git/commits{/sha}","comments_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/comments{/number}","issue_comment_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/issues/comments{/number}","contents_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/contents/{+path}","compare_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/merges","archive_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/downloads","issues_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/issues{/number}","pulls_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls{/number}","milestones_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/milestones{/number}","notifications_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/labels{/name}","releases_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/releases{/id}","deployments_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/deployments","created_at":"2016-10-12T23:04:21Z","updated_at":"2016-10-13T21:41:13Z","pushed_at":"2016-11-10T01:00:28Z","git_url":"git://github.com/cuappdev/big-red-shuttle.git","ssh_url":"git@github.com:cuappdev/big-red-shuttle.git","clone_url":"https://github.com/cuappdev/big-red-shuttle.git","svn_url":"https://github.com/cuappdev/big-red-shuttle","homepage":null,"size":129076,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"cuappdev:master","ref":"master","sha":"8e68dc43b7e9f2b450db396d968bb946b0e00cc3","user":{"login":"cuappdev","id":17533691,"avatar_url":"https://avatars.githubusercontent.com/u/17533691?v=3","gravatar_id":"","url":"https://api.github.com/users/cuappdev","html_url":"https://github.com/cuappdev","followers_url":"https://api.github.com/users/cuappdev/followers","following_url":"https://api.github.com/users/cuappdev/following{/other_user}","gists_url":"https://api.github.com/users/cuappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/cuappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuappdev/subscriptions","organizations_url":"https://api.github.com/users/cuappdev/orgs","repos_url":"https://api.github.com/users/cuappdev/repos","events_url":"https://api.github.com/users/cuappdev/events{/privacy}","received_events_url":"https://api.github.com/users/cuappdev/received_events","type":"Organization","site_admin":false},"repo":{"id":70748937,"name":"big-red-shuttle","full_name":"cuappdev/big-red-shuttle","owner":{"login":"cuappdev","id":17533691,"avatar_url":"https://avatars.githubusercontent.com/u/17533691?v=3","gravatar_id":"","url":"https://api.github.com/users/cuappdev","html_url":"https://github.com/cuappdev","followers_url":"https://api.github.com/users/cuappdev/followers","following_url":"https://api.github.com/users/cuappdev/following{/other_user}","gists_url":"https://api.github.com/users/cuappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/cuappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuappdev/subscriptions","organizations_url":"https://api.github.com/users/cuappdev/orgs","repos_url":"https://api.github.com/users/cuappdev/repos","events_url":"https://api.github.com/users/cuappdev/events{/privacy}","received_events_url":"https://api.github.com/users/cuappdev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cuappdev/big-red-shuttle","description":null,"fork":false,"url":"https://api.github.com/repos/cuappdev/big-red-shuttle","forks_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/forks","keys_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/teams","hooks_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/hooks","issue_events_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/issues/events{/number}","events_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/events","assignees_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/assignees{/user}","branches_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/branches{/branch}","tags_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/tags","blobs_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/git/refs{/sha}","trees_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/statuses/{sha}","languages_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/languages","stargazers_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/stargazers","contributors_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/contributors","subscribers_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/subscribers","subscription_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/subscription","commits_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/commits{/sha}","git_commits_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/git/commits{/sha}","comments_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/comments{/number}","issue_comment_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/issues/comments{/number}","contents_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/contents/{+path}","compare_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/merges","archive_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/downloads","issues_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/issues{/number}","pulls_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls{/number}","milestones_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/milestones{/number}","notifications_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/labels{/name}","releases_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/releases{/id}","deployments_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/deployments","created_at":"2016-10-12T23:04:21Z","updated_at":"2016-10-13T21:41:13Z","pushed_at":"2016-11-10T01:00:28Z","git_url":"git://github.com/cuappdev/big-red-shuttle.git","ssh_url":"git@github.com:cuappdev/big-red-shuttle.git","clone_url":"https://github.com/cuappdev/big-red-shuttle.git","svn_url":"https://github.com/cuappdev/big-red-shuttle","homepage":null,"size":129076,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/10"},"html":{"href":"https://github.com/cuappdev/big-red-shuttle/pull/10"},"issue":{"href":"https://api.github.com/repos/cuappdev/big-red-shuttle/issues/10"},"comments":{"href":"https://api.github.com/repos/cuappdev/big-red-shuttle/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/cuappdev/big-red-shuttle/statuses/c7d53fe1a780918645befaa54bca326828d88d28"}}}}
{"actor":{"display_login":"acheng96"}}