{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/SoundClound_01/pulls/comments/93893311","pull_request_review_id":14425161,"id":93893311,"diff_hunk":"@@ -0,0 +1,73 @@\n+package com.example.framgia.soundclound_01.ui.adapter;\n+\n+import android.content.Context;\n+import android.support.v7.widget.RecyclerView;\n+import android.view.LayoutInflater;\n+import android.view.View;\n+import android.view.ViewGroup;\n+import android.widget.ImageView;\n+import android.widget.TextView;\n+\n+import com.example.framgia.soundclound_01.R;\n+import com.example.framgia.soundclound_01.data.model.Track;\n+import com.squareup.picasso.Picasso;\n+\n+import java.util.List;\n+\n+import butterknife.BindView;\n+import butterknife.ButterKnife;\n+\n+public class AudioOnlineAdapter\n+    extends RecyclerView.Adapter<AudioOnlineAdapter.MyViewHolder> {\n+    private final static int AUDIO_ICON_SIZE = 60;\n+    private List<Track> mListTracks;\n+    private Context mContext;\n+\n+    public AudioOnlineAdapter(List<Track> list, Context context) {\n+        mListTracks = list;\n+        mContext = context;\n+    }\n+\n+    @Override\n+    public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n+        View itemView = LayoutInflater.from(parent.getContext())\n+            .inflate(R.layout.item_recycleview_audio_online, parent, false);\n+        return new MyViewHolder(itemView);\n+    }\n+\n+    @Override\n+    public void onBindViewHolder(MyViewHolder holder, int position) {\n+        holder.bindData(mListTracks.get(position));\n+    }\n+\n+    @Override\n+    public int getItemCount() {\n+        return mListTracks != null ? mListTracks.size() : 0;\n+    }\n+\n+    public class MyViewHolder extends RecyclerView.ViewHolder {\n+        @BindView(R.id.text_audio_title)\n+        TextView mAudioTitle;\n+        @BindView(R.id.text_user_name)\n+        TextView mUserName;\n+        @BindView(R.id.text_playback_count)\n+        TextView mPlaybackCount;\n+        @BindView(R.id.image_audio_icon)\n+        ImageView mImageAudioIcon;\n+\n+        public MyViewHolder(View view) {\n+            super(view);\n+            ButterKnife.bind(this, view);\n+        }\n+\n+        public void bindData(Track track) {\n+            mAudioTitle.setText(track.getTitle());\n+            mUserName.setText(track.getUser().getUserName());","path":"app/src/main/java/com/example/framgia/soundclound_01/ui/adapter/AudioOnlineAdapter.java","position":65,"original_position":65,"commit_id":"529a3aa54c025c35bc638001a7e330e9f642cbb4","original_commit_id":"529a3aa54c025c35bc638001a7e330e9f642cbb4","user":{"login":"DoanVanToan","id":21195010,"avatar_url":"https://avatars.githubusercontent.com/u/21195010?v=3","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":"cần check null của track và track.getUser()","created_at":"2016-12-27T03:26:58Z","updated_at":"2016-12-27T03:28:55Z","html_url":"https://github.com/framgia/SoundClound_01/pull/4#discussion_r93893311","pull_request_url":"https://api.github.com/repos/framgia/SoundClound_01/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/framgia/SoundClound_01/pulls/comments/93893311"},"html":{"href":"https://github.com/framgia/SoundClound_01/pull/4#discussion_r93893311"},"pull_request":{"href":"https://api.github.com/repos/framgia/SoundClound_01/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/SoundClound_01/pulls/4","id":99400367,"html_url":"https://github.com/framgia/SoundClound_01/pull/4","diff_url":"https://github.com/framgia/SoundClound_01/pull/4.diff","patch_url":"https://github.com/framgia/SoundClound_01/pull/4.patch","issue_url":"https://api.github.com/repos/framgia/SoundClound_01/issues/4","number":4,"state":"open","locked":false,"title":"Custum adapter for audio online","user":{"login":"nguyenminhduong","id":23467604,"avatar_url":"https://avatars.githubusercontent.com/u/23467604?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenminhduong","html_url":"https://github.com/nguyenminhduong","followers_url":"https://api.github.com/users/nguyenminhduong/followers","following_url":"https://api.github.com/users/nguyenminhduong/following{/other_user}","gists_url":"https://api.github.com/users/nguyenminhduong/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenminhduong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenminhduong/subscriptions","organizations_url":"https://api.github.com/users/nguyenminhduong/orgs","repos_url":"https://api.github.com/users/nguyenminhduong/repos","events_url":"https://api.github.com/users/nguyenminhduong/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenminhduong/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-27T02:51:49Z","updated_at":"2016-12-27T03:28:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0292b820ba0b75c4060e7238f4648309039b5c38","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/SoundClound_01/pulls/4/commits","review_comments_url":"https://api.github.com/repos/framgia/SoundClound_01/pulls/4/comments","review_comment_url":"https://api.github.com/repos/framgia/SoundClound_01/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/SoundClound_01/issues/4/comments","statuses_url":"https://api.github.com/repos/framgia/SoundClound_01/statuses/529a3aa54c025c35bc638001a7e330e9f642cbb4","head":{"label":"nguyenminhduong:custom_adapter_audio_onl","ref":"custom_adapter_audio_onl","sha":"529a3aa54c025c35bc638001a7e330e9f642cbb4","user":{"login":"nguyenminhduong","id":23467604,"avatar_url":"https://avatars.githubusercontent.com/u/23467604?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenminhduong","html_url":"https://github.com/nguyenminhduong","followers_url":"https://api.github.com/users/nguyenminhduong/followers","following_url":"https://api.github.com/users/nguyenminhduong/following{/other_user}","gists_url":"https://api.github.com/users/nguyenminhduong/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenminhduong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenminhduong/subscriptions","organizations_url":"https://api.github.com/users/nguyenminhduong/orgs","repos_url":"https://api.github.com/users/nguyenminhduong/repos","events_url":"https://api.github.com/users/nguyenminhduong/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenminhduong/received_events","type":"User","site_admin":false},"repo":{"id":77204049,"name":"SoundClound_01","full_name":"nguyenminhduong/SoundClound_01","owner":{"login":"nguyenminhduong","id":23467604,"avatar_url":"https://avatars.githubusercontent.com/u/23467604?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenminhduong","html_url":"https://github.com/nguyenminhduong","followers_url":"https://api.github.com/users/nguyenminhduong/followers","following_url":"https://api.github.com/users/nguyenminhduong/following{/other_user}","gists_url":"https://api.github.com/users/nguyenminhduong/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenminhduong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenminhduong/subscriptions","organizations_url":"https://api.github.com/users/nguyenminhduong/orgs","repos_url":"https://api.github.com/users/nguyenminhduong/repos","events_url":"https://api.github.com/users/nguyenminhduong/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenminhduong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguyenminhduong/SoundClound_01","description":null,"fork":true,"url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01","forks_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/forks","keys_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/teams","hooks_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/hooks","issue_events_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/issues/events{/number}","events_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/events","assignees_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/assignees{/user}","branches_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/branches{/branch}","tags_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/tags","blobs_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/languages","stargazers_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/stargazers","contributors_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/contributors","subscribers_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/subscribers","subscription_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/subscription","commits_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/contents/{+path}","compare_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/merges","archive_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/downloads","issues_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/issues{/number}","pulls_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/labels{/name}","releases_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/releases{/id}","deployments_url":"https://api.github.com/repos/nguyenminhduong/SoundClound_01/deployments","created_at":"2016-12-23T06:38:15Z","updated_at":"2016-12-23T01:19:52Z","pushed_at":"2016-12-27T03:17:09Z","git_url":"git://github.com/nguyenminhduong/SoundClound_01.git","ssh_url":"git@github.com:nguyenminhduong/SoundClound_01.git","clone_url":"https://github.com/nguyenminhduong/SoundClound_01.git","svn_url":"https://github.com/nguyenminhduong/SoundClound_01","homepage":null,"size":90,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"framgia:develop","ref":"develop","sha":"14a197a137d2830904ccc136dfd4ed0e59ad256d","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","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":77187406,"name":"SoundClound_01","full_name":"framgia/SoundClound_01","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","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/SoundClound_01","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/SoundClound_01","forks_url":"https://api.github.com/repos/framgia/SoundClound_01/forks","keys_url":"https://api.github.com/repos/framgia/SoundClound_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/SoundClound_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/SoundClound_01/teams","hooks_url":"https://api.github.com/repos/framgia/SoundClound_01/hooks","issue_events_url":"https://api.github.com/repos/framgia/SoundClound_01/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/SoundClound_01/events","assignees_url":"https://api.github.com/repos/framgia/SoundClound_01/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/SoundClound_01/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/SoundClound_01/tags","blobs_url":"https://api.github.com/repos/framgia/SoundClound_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/SoundClound_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/SoundClound_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/SoundClound_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/SoundClound_01/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/SoundClound_01/languages","stargazers_url":"https://api.github.com/repos/framgia/SoundClound_01/stargazers","contributors_url":"https://api.github.com/repos/framgia/SoundClound_01/contributors","subscribers_url":"https://api.github.com/repos/framgia/SoundClound_01/subscribers","subscription_url":"https://api.github.com/repos/framgia/SoundClound_01/subscription","commits_url":"https://api.github.com/repos/framgia/SoundClound_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/SoundClound_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/SoundClound_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/SoundClound_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/SoundClound_01/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/SoundClound_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/SoundClound_01/merges","archive_url":"https://api.github.com/repos/framgia/SoundClound_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/SoundClound_01/downloads","issues_url":"https://api.github.com/repos/framgia/SoundClound_01/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/SoundClound_01/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/SoundClound_01/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/SoundClound_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/SoundClound_01/labels{/name}","releases_url":"https://api.github.com/repos/framgia/SoundClound_01/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/SoundClound_01/deployments","created_at":"2016-12-23T01:19:52Z","updated_at":"2016-12-26T02:50:28Z","pushed_at":"2016-12-27T03:17:10Z","git_url":"git://github.com/framgia/SoundClound_01.git","ssh_url":"git@github.com:framgia/SoundClound_01.git","clone_url":"https://github.com/framgia/SoundClound_01.git","svn_url":"https://github.com/framgia/SoundClound_01","homepage":null,"size":90,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/SoundClound_01/pulls/4"},"html":{"href":"https://github.com/framgia/SoundClound_01/pull/4"},"issue":{"href":"https://api.github.com/repos/framgia/SoundClound_01/issues/4"},"comments":{"href":"https://api.github.com/repos/framgia/SoundClound_01/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/SoundClound_01/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/SoundClound_01/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/SoundClound_01/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/SoundClound_01/statuses/529a3aa54c025c35bc638001a7e330e9f642cbb4"}}}}
{"actor":{"display_login":"DoanVanToan"}}