{"action":"created","comment":{"url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/pulls/comments/175275650","pull_request_review_id":104783877,"id":175275650,"diff_hunk":"@@ -0,0 +1,460 @@\n+//\n+//  swift\n+//  DOFavoriteButton\n+//\n+//  Created by Daiki Okumura on 2015/07/09.\n+//  Copyright (c) 2015 Daiki Okumura. All rights reserved.\n+//\n+//  This software is released under the MIT License.\n+//  http://opensource.org/licenses/mit-license.php\n+//\n+import UIKit\n+\n+@IBDesignable\n+open class DOFavoriteButton: UIButton {\n+\n+    fileprivate var imageShape: CAShapeLayer!\n+    @IBInspectable open var image: UIImage! {\n+        didSet {\n+            createLayers(image: image)\n+        }\n+    }\n+    @IBInspectable open var imageColorOn: UIColor! = UIColor(red: 255/255, green: 172/255, blue: 51/255, alpha: 1.0) {\n+        didSet {\n+            if (isSelected) {\n+                imageShape.fillColor = imageColorOn.cgColor\n+            }\n+        }\n+    }\n+    @IBInspectable open var imageColorOff: UIColor! = UIColor(red: 136/255, green: 153/255, blue: 166/255, alpha: 1.0) {\n+        didSet {\n+            if (!isSelected) {\n+                imageShape.fillColor = imageColorOff.cgColor\n+            }\n+        }\n+    }\n+\n+    fileprivate var circleShape: CAShapeLayer!\n+    fileprivate var circleMask: CAShapeLayer!\n+    @IBInspectable open var circleColor: UIColor! = UIColor(red: 255/255, green: 172/255, blue: 51/255, alpha: 1.0) {\n+        didSet {\n+            circleShape.fillColor = circleColor.cgColor\n+        }\n+    }\n+\n+    fileprivate var lines: [CAShapeLayer]!\n+    @IBInspectable open var lineColor: UIColor! = UIColor(red: 250/255, green: 120/255, blue: 68/255, alpha: 1.0) {","path":"MyApp/Library/DOFavoriteButton.swift","position":46,"original_position":46,"commit_id":"23c191c984b41fd4b7a340c3604d0a6d41a7cc2a","original_commit_id":"363915d7e7c83d8a4f5a129e270123d9907a5e02","user":{"login":"at-daiho","id":13515505,"avatar_url":"https://avatars2.githubusercontent.com/u/13515505?v=4","gravatar_id":"","url":"https://api.github.com/users/at-daiho","html_url":"https://github.com/at-daiho","followers_url":"https://api.github.com/users/at-daiho/followers","following_url":"https://api.github.com/users/at-daiho/following{/other_user}","gists_url":"https://api.github.com/users/at-daiho/gists{/gist_id}","starred_url":"https://api.github.com/users/at-daiho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-daiho/subscriptions","organizations_url":"https://api.github.com/users/at-daiho/orgs","repos_url":"https://api.github.com/users/at-daiho/repos","events_url":"https://api.github.com/users/at-daiho/events{/privacy}","received_events_url":"https://api.github.com/users/at-daiho/received_events","type":"User","site_admin":false},"body":"WARNING - Operators should be surrounded by a single whitespace when they are being used.\n","created_at":"2018-03-18T02:34:39Z","updated_at":"2018-03-18T02:34:39Z","html_url":"https://github.com/blkbrds/intern10-khoanguyen/pull/64#discussion_r175275650","pull_request_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/pulls/64","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/pulls/comments/175275650"},"html":{"href":"https://github.com/blkbrds/intern10-khoanguyen/pull/64#discussion_r175275650"},"pull_request":{"href":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/pulls/64","id":175731476,"html_url":"https://github.com/blkbrds/intern10-khoanguyen/pull/64","diff_url":"https://github.com/blkbrds/intern10-khoanguyen/pull/64.diff","patch_url":"https://github.com/blkbrds/intern10-khoanguyen/pull/64.patch","issue_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/issues/64","number":64,"state":"open","locked":false,"title":"Feature - Custom tab bar","user":{"login":"at-quangphu","id":22438112,"avatar_url":"https://avatars1.githubusercontent.com/u/22438112?v=4","gravatar_id":"","url":"https://api.github.com/users/at-quangphu","html_url":"https://github.com/at-quangphu","followers_url":"https://api.github.com/users/at-quangphu/followers","following_url":"https://api.github.com/users/at-quangphu/following{/other_user}","gists_url":"https://api.github.com/users/at-quangphu/gists{/gist_id}","starred_url":"https://api.github.com/users/at-quangphu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-quangphu/subscriptions","organizations_url":"https://api.github.com/users/at-quangphu/orgs","repos_url":"https://api.github.com/users/at-quangphu/repos","events_url":"https://api.github.com/users/at-quangphu/events{/privacy}","received_events_url":"https://api.github.com/users/at-quangphu/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-18T02:16:29Z","updated_at":"2018-03-18T02:34:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"91c53d39d7a1e4faefeb2eebfae2b321928833d2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/pulls/64/commits","review_comments_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/pulls/64/comments","review_comment_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/pulls/comments{/number}","comments_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/issues/64/comments","statuses_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/statuses/23c191c984b41fd4b7a340c3604d0a6d41a7cc2a","head":{"label":"blkbrds:feature/custom_tab_bar","ref":"feature/custom_tab_bar","sha":"23c191c984b41fd4b7a340c3604d0a6d41a7cc2a","user":{"login":"blkbrds","id":28261672,"avatar_url":"https://avatars1.githubusercontent.com/u/28261672?v=4","gravatar_id":"","url":"https://api.github.com/users/blkbrds","html_url":"https://github.com/blkbrds","followers_url":"https://api.github.com/users/blkbrds/followers","following_url":"https://api.github.com/users/blkbrds/following{/other_user}","gists_url":"https://api.github.com/users/blkbrds/gists{/gist_id}","starred_url":"https://api.github.com/users/blkbrds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blkbrds/subscriptions","organizations_url":"https://api.github.com/users/blkbrds/orgs","repos_url":"https://api.github.com/users/blkbrds/repos","events_url":"https://api.github.com/users/blkbrds/events{/privacy}","received_events_url":"https://api.github.com/users/blkbrds/received_events","type":"Organization","site_admin":false},"repo":{"id":111627329,"name":"intern10-khoanguyen","full_name":"blkbrds/intern10-khoanguyen","owner":{"login":"blkbrds","id":28261672,"avatar_url":"https://avatars1.githubusercontent.com/u/28261672?v=4","gravatar_id":"","url":"https://api.github.com/users/blkbrds","html_url":"https://github.com/blkbrds","followers_url":"https://api.github.com/users/blkbrds/followers","following_url":"https://api.github.com/users/blkbrds/following{/other_user}","gists_url":"https://api.github.com/users/blkbrds/gists{/gist_id}","starred_url":"https://api.github.com/users/blkbrds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blkbrds/subscriptions","organizations_url":"https://api.github.com/users/blkbrds/orgs","repos_url":"https://api.github.com/users/blkbrds/repos","events_url":"https://api.github.com/users/blkbrds/events{/privacy}","received_events_url":"https://api.github.com/users/blkbrds/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/blkbrds/intern10-khoanguyen","description":"iOS Intern - Nguyễn Đình Bảo Khoa","fork":false,"url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen","forks_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/forks","keys_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/teams","hooks_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/hooks","issue_events_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/issues/events{/number}","events_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/events","assignees_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/assignees{/user}","branches_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/branches{/branch}","tags_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/tags","blobs_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/git/refs{/sha}","trees_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/statuses/{sha}","languages_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/languages","stargazers_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/stargazers","contributors_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/contributors","subscribers_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/subscribers","subscription_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/subscription","commits_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/commits{/sha}","git_commits_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/git/commits{/sha}","comments_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/comments{/number}","issue_comment_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/issues/comments{/number}","contents_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/contents/{+path}","compare_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/merges","archive_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/downloads","issues_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/issues{/number}","pulls_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/pulls{/number}","milestones_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/milestones{/number}","notifications_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/labels{/name}","releases_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/releases{/id}","deployments_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/deployments","created_at":"2017-11-22T02:37:46Z","updated_at":"2018-03-18T02:18:13Z","pushed_at":"2018-03-18T02:30:26Z","git_url":"git://github.com/blkbrds/intern10-khoanguyen.git","ssh_url":"git@github.com:blkbrds/intern10-khoanguyen.git","clone_url":"https://github.com/blkbrds/intern10-khoanguyen.git","svn_url":"https://github.com/blkbrds/intern10-khoanguyen","homepage":null,"size":28143,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"blkbrds:master","ref":"master","sha":"6601382b0d60e729a584100cf10b01fcfb96d22f","user":{"login":"blkbrds","id":28261672,"avatar_url":"https://avatars1.githubusercontent.com/u/28261672?v=4","gravatar_id":"","url":"https://api.github.com/users/blkbrds","html_url":"https://github.com/blkbrds","followers_url":"https://api.github.com/users/blkbrds/followers","following_url":"https://api.github.com/users/blkbrds/following{/other_user}","gists_url":"https://api.github.com/users/blkbrds/gists{/gist_id}","starred_url":"https://api.github.com/users/blkbrds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blkbrds/subscriptions","organizations_url":"https://api.github.com/users/blkbrds/orgs","repos_url":"https://api.github.com/users/blkbrds/repos","events_url":"https://api.github.com/users/blkbrds/events{/privacy}","received_events_url":"https://api.github.com/users/blkbrds/received_events","type":"Organization","site_admin":false},"repo":{"id":111627329,"name":"intern10-khoanguyen","full_name":"blkbrds/intern10-khoanguyen","owner":{"login":"blkbrds","id":28261672,"avatar_url":"https://avatars1.githubusercontent.com/u/28261672?v=4","gravatar_id":"","url":"https://api.github.com/users/blkbrds","html_url":"https://github.com/blkbrds","followers_url":"https://api.github.com/users/blkbrds/followers","following_url":"https://api.github.com/users/blkbrds/following{/other_user}","gists_url":"https://api.github.com/users/blkbrds/gists{/gist_id}","starred_url":"https://api.github.com/users/blkbrds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blkbrds/subscriptions","organizations_url":"https://api.github.com/users/blkbrds/orgs","repos_url":"https://api.github.com/users/blkbrds/repos","events_url":"https://api.github.com/users/blkbrds/events{/privacy}","received_events_url":"https://api.github.com/users/blkbrds/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/blkbrds/intern10-khoanguyen","description":"iOS Intern - Nguyễn Đình Bảo Khoa","fork":false,"url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen","forks_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/forks","keys_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/teams","hooks_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/hooks","issue_events_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/issues/events{/number}","events_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/events","assignees_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/assignees{/user}","branches_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/branches{/branch}","tags_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/tags","blobs_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/git/refs{/sha}","trees_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/statuses/{sha}","languages_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/languages","stargazers_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/stargazers","contributors_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/contributors","subscribers_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/subscribers","subscription_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/subscription","commits_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/commits{/sha}","git_commits_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/git/commits{/sha}","comments_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/comments{/number}","issue_comment_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/issues/comments{/number}","contents_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/contents/{+path}","compare_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/merges","archive_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/downloads","issues_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/issues{/number}","pulls_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/pulls{/number}","milestones_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/milestones{/number}","notifications_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/labels{/name}","releases_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/releases{/id}","deployments_url":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/deployments","created_at":"2017-11-22T02:37:46Z","updated_at":"2018-03-18T02:18:13Z","pushed_at":"2018-03-18T02:30:26Z","git_url":"git://github.com/blkbrds/intern10-khoanguyen.git","ssh_url":"git@github.com:blkbrds/intern10-khoanguyen.git","clone_url":"https://github.com/blkbrds/intern10-khoanguyen.git","svn_url":"https://github.com/blkbrds/intern10-khoanguyen","homepage":null,"size":28143,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/pulls/64"},"html":{"href":"https://github.com/blkbrds/intern10-khoanguyen/pull/64"},"issue":{"href":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/issues/64"},"comments":{"href":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/blkbrds/intern10-khoanguyen/statuses/23c191c984b41fd4b7a340c3604d0a6d41a7cc2a"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"at-daiho"}}