{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/Music_13/pulls/comments/191299328","pull_request_review_id":123842068,"id":191299328,"diff_hunk":"@@ -0,0 +1,91 @@\n+//  CellGenesHome.swift\n+//  SoundCould\n+//\n+//  Created by nguyen.van.bao on 18/05/2018.\n+//  Copyright © 2018 nguyen.van.bao. All rights reserved.\n+//\n+\n+import UIKit\n+protocol ProtocolCellGene: class {\n+    func didSelectItemAtCellGrense(dataSong: DataTrack)\n+}\n+\n+class CellGenesHome: UITableViewCell {\n+    weak var delegate: ProtocolCellGene?\n+    var arrSongs: [DataTrack] = [] {\n+        didSet {\n+            self.myCollectionView.reloadData()\n+        }\n+    }\n+\n+    @IBOutlet weak var myCollectionView: UICollectionView!\n+    override func awakeFromNib() {\n+        super.awakeFromNib()\n+        self.myCollectionView.delegate = self\n+        self.myCollectionView.dataSource = self\n+        let customCellName = UINib(nibName: \"CellSongGenes\", bundle: nil)\n+        self.myCollectionView.register(customCellName, forCellWithReuseIdentifier: \"CellSongGenes\")\n+    }\n+\n+    override func setSelected(_ selected: Bool, animated: Bool) {\n+        super.setSelected(selected, animated: animated)\n+    }\n+}\n+\n+extension CellGenesHome: UICollectionViewDataSource {\n+    func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {\n+        if !arrSongs.isEmpty {\n+            return self.arrSongs.count\n+        }\n+        return ConstantCellHome.numberInSection\n+    }\n+\n+    func collectionView(_ collectionView: UICollectionView, cellForItemAt\n+        indexPath: IndexPath) -> UICollectionViewCell {\n+        guard let cell = myCollectionView.dequeueReusableCell(withReuseIdentifier: \"CellSongGenes\", for: indexPath)\n+            as? CellSongGenes else {\n+                return UICollectionViewCell()\n+        }\n+        if !arrSongs.isEmpty {\n+            cell.setUIPlay(dataTrack: arrSongs[indexPath.row])\n+        }\n+        return cell\n+    }\n+\n+    func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {\n+        if !arrSongs.isEmpty {\n+            guard let delegate = delegate else {\n+                return\n+            }\n+            delegate.didSelectItemAtCellGrense(dataSong: arrSongs[ indexPath.row ])\n+        } else {\n+            print(\"data nil\")\n+        }\n+    }\n+}\n+\n+extension CellGenesHome: UICollectionViewDelegateFlowLayout {\n+    func collectionView(_ collectionView: UICollectionView,\n+                        layout collectionViewLayout: UICollectionViewLayout,\n+                        sizeForItemAt indexPath: IndexPath) -> CGSize {\n+        return CGSize(width: ((self.contentView.frame.width-20)/2.2), height: contentView.frame.height-10)","path":"SoundCould/SoundCould/View/Cell/CellHome/CellGenesHome.swift","position":71,"original_position":71,"commit_id":"0d62c84d999ba72c35fcc42fc4db1ad56613cac3","original_commit_id":"0d62c84d999ba72c35fcc42fc4db1ad56613cac3","user":{"login":"dangnguyenvu8893","id":13247811,"avatar_url":"https://avatars0.githubusercontent.com/u/13247811?v=4","gravatar_id":"","url":"https://api.github.com/users/dangnguyenvu8893","html_url":"https://github.com/dangnguyenvu8893","followers_url":"https://api.github.com/users/dangnguyenvu8893/followers","following_url":"https://api.github.com/users/dangnguyenvu8893/following{/other_user}","gists_url":"https://api.github.com/users/dangnguyenvu8893/gists{/gist_id}","starred_url":"https://api.github.com/users/dangnguyenvu8893/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dangnguyenvu8893/subscriptions","organizations_url":"https://api.github.com/users/dangnguyenvu8893/orgs","repos_url":"https://api.github.com/users/dangnguyenvu8893/repos","events_url":"https://api.github.com/users/dangnguyenvu8893/events{/privacy}","received_events_url":"https://api.github.com/users/dangnguyenvu8893/received_events","type":"User","site_admin":false},"body":"tại sao là 2.2?","created_at":"2018-05-29T03:55:35Z","updated_at":"2018-05-29T03:55:35Z","html_url":"https://github.com/framgia/Music_13/pull/4#discussion_r191299328","pull_request_url":"https://api.github.com/repos/framgia/Music_13/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/framgia/Music_13/pulls/comments/191299328"},"html":{"href":"https://github.com/framgia/Music_13/pull/4#discussion_r191299328"},"pull_request":{"href":"https://api.github.com/repos/framgia/Music_13/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/Music_13/pulls/4","id":189916576,"html_url":"https://github.com/framgia/Music_13/pull/4","diff_url":"https://github.com/framgia/Music_13/pull/4.diff","patch_url":"https://github.com/framgia/Music_13/pull/4.patch","issue_url":"https://api.github.com/repos/framgia/Music_13/issues/4","number":4,"state":"open","locked":false,"title":"task 2 init main screen: tab Home, tab Genres, tab Search , Screen play Execute API, fetch data, get list track","user":{"login":"trucsphuongw","id":19492837,"avatar_url":"https://avatars3.githubusercontent.com/u/19492837?v=4","gravatar_id":"","url":"https://api.github.com/users/trucsphuongw","html_url":"https://github.com/trucsphuongw","followers_url":"https://api.github.com/users/trucsphuongw/followers","following_url":"https://api.github.com/users/trucsphuongw/following{/other_user}","gists_url":"https://api.github.com/users/trucsphuongw/gists{/gist_id}","starred_url":"https://api.github.com/users/trucsphuongw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trucsphuongw/subscriptions","organizations_url":"https://api.github.com/users/trucsphuongw/orgs","repos_url":"https://api.github.com/users/trucsphuongw/repos","events_url":"https://api.github.com/users/trucsphuongw/events{/privacy}","received_events_url":"https://api.github.com/users/trucsphuongw/received_events","type":"User","site_admin":false},"body":"task 2 . init main screen: tab Home, tab Genres, tab Search , Screen play Execute API, fetch data, get list track","created_at":"2018-05-23T09:49:59Z","updated_at":"2018-05-29T03:55:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b8ede8bcd03d248f7db31a6a6adbfa4a5a13b8bb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/Music_13/pulls/4/commits","review_comments_url":"https://api.github.com/repos/framgia/Music_13/pulls/4/comments","review_comment_url":"https://api.github.com/repos/framgia/Music_13/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/Music_13/issues/4/comments","statuses_url":"https://api.github.com/repos/framgia/Music_13/statuses/0d62c84d999ba72c35fcc42fc4db1ad56613cac3","head":{"label":"trucsphuongw:task2","ref":"task2","sha":"0d62c84d999ba72c35fcc42fc4db1ad56613cac3","user":{"login":"trucsphuongw","id":19492837,"avatar_url":"https://avatars3.githubusercontent.com/u/19492837?v=4","gravatar_id":"","url":"https://api.github.com/users/trucsphuongw","html_url":"https://github.com/trucsphuongw","followers_url":"https://api.github.com/users/trucsphuongw/followers","following_url":"https://api.github.com/users/trucsphuongw/following{/other_user}","gists_url":"https://api.github.com/users/trucsphuongw/gists{/gist_id}","starred_url":"https://api.github.com/users/trucsphuongw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trucsphuongw/subscriptions","organizations_url":"https://api.github.com/users/trucsphuongw/orgs","repos_url":"https://api.github.com/users/trucsphuongw/repos","events_url":"https://api.github.com/users/trucsphuongw/events{/privacy}","received_events_url":"https://api.github.com/users/trucsphuongw/received_events","type":"User","site_admin":false},"repo":{"id":134258296,"name":"Music_13","full_name":"trucsphuongw/Music_13","owner":{"login":"trucsphuongw","id":19492837,"avatar_url":"https://avatars3.githubusercontent.com/u/19492837?v=4","gravatar_id":"","url":"https://api.github.com/users/trucsphuongw","html_url":"https://github.com/trucsphuongw","followers_url":"https://api.github.com/users/trucsphuongw/followers","following_url":"https://api.github.com/users/trucsphuongw/following{/other_user}","gists_url":"https://api.github.com/users/trucsphuongw/gists{/gist_id}","starred_url":"https://api.github.com/users/trucsphuongw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trucsphuongw/subscriptions","organizations_url":"https://api.github.com/users/trucsphuongw/orgs","repos_url":"https://api.github.com/users/trucsphuongw/repos","events_url":"https://api.github.com/users/trucsphuongw/events{/privacy}","received_events_url":"https://api.github.com/users/trucsphuongw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trucsphuongw/Music_13","description":null,"fork":true,"url":"https://api.github.com/repos/trucsphuongw/Music_13","forks_url":"https://api.github.com/repos/trucsphuongw/Music_13/forks","keys_url":"https://api.github.com/repos/trucsphuongw/Music_13/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trucsphuongw/Music_13/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trucsphuongw/Music_13/teams","hooks_url":"https://api.github.com/repos/trucsphuongw/Music_13/hooks","issue_events_url":"https://api.github.com/repos/trucsphuongw/Music_13/issues/events{/number}","events_url":"https://api.github.com/repos/trucsphuongw/Music_13/events","assignees_url":"https://api.github.com/repos/trucsphuongw/Music_13/assignees{/user}","branches_url":"https://api.github.com/repos/trucsphuongw/Music_13/branches{/branch}","tags_url":"https://api.github.com/repos/trucsphuongw/Music_13/tags","blobs_url":"https://api.github.com/repos/trucsphuongw/Music_13/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trucsphuongw/Music_13/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trucsphuongw/Music_13/git/refs{/sha}","trees_url":"https://api.github.com/repos/trucsphuongw/Music_13/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trucsphuongw/Music_13/statuses/{sha}","languages_url":"https://api.github.com/repos/trucsphuongw/Music_13/languages","stargazers_url":"https://api.github.com/repos/trucsphuongw/Music_13/stargazers","contributors_url":"https://api.github.com/repos/trucsphuongw/Music_13/contributors","subscribers_url":"https://api.github.com/repos/trucsphuongw/Music_13/subscribers","subscription_url":"https://api.github.com/repos/trucsphuongw/Music_13/subscription","commits_url":"https://api.github.com/repos/trucsphuongw/Music_13/commits{/sha}","git_commits_url":"https://api.github.com/repos/trucsphuongw/Music_13/git/commits{/sha}","comments_url":"https://api.github.com/repos/trucsphuongw/Music_13/comments{/number}","issue_comment_url":"https://api.github.com/repos/trucsphuongw/Music_13/issues/comments{/number}","contents_url":"https://api.github.com/repos/trucsphuongw/Music_13/contents/{+path}","compare_url":"https://api.github.com/repos/trucsphuongw/Music_13/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trucsphuongw/Music_13/merges","archive_url":"https://api.github.com/repos/trucsphuongw/Music_13/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trucsphuongw/Music_13/downloads","issues_url":"https://api.github.com/repos/trucsphuongw/Music_13/issues{/number}","pulls_url":"https://api.github.com/repos/trucsphuongw/Music_13/pulls{/number}","milestones_url":"https://api.github.com/repos/trucsphuongw/Music_13/milestones{/number}","notifications_url":"https://api.github.com/repos/trucsphuongw/Music_13/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trucsphuongw/Music_13/labels{/name}","releases_url":"https://api.github.com/repos/trucsphuongw/Music_13/releases{/id}","deployments_url":"https://api.github.com/repos/trucsphuongw/Music_13/deployments","created_at":"2018-05-21T11:10:28Z","updated_at":"2018-05-25T02:29:53Z","pushed_at":"2018-05-28T04:31:02Z","git_url":"git://github.com/trucsphuongw/Music_13.git","ssh_url":"git@github.com:trucsphuongw/Music_13.git","clone_url":"https://github.com/trucsphuongw/Music_13.git","svn_url":"https://github.com/trucsphuongw/Music_13","homepage":null,"size":517,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"task1"}},"base":{"label":"framgia:develop","ref":"develop","sha":"41bb7a4590dade20f3450c3eb7d2fc828015d535","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":133759854,"name":"Music_13","full_name":"framgia/Music_13","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/Music_13","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/Music_13","forks_url":"https://api.github.com/repos/framgia/Music_13/forks","keys_url":"https://api.github.com/repos/framgia/Music_13/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/Music_13/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/Music_13/teams","hooks_url":"https://api.github.com/repos/framgia/Music_13/hooks","issue_events_url":"https://api.github.com/repos/framgia/Music_13/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/Music_13/events","assignees_url":"https://api.github.com/repos/framgia/Music_13/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/Music_13/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/Music_13/tags","blobs_url":"https://api.github.com/repos/framgia/Music_13/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/Music_13/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/Music_13/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/Music_13/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/Music_13/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/Music_13/languages","stargazers_url":"https://api.github.com/repos/framgia/Music_13/stargazers","contributors_url":"https://api.github.com/repos/framgia/Music_13/contributors","subscribers_url":"https://api.github.com/repos/framgia/Music_13/subscribers","subscription_url":"https://api.github.com/repos/framgia/Music_13/subscription","commits_url":"https://api.github.com/repos/framgia/Music_13/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/Music_13/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/Music_13/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/Music_13/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/Music_13/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/Music_13/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/Music_13/merges","archive_url":"https://api.github.com/repos/framgia/Music_13/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/Music_13/downloads","issues_url":"https://api.github.com/repos/framgia/Music_13/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/Music_13/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/Music_13/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/Music_13/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/Music_13/labels{/name}","releases_url":"https://api.github.com/repos/framgia/Music_13/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/Music_13/deployments","created_at":"2018-05-17T04:43:25Z","updated_at":"2018-05-28T01:20:27Z","pushed_at":"2018-05-28T04:31:04Z","git_url":"git://github.com/framgia/Music_13.git","ssh_url":"git@github.com:framgia/Music_13.git","clone_url":"https://github.com/framgia/Music_13.git","svn_url":"https://github.com/framgia/Music_13","homepage":null,"size":111,"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":3,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":3,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/Music_13/pulls/4"},"html":{"href":"https://github.com/framgia/Music_13/pull/4"},"issue":{"href":"https://api.github.com/repos/framgia/Music_13/issues/4"},"comments":{"href":"https://api.github.com/repos/framgia/Music_13/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/Music_13/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/Music_13/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/Music_13/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/Music_13/statuses/0d62c84d999ba72c35fcc42fc4db1ad56613cac3"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"dangnguyenvu8893"}}