{"action":"created","comment":{"url":"https://api.github.com/repos/DoanVanToan/TableViewSample/pulls/comments/227306894","pull_request_review_id":167315812,"id":227306894,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzMwNjg5NA==","diff_hunk":"@@ -0,0 +1,37 @@\n+//\n+//  ContactTableDataSource.swift\n+//  TableViewSample\n+//\n+//  Created by doan.van.toan on 10/23/18.\n+//  Copyright © 2018 doan.van.toan. All rights reserved.\n+//\n+\n+import Foundation\n+import UIKit\n+\n+class ContactTableDataSource: NSObject, UITableViewDataSource{\n+    struct Const{\n+        static let CELL_ID = \"CONTACT_DATA_SOURCE\"\n+    }\n+    \n+    var contacts: [Contact]\n+    \n+    init(contacts: [Contact]) {\n+        self.contacts = contacts\n+    }\n+    \n+    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {\n+        return self.contacts.count\n+    }\n+    \n+    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {\n+        let cell = tableView.dequeueReusableCell(withIdentifier: Const.CELL_ID, for: indexPath) as! ContactTableViewCell","path":"Screens/ContactTableDataSource.swift","position":28,"original_position":28,"commit_id":"472c19daec656f647614bc2e70f38d8fd19de36f","original_commit_id":"472c19daec656f647614bc2e70f38d8fd19de36f","user":{"login":"tgdong2296","id":38901305,"node_id":"MDQ6VXNlcjM4OTAxMzA1","avatar_url":"https://avatars0.githubusercontent.com/u/38901305?v=4","gravatar_id":"","url":"https://api.github.com/users/tgdong2296","html_url":"https://github.com/tgdong2296","followers_url":"https://api.github.com/users/tgdong2296/followers","following_url":"https://api.github.com/users/tgdong2296/following{/other_user}","gists_url":"https://api.github.com/users/tgdong2296/gists{/gist_id}","starred_url":"https://api.github.com/users/tgdong2296/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgdong2296/subscriptions","organizations_url":"https://api.github.com/users/tgdong2296/orgs","repos_url":"https://api.github.com/users/tgdong2296/repos","events_url":"https://api.github.com/users/tgdong2296/events{/privacy}","received_events_url":"https://api.github.com/users/tgdong2296/received_events","type":"User","site_admin":false},"body":"dùng lib reusable đi em","created_at":"2018-10-23T09:33:18Z","updated_at":"2018-10-23T09:34:53Z","html_url":"https://github.com/DoanVanToan/TableViewSample/pull/2#discussion_r227306894","pull_request_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/pulls/2","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/DoanVanToan/TableViewSample/pulls/comments/227306894"},"html":{"href":"https://github.com/DoanVanToan/TableViewSample/pull/2#discussion_r227306894"},"pull_request":{"href":"https://api.github.com/repos/DoanVanToan/TableViewSample/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/DoanVanToan/TableViewSample/pulls/2","id":224963418,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0OTYzNDE4","html_url":"https://github.com/DoanVanToan/TableViewSample/pull/2","diff_url":"https://github.com/DoanVanToan/TableViewSample/pull/2.diff","patch_url":"https://github.com/DoanVanToan/TableViewSample/pull/2.patch","issue_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/issues/2","number":2,"state":"open","locked":false,"title":"init table view","user":{"login":"DoanVanToan","id":21195010,"node_id":"MDQ6VXNlcjIxMTk1MDEw","avatar_url":"https://avatars3.githubusercontent.com/u/21195010?v=4","gravatar_id":"","url":"https://api.github.com/users/DoanVanToan","html_url":"https://github.com/DoanVanToan","followers_url":"https://api.github.com/users/DoanVanToan/followers","following_url":"https://api.github.com/users/DoanVanToan/following{/other_user}","gists_url":"https://api.github.com/users/DoanVanToan/gists{/gist_id}","starred_url":"https://api.github.com/users/DoanVanToan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoanVanToan/subscriptions","organizations_url":"https://api.github.com/users/DoanVanToan/orgs","repos_url":"https://api.github.com/users/DoanVanToan/repos","events_url":"https://api.github.com/users/DoanVanToan/events{/privacy}","received_events_url":"https://api.github.com/users/DoanVanToan/received_events","type":"User","site_admin":false},"body":"# Init table view\r\n\r\n# Screen Record\r\nhttps://gyazo.com/0c36c16f685647b70feb713529ebf14f","created_at":"2018-10-23T09:30:43Z","updated_at":"2018-10-23T09:34:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d4c9d4760740f7818cd216c40488bebdce9fe769","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/pulls/2/commits","review_comments_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/pulls/2/comments","review_comment_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/issues/2/comments","statuses_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/statuses/472c19daec656f647614bc2e70f38d8fd19de36f","head":{"label":"DoanVanToan:init_table_view","ref":"init_table_view","sha":"472c19daec656f647614bc2e70f38d8fd19de36f","user":{"login":"DoanVanToan","id":21195010,"node_id":"MDQ6VXNlcjIxMTk1MDEw","avatar_url":"https://avatars3.githubusercontent.com/u/21195010?v=4","gravatar_id":"","url":"https://api.github.com/users/DoanVanToan","html_url":"https://github.com/DoanVanToan","followers_url":"https://api.github.com/users/DoanVanToan/followers","following_url":"https://api.github.com/users/DoanVanToan/following{/other_user}","gists_url":"https://api.github.com/users/DoanVanToan/gists{/gist_id}","starred_url":"https://api.github.com/users/DoanVanToan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoanVanToan/subscriptions","organizations_url":"https://api.github.com/users/DoanVanToan/orgs","repos_url":"https://api.github.com/users/DoanVanToan/repos","events_url":"https://api.github.com/users/DoanVanToan/events{/privacy}","received_events_url":"https://api.github.com/users/DoanVanToan/received_events","type":"User","site_admin":false},"repo":{"id":154261515,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQyNjE1MTU=","name":"TableViewSample","full_name":"DoanVanToan/TableViewSample","private":false,"owner":{"login":"DoanVanToan","id":21195010,"node_id":"MDQ6VXNlcjIxMTk1MDEw","avatar_url":"https://avatars3.githubusercontent.com/u/21195010?v=4","gravatar_id":"","url":"https://api.github.com/users/DoanVanToan","html_url":"https://github.com/DoanVanToan","followers_url":"https://api.github.com/users/DoanVanToan/followers","following_url":"https://api.github.com/users/DoanVanToan/following{/other_user}","gists_url":"https://api.github.com/users/DoanVanToan/gists{/gist_id}","starred_url":"https://api.github.com/users/DoanVanToan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoanVanToan/subscriptions","organizations_url":"https://api.github.com/users/DoanVanToan/orgs","repos_url":"https://api.github.com/users/DoanVanToan/repos","events_url":"https://api.github.com/users/DoanVanToan/events{/privacy}","received_events_url":"https://api.github.com/users/DoanVanToan/received_events","type":"User","site_admin":false},"html_url":"https://github.com/DoanVanToan/TableViewSample","description":null,"fork":false,"url":"https://api.github.com/repos/DoanVanToan/TableViewSample","forks_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/forks","keys_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/teams","hooks_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/hooks","issue_events_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/issues/events{/number}","events_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/events","assignees_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/assignees{/user}","branches_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/branches{/branch}","tags_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/tags","blobs_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/statuses/{sha}","languages_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/languages","stargazers_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/stargazers","contributors_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/contributors","subscribers_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/subscribers","subscription_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/subscription","commits_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/issues/comments{/number}","contents_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/contents/{+path}","compare_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/merges","archive_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/downloads","issues_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/issues{/number}","pulls_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/pulls{/number}","milestones_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/milestones{/number}","notifications_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/labels{/name}","releases_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/releases{/id}","deployments_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/deployments","created_at":"2018-10-23T04:20:30Z","updated_at":"2018-10-23T04:22:47Z","pushed_at":"2018-10-23T09:30:44Z","git_url":"git://github.com/DoanVanToan/TableViewSample.git","ssh_url":"git@github.com:DoanVanToan/TableViewSample.git","clone_url":"https://github.com/DoanVanToan/TableViewSample.git","svn_url":"https://github.com/DoanVanToan/TableViewSample","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"DoanVanToan:master","ref":"master","sha":"ac5cf2032396163d98916c1d170e9fbd4fc9e845","user":{"login":"DoanVanToan","id":21195010,"node_id":"MDQ6VXNlcjIxMTk1MDEw","avatar_url":"https://avatars3.githubusercontent.com/u/21195010?v=4","gravatar_id":"","url":"https://api.github.com/users/DoanVanToan","html_url":"https://github.com/DoanVanToan","followers_url":"https://api.github.com/users/DoanVanToan/followers","following_url":"https://api.github.com/users/DoanVanToan/following{/other_user}","gists_url":"https://api.github.com/users/DoanVanToan/gists{/gist_id}","starred_url":"https://api.github.com/users/DoanVanToan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoanVanToan/subscriptions","organizations_url":"https://api.github.com/users/DoanVanToan/orgs","repos_url":"https://api.github.com/users/DoanVanToan/repos","events_url":"https://api.github.com/users/DoanVanToan/events{/privacy}","received_events_url":"https://api.github.com/users/DoanVanToan/received_events","type":"User","site_admin":false},"repo":{"id":154261515,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQyNjE1MTU=","name":"TableViewSample","full_name":"DoanVanToan/TableViewSample","private":false,"owner":{"login":"DoanVanToan","id":21195010,"node_id":"MDQ6VXNlcjIxMTk1MDEw","avatar_url":"https://avatars3.githubusercontent.com/u/21195010?v=4","gravatar_id":"","url":"https://api.github.com/users/DoanVanToan","html_url":"https://github.com/DoanVanToan","followers_url":"https://api.github.com/users/DoanVanToan/followers","following_url":"https://api.github.com/users/DoanVanToan/following{/other_user}","gists_url":"https://api.github.com/users/DoanVanToan/gists{/gist_id}","starred_url":"https://api.github.com/users/DoanVanToan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoanVanToan/subscriptions","organizations_url":"https://api.github.com/users/DoanVanToan/orgs","repos_url":"https://api.github.com/users/DoanVanToan/repos","events_url":"https://api.github.com/users/DoanVanToan/events{/privacy}","received_events_url":"https://api.github.com/users/DoanVanToan/received_events","type":"User","site_admin":false},"html_url":"https://github.com/DoanVanToan/TableViewSample","description":null,"fork":false,"url":"https://api.github.com/repos/DoanVanToan/TableViewSample","forks_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/forks","keys_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/teams","hooks_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/hooks","issue_events_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/issues/events{/number}","events_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/events","assignees_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/assignees{/user}","branches_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/branches{/branch}","tags_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/tags","blobs_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/statuses/{sha}","languages_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/languages","stargazers_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/stargazers","contributors_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/contributors","subscribers_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/subscribers","subscription_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/subscription","commits_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/issues/comments{/number}","contents_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/contents/{+path}","compare_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/merges","archive_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/downloads","issues_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/issues{/number}","pulls_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/pulls{/number}","milestones_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/milestones{/number}","notifications_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/labels{/name}","releases_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/releases{/id}","deployments_url":"https://api.github.com/repos/DoanVanToan/TableViewSample/deployments","created_at":"2018-10-23T04:20:30Z","updated_at":"2018-10-23T04:22:47Z","pushed_at":"2018-10-23T09:30:44Z","git_url":"git://github.com/DoanVanToan/TableViewSample.git","ssh_url":"git@github.com:DoanVanToan/TableViewSample.git","clone_url":"https://github.com/DoanVanToan/TableViewSample.git","svn_url":"https://github.com/DoanVanToan/TableViewSample","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DoanVanToan/TableViewSample/pulls/2"},"html":{"href":"https://github.com/DoanVanToan/TableViewSample/pull/2"},"issue":{"href":"https://api.github.com/repos/DoanVanToan/TableViewSample/issues/2"},"comments":{"href":"https://api.github.com/repos/DoanVanToan/TableViewSample/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/DoanVanToan/TableViewSample/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/DoanVanToan/TableViewSample/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DoanVanToan/TableViewSample/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/DoanVanToan/TableViewSample/statuses/472c19daec656f647614bc2e70f38d8fd19de36f"}},"author_association":"OWNER"}}
{"actor":{"display_login":"tgdong2296"}}