{"action":"created","comment":{"url":"https://api.github.com/repos/Hoaa/foursquare/pulls/comments/93558936","pull_request_review_id":14088056,"id":93558936,"diff_hunk":"@@ -0,0 +1,117 @@\n+//\n+//  DisplaySwitchLayout.swift\n+//  FourSquare\n+//\n+//  Created by Duy Linh on 12/20/16.\n+//  Copyright © 2016 Duy Linh. All rights reserved.\n+//\n+\n+import UIKit\n+private let ListLayoutCountOfColumns = 1\n+private let GridLayoutCountOfColumns = 2\n+@objc public enum LayoutState: Int {\n+    case list, grid\n+}\n+open class DisplaySwitchLayout: UICollectionViewLayout {\n+    \n+    fileprivate let numberOfColumns: Int\n+    fileprivate let cellPadding: CGFloat = 6.0\n+    fileprivate let staticCellHeight: CGFloat\n+    fileprivate let nextLayoutStaticCellHeight: CGFloat\n+    fileprivate var previousContentOffset: NSValue?\n+    fileprivate var layoutState: LayoutState\n+    fileprivate var baseLayoutAttributes: [DisplaySwitchLayoutAttributes]!\n+    fileprivate var contentHeight: CGFloat = 0.0\n+    fileprivate var contentWidth: CGFloat {\n+        let insets = collectionView!.contentInset","path":"FourSquare/Library/DisplaySwitcher/Layouts/DisplaySwitchLayout.swift","position":26,"original_position":26,"commit_id":"b181a9355fd86b83e3a3612da71cb3c6f70f5105","original_commit_id":"b181a9355fd86b83e3a3612da71cb3c6f70f5105","user":{"login":"Hoaa","id":16368281,"avatar_url":"https://avatars.githubusercontent.com/u/16368281?v=3","gravatar_id":"","url":"https://api.github.com/users/Hoaa","html_url":"https://github.com/Hoaa","followers_url":"https://api.github.com/users/Hoaa/followers","following_url":"https://api.github.com/users/Hoaa/following{/other_user}","gists_url":"https://api.github.com/users/Hoaa/gists{/gist_id}","starred_url":"https://api.github.com/users/Hoaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hoaa/subscriptions","organizations_url":"https://api.github.com/users/Hoaa/orgs","repos_url":"https://api.github.com/users/Hoaa/repos","events_url":"https://api.github.com/users/Hoaa/events{/privacy}","received_events_url":"https://api.github.com/users/Hoaa/received_events","type":"User","site_admin":false},"body":"ko force unwrap nha e","created_at":"2016-12-22T02:52:11Z","updated_at":"2016-12-22T02:56:38Z","html_url":"https://github.com/Hoaa/foursquare/pull/3#discussion_r93558936","pull_request_url":"https://api.github.com/repos/Hoaa/foursquare/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/Hoaa/foursquare/pulls/comments/93558936"},"html":{"href":"https://github.com/Hoaa/foursquare/pull/3#discussion_r93558936"},"pull_request":{"href":"https://api.github.com/repos/Hoaa/foursquare/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/Hoaa/foursquare/pulls/3","id":98857044,"html_url":"https://github.com/Hoaa/foursquare/pull/3","diff_url":"https://github.com/Hoaa/foursquare/pull/3.diff","patch_url":"https://github.com/Hoaa/foursquare/pull/3.patch","issue_url":"https://api.github.com/repos/Hoaa/foursquare/issues/3","number":3,"state":"open","locked":false,"title":"Feature/search","user":{"login":"duylinh158","id":22370882,"avatar_url":"https://avatars.githubusercontent.com/u/22370882?v=3","gravatar_id":"","url":"https://api.github.com/users/duylinh158","html_url":"https://github.com/duylinh158","followers_url":"https://api.github.com/users/duylinh158/followers","following_url":"https://api.github.com/users/duylinh158/following{/other_user}","gists_url":"https://api.github.com/users/duylinh158/gists{/gist_id}","starred_url":"https://api.github.com/users/duylinh158/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duylinh158/subscriptions","organizations_url":"https://api.github.com/users/duylinh158/orgs","repos_url":"https://api.github.com/users/duylinh158/repos","events_url":"https://api.github.com/users/duylinh158/events{/privacy}","received_events_url":"https://api.github.com/users/duylinh158/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-21T01:32:47Z","updated_at":"2016-12-22T02:56:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d1751d69ed20ef5aa72d6c81a517bfdfcc4f6e01","assignee":{"login":"Hoaa","id":16368281,"avatar_url":"https://avatars.githubusercontent.com/u/16368281?v=3","gravatar_id":"","url":"https://api.github.com/users/Hoaa","html_url":"https://github.com/Hoaa","followers_url":"https://api.github.com/users/Hoaa/followers","following_url":"https://api.github.com/users/Hoaa/following{/other_user}","gists_url":"https://api.github.com/users/Hoaa/gists{/gist_id}","starred_url":"https://api.github.com/users/Hoaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hoaa/subscriptions","organizations_url":"https://api.github.com/users/Hoaa/orgs","repos_url":"https://api.github.com/users/Hoaa/repos","events_url":"https://api.github.com/users/Hoaa/events{/privacy}","received_events_url":"https://api.github.com/users/Hoaa/received_events","type":"User","site_admin":false},"assignees":[{"login":"Hoaa","id":16368281,"avatar_url":"https://avatars.githubusercontent.com/u/16368281?v=3","gravatar_id":"","url":"https://api.github.com/users/Hoaa","html_url":"https://github.com/Hoaa","followers_url":"https://api.github.com/users/Hoaa/followers","following_url":"https://api.github.com/users/Hoaa/following{/other_user}","gists_url":"https://api.github.com/users/Hoaa/gists{/gist_id}","starred_url":"https://api.github.com/users/Hoaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hoaa/subscriptions","organizations_url":"https://api.github.com/users/Hoaa/orgs","repos_url":"https://api.github.com/users/Hoaa/repos","events_url":"https://api.github.com/users/Hoaa/events{/privacy}","received_events_url":"https://api.github.com/users/Hoaa/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Hoaa/foursquare/pulls/3/commits","review_comments_url":"https://api.github.com/repos/Hoaa/foursquare/pulls/3/comments","review_comment_url":"https://api.github.com/repos/Hoaa/foursquare/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Hoaa/foursquare/issues/3/comments","statuses_url":"https://api.github.com/repos/Hoaa/foursquare/statuses/b181a9355fd86b83e3a3612da71cb3c6f70f5105","head":{"label":"Hoaa:feature/search","ref":"feature/search","sha":"b181a9355fd86b83e3a3612da71cb3c6f70f5105","user":{"login":"Hoaa","id":16368281,"avatar_url":"https://avatars.githubusercontent.com/u/16368281?v=3","gravatar_id":"","url":"https://api.github.com/users/Hoaa","html_url":"https://github.com/Hoaa","followers_url":"https://api.github.com/users/Hoaa/followers","following_url":"https://api.github.com/users/Hoaa/following{/other_user}","gists_url":"https://api.github.com/users/Hoaa/gists{/gist_id}","starred_url":"https://api.github.com/users/Hoaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hoaa/subscriptions","organizations_url":"https://api.github.com/users/Hoaa/orgs","repos_url":"https://api.github.com/users/Hoaa/repos","events_url":"https://api.github.com/users/Hoaa/events{/privacy}","received_events_url":"https://api.github.com/users/Hoaa/received_events","type":"User","site_admin":false},"repo":{"id":76242473,"name":"foursquare","full_name":"Hoaa/foursquare","owner":{"login":"Hoaa","id":16368281,"avatar_url":"https://avatars.githubusercontent.com/u/16368281?v=3","gravatar_id":"","url":"https://api.github.com/users/Hoaa","html_url":"https://github.com/Hoaa","followers_url":"https://api.github.com/users/Hoaa/followers","following_url":"https://api.github.com/users/Hoaa/following{/other_user}","gists_url":"https://api.github.com/users/Hoaa/gists{/gist_id}","starred_url":"https://api.github.com/users/Hoaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hoaa/subscriptions","organizations_url":"https://api.github.com/users/Hoaa/orgs","repos_url":"https://api.github.com/users/Hoaa/repos","events_url":"https://api.github.com/users/Hoaa/events{/privacy}","received_events_url":"https://api.github.com/users/Hoaa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Hoaa/foursquare","description":null,"fork":false,"url":"https://api.github.com/repos/Hoaa/foursquare","forks_url":"https://api.github.com/repos/Hoaa/foursquare/forks","keys_url":"https://api.github.com/repos/Hoaa/foursquare/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hoaa/foursquare/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hoaa/foursquare/teams","hooks_url":"https://api.github.com/repos/Hoaa/foursquare/hooks","issue_events_url":"https://api.github.com/repos/Hoaa/foursquare/issues/events{/number}","events_url":"https://api.github.com/repos/Hoaa/foursquare/events","assignees_url":"https://api.github.com/repos/Hoaa/foursquare/assignees{/user}","branches_url":"https://api.github.com/repos/Hoaa/foursquare/branches{/branch}","tags_url":"https://api.github.com/repos/Hoaa/foursquare/tags","blobs_url":"https://api.github.com/repos/Hoaa/foursquare/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hoaa/foursquare/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hoaa/foursquare/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hoaa/foursquare/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hoaa/foursquare/statuses/{sha}","languages_url":"https://api.github.com/repos/Hoaa/foursquare/languages","stargazers_url":"https://api.github.com/repos/Hoaa/foursquare/stargazers","contributors_url":"https://api.github.com/repos/Hoaa/foursquare/contributors","subscribers_url":"https://api.github.com/repos/Hoaa/foursquare/subscribers","subscription_url":"https://api.github.com/repos/Hoaa/foursquare/subscription","commits_url":"https://api.github.com/repos/Hoaa/foursquare/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hoaa/foursquare/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hoaa/foursquare/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hoaa/foursquare/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hoaa/foursquare/contents/{+path}","compare_url":"https://api.github.com/repos/Hoaa/foursquare/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hoaa/foursquare/merges","archive_url":"https://api.github.com/repos/Hoaa/foursquare/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hoaa/foursquare/downloads","issues_url":"https://api.github.com/repos/Hoaa/foursquare/issues{/number}","pulls_url":"https://api.github.com/repos/Hoaa/foursquare/pulls{/number}","milestones_url":"https://api.github.com/repos/Hoaa/foursquare/milestones{/number}","notifications_url":"https://api.github.com/repos/Hoaa/foursquare/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hoaa/foursquare/labels{/name}","releases_url":"https://api.github.com/repos/Hoaa/foursquare/releases{/id}","deployments_url":"https://api.github.com/repos/Hoaa/foursquare/deployments","created_at":"2016-12-12T09:37:58Z","updated_at":"2016-12-13T21:25:34Z","pushed_at":"2016-12-21T03:20:33Z","git_url":"git://github.com/Hoaa/foursquare.git","ssh_url":"git@github.com:Hoaa/foursquare.git","clone_url":"https://github.com/Hoaa/foursquare.git","svn_url":"https://github.com/Hoaa/foursquare","homepage":null,"size":1486,"stargazers_count":1,"watchers_count":1,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"Hoaa:master","ref":"master","sha":"af5968e3888c2a2291587d2088cb3fc3f208c63e","user":{"login":"Hoaa","id":16368281,"avatar_url":"https://avatars.githubusercontent.com/u/16368281?v=3","gravatar_id":"","url":"https://api.github.com/users/Hoaa","html_url":"https://github.com/Hoaa","followers_url":"https://api.github.com/users/Hoaa/followers","following_url":"https://api.github.com/users/Hoaa/following{/other_user}","gists_url":"https://api.github.com/users/Hoaa/gists{/gist_id}","starred_url":"https://api.github.com/users/Hoaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hoaa/subscriptions","organizations_url":"https://api.github.com/users/Hoaa/orgs","repos_url":"https://api.github.com/users/Hoaa/repos","events_url":"https://api.github.com/users/Hoaa/events{/privacy}","received_events_url":"https://api.github.com/users/Hoaa/received_events","type":"User","site_admin":false},"repo":{"id":76242473,"name":"foursquare","full_name":"Hoaa/foursquare","owner":{"login":"Hoaa","id":16368281,"avatar_url":"https://avatars.githubusercontent.com/u/16368281?v=3","gravatar_id":"","url":"https://api.github.com/users/Hoaa","html_url":"https://github.com/Hoaa","followers_url":"https://api.github.com/users/Hoaa/followers","following_url":"https://api.github.com/users/Hoaa/following{/other_user}","gists_url":"https://api.github.com/users/Hoaa/gists{/gist_id}","starred_url":"https://api.github.com/users/Hoaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hoaa/subscriptions","organizations_url":"https://api.github.com/users/Hoaa/orgs","repos_url":"https://api.github.com/users/Hoaa/repos","events_url":"https://api.github.com/users/Hoaa/events{/privacy}","received_events_url":"https://api.github.com/users/Hoaa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Hoaa/foursquare","description":null,"fork":false,"url":"https://api.github.com/repos/Hoaa/foursquare","forks_url":"https://api.github.com/repos/Hoaa/foursquare/forks","keys_url":"https://api.github.com/repos/Hoaa/foursquare/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hoaa/foursquare/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hoaa/foursquare/teams","hooks_url":"https://api.github.com/repos/Hoaa/foursquare/hooks","issue_events_url":"https://api.github.com/repos/Hoaa/foursquare/issues/events{/number}","events_url":"https://api.github.com/repos/Hoaa/foursquare/events","assignees_url":"https://api.github.com/repos/Hoaa/foursquare/assignees{/user}","branches_url":"https://api.github.com/repos/Hoaa/foursquare/branches{/branch}","tags_url":"https://api.github.com/repos/Hoaa/foursquare/tags","blobs_url":"https://api.github.com/repos/Hoaa/foursquare/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hoaa/foursquare/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hoaa/foursquare/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hoaa/foursquare/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hoaa/foursquare/statuses/{sha}","languages_url":"https://api.github.com/repos/Hoaa/foursquare/languages","stargazers_url":"https://api.github.com/repos/Hoaa/foursquare/stargazers","contributors_url":"https://api.github.com/repos/Hoaa/foursquare/contributors","subscribers_url":"https://api.github.com/repos/Hoaa/foursquare/subscribers","subscription_url":"https://api.github.com/repos/Hoaa/foursquare/subscription","commits_url":"https://api.github.com/repos/Hoaa/foursquare/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hoaa/foursquare/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hoaa/foursquare/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hoaa/foursquare/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hoaa/foursquare/contents/{+path}","compare_url":"https://api.github.com/repos/Hoaa/foursquare/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hoaa/foursquare/merges","archive_url":"https://api.github.com/repos/Hoaa/foursquare/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hoaa/foursquare/downloads","issues_url":"https://api.github.com/repos/Hoaa/foursquare/issues{/number}","pulls_url":"https://api.github.com/repos/Hoaa/foursquare/pulls{/number}","milestones_url":"https://api.github.com/repos/Hoaa/foursquare/milestones{/number}","notifications_url":"https://api.github.com/repos/Hoaa/foursquare/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hoaa/foursquare/labels{/name}","releases_url":"https://api.github.com/repos/Hoaa/foursquare/releases{/id}","deployments_url":"https://api.github.com/repos/Hoaa/foursquare/deployments","created_at":"2016-12-12T09:37:58Z","updated_at":"2016-12-13T21:25:34Z","pushed_at":"2016-12-21T03:20:33Z","git_url":"git://github.com/Hoaa/foursquare.git","ssh_url":"git@github.com:Hoaa/foursquare.git","clone_url":"https://github.com/Hoaa/foursquare.git","svn_url":"https://github.com/Hoaa/foursquare","homepage":null,"size":1486,"stargazers_count":1,"watchers_count":1,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Hoaa/foursquare/pulls/3"},"html":{"href":"https://github.com/Hoaa/foursquare/pull/3"},"issue":{"href":"https://api.github.com/repos/Hoaa/foursquare/issues/3"},"comments":{"href":"https://api.github.com/repos/Hoaa/foursquare/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/Hoaa/foursquare/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/Hoaa/foursquare/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Hoaa/foursquare/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/Hoaa/foursquare/statuses/b181a9355fd86b83e3a3612da71cb3c6f70f5105"}}}}
{"actor":{"display_login":"Hoaa"}}