{"action":"created","comment":{"url":"https://api.github.com/repos/mitya1337/yahnc/pulls/comments/68414879","id":68414879,"diff_hunk":"@@ -0,0 +1,48 @@\n+package mitya.yahnc;\n+\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.TextView;\n+\n+import java.util.List;\n+\n+/**\n+ * Created by Mitya on 23.06.2016.\n+ */\n+public class Adapter extends RecyclerView.Adapter<Adapter.ViewHolder> {\n+    private List<Story> storyList;\n+\n+    public Adapter(List<Story> storyList) {\n+        this.storyList = storyList;\n+    }\n+    @Override\n+    public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n+        View itemView = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_layout,parent,false);\n+        return new ViewHolder(itemView);\n+    }\n+\n+    @Override\n+    public void onBindViewHolder(ViewHolder holder, int position) {\n+        Story story = storyList.get(position);\n+        holder.title.setText(story.getTitle());\n+        holder.by.setText(story.getBy());\n+        holder.score.setText(story.getScore().toString());\n+    }\n+\n+    @Override\n+    public int getItemCount() {\n+        return storyList.size();\n+    }\n+\n+    public static class ViewHolder extends RecyclerView.ViewHolder {\n+        public TextView title,by,score;","path":"app/src/main/java/mitya/yahnc/Adapter.java","position":40,"original_position":40,"commit_id":"3a4e632754cafae9aaf30520ed669f25e7e5f031","original_commit_id":"3a4e632754cafae9aaf30520ed669f25e7e5f031","user":{"login":"arkadiytehgraet","id":13274719,"avatar_url":"https://avatars.githubusercontent.com/u/13274719?v=3","gravatar_id":"","url":"https://api.github.com/users/arkadiytehgraet","html_url":"https://github.com/arkadiytehgraet","followers_url":"https://api.github.com/users/arkadiytehgraet/followers","following_url":"https://api.github.com/users/arkadiytehgraet/following{/other_user}","gists_url":"https://api.github.com/users/arkadiytehgraet/gists{/gist_id}","starred_url":"https://api.github.com/users/arkadiytehgraet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arkadiytehgraet/subscriptions","organizations_url":"https://api.github.com/users/arkadiytehgraet/orgs","repos_url":"https://api.github.com/users/arkadiytehgraet/repos","events_url":"https://api.github.com/users/arkadiytehgraet/events{/privacy}","received_events_url":"https://api.github.com/users/arkadiytehgraet/received_events","type":"User","site_admin":false},"body":"Каждый элемент вьюхолдера лучше писать на отдельной строчке, явно прописывая его тип.","created_at":"2016-06-24T15:24:59Z","updated_at":"2016-06-24T15:24:59Z","html_url":"https://github.com/mitya1337/yahnc/pull/8#discussion_r68414879","pull_request_url":"https://api.github.com/repos/mitya1337/yahnc/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/mitya1337/yahnc/pulls/comments/68414879"},"html":{"href":"https://github.com/mitya1337/yahnc/pull/8#discussion_r68414879"},"pull_request":{"href":"https://api.github.com/repos/mitya1337/yahnc/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/mitya1337/yahnc/pulls/8","id":75120942,"html_url":"https://github.com/mitya1337/yahnc/pull/8","diff_url":"https://github.com/mitya1337/yahnc/pull/8.diff","patch_url":"https://github.com/mitya1337/yahnc/pull/8.patch","issue_url":"https://api.github.com/repos/mitya1337/yahnc/issues/8","number":8,"state":"open","locked":false,"title":"Added list of news but it has some problems","user":{"login":"mitya1337","id":19818433,"avatar_url":"https://avatars.githubusercontent.com/u/19818433?v=3","gravatar_id":"","url":"https://api.github.com/users/mitya1337","html_url":"https://github.com/mitya1337","followers_url":"https://api.github.com/users/mitya1337/followers","following_url":"https://api.github.com/users/mitya1337/following{/other_user}","gists_url":"https://api.github.com/users/mitya1337/gists{/gist_id}","starred_url":"https://api.github.com/users/mitya1337/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitya1337/subscriptions","organizations_url":"https://api.github.com/users/mitya1337/orgs","repos_url":"https://api.github.com/users/mitya1337/repos","events_url":"https://api.github.com/users/mitya1337/events{/privacy}","received_events_url":"https://api.github.com/users/mitya1337/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-24T14:19:41Z","updated_at":"2016-06-24T15:24:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f41a41b8ebaa51f5b0ae27745f6b761ab2e7d904","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mitya1337/yahnc/pulls/8/commits","review_comments_url":"https://api.github.com/repos/mitya1337/yahnc/pulls/8/comments","review_comment_url":"https://api.github.com/repos/mitya1337/yahnc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mitya1337/yahnc/issues/8/comments","statuses_url":"https://api.github.com/repos/mitya1337/yahnc/statuses/3a4e632754cafae9aaf30520ed669f25e7e5f031","head":{"label":"mitya1337:feature/issue#3/AddListOfNews","ref":"feature/issue#3/AddListOfNews","sha":"3a4e632754cafae9aaf30520ed669f25e7e5f031","user":{"login":"mitya1337","id":19818433,"avatar_url":"https://avatars.githubusercontent.com/u/19818433?v=3","gravatar_id":"","url":"https://api.github.com/users/mitya1337","html_url":"https://github.com/mitya1337","followers_url":"https://api.github.com/users/mitya1337/followers","following_url":"https://api.github.com/users/mitya1337/following{/other_user}","gists_url":"https://api.github.com/users/mitya1337/gists{/gist_id}","starred_url":"https://api.github.com/users/mitya1337/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitya1337/subscriptions","organizations_url":"https://api.github.com/users/mitya1337/orgs","repos_url":"https://api.github.com/users/mitya1337/repos","events_url":"https://api.github.com/users/mitya1337/events{/privacy}","received_events_url":"https://api.github.com/users/mitya1337/received_events","type":"User","site_admin":false},"repo":{"id":60692774,"name":"yahnc","full_name":"mitya1337/yahnc","owner":{"login":"mitya1337","id":19818433,"avatar_url":"https://avatars.githubusercontent.com/u/19818433?v=3","gravatar_id":"","url":"https://api.github.com/users/mitya1337","html_url":"https://github.com/mitya1337","followers_url":"https://api.github.com/users/mitya1337/followers","following_url":"https://api.github.com/users/mitya1337/following{/other_user}","gists_url":"https://api.github.com/users/mitya1337/gists{/gist_id}","starred_url":"https://api.github.com/users/mitya1337/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitya1337/subscriptions","organizations_url":"https://api.github.com/users/mitya1337/orgs","repos_url":"https://api.github.com/users/mitya1337/repos","events_url":"https://api.github.com/users/mitya1337/events{/privacy}","received_events_url":"https://api.github.com/users/mitya1337/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mitya1337/yahnc","description":"Hacker News android client","fork":false,"url":"https://api.github.com/repos/mitya1337/yahnc","forks_url":"https://api.github.com/repos/mitya1337/yahnc/forks","keys_url":"https://api.github.com/repos/mitya1337/yahnc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mitya1337/yahnc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mitya1337/yahnc/teams","hooks_url":"https://api.github.com/repos/mitya1337/yahnc/hooks","issue_events_url":"https://api.github.com/repos/mitya1337/yahnc/issues/events{/number}","events_url":"https://api.github.com/repos/mitya1337/yahnc/events","assignees_url":"https://api.github.com/repos/mitya1337/yahnc/assignees{/user}","branches_url":"https://api.github.com/repos/mitya1337/yahnc/branches{/branch}","tags_url":"https://api.github.com/repos/mitya1337/yahnc/tags","blobs_url":"https://api.github.com/repos/mitya1337/yahnc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mitya1337/yahnc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mitya1337/yahnc/git/refs{/sha}","trees_url":"https://api.github.com/repos/mitya1337/yahnc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mitya1337/yahnc/statuses/{sha}","languages_url":"https://api.github.com/repos/mitya1337/yahnc/languages","stargazers_url":"https://api.github.com/repos/mitya1337/yahnc/stargazers","contributors_url":"https://api.github.com/repos/mitya1337/yahnc/contributors","subscribers_url":"https://api.github.com/repos/mitya1337/yahnc/subscribers","subscription_url":"https://api.github.com/repos/mitya1337/yahnc/subscription","commits_url":"https://api.github.com/repos/mitya1337/yahnc/commits{/sha}","git_commits_url":"https://api.github.com/repos/mitya1337/yahnc/git/commits{/sha}","comments_url":"https://api.github.com/repos/mitya1337/yahnc/comments{/number}","issue_comment_url":"https://api.github.com/repos/mitya1337/yahnc/issues/comments{/number}","contents_url":"https://api.github.com/repos/mitya1337/yahnc/contents/{+path}","compare_url":"https://api.github.com/repos/mitya1337/yahnc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mitya1337/yahnc/merges","archive_url":"https://api.github.com/repos/mitya1337/yahnc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mitya1337/yahnc/downloads","issues_url":"https://api.github.com/repos/mitya1337/yahnc/issues{/number}","pulls_url":"https://api.github.com/repos/mitya1337/yahnc/pulls{/number}","milestones_url":"https://api.github.com/repos/mitya1337/yahnc/milestones{/number}","notifications_url":"https://api.github.com/repos/mitya1337/yahnc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mitya1337/yahnc/labels{/name}","releases_url":"https://api.github.com/repos/mitya1337/yahnc/releases{/id}","deployments_url":"https://api.github.com/repos/mitya1337/yahnc/deployments","created_at":"2016-06-08T11:26:23Z","updated_at":"2016-06-24T06:47:45Z","pushed_at":"2016-06-24T14:19:43Z","git_url":"git://github.com/mitya1337/yahnc.git","ssh_url":"git@github.com:mitya1337/yahnc.git","clone_url":"https://github.com/mitya1337/yahnc.git","svn_url":"https://github.com/mitya1337/yahnc","homepage":null,"size":99,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"mitya1337:master","ref":"master","sha":"ce76b8942369f75a310ce4148ad2c306e28a3cc6","user":{"login":"mitya1337","id":19818433,"avatar_url":"https://avatars.githubusercontent.com/u/19818433?v=3","gravatar_id":"","url":"https://api.github.com/users/mitya1337","html_url":"https://github.com/mitya1337","followers_url":"https://api.github.com/users/mitya1337/followers","following_url":"https://api.github.com/users/mitya1337/following{/other_user}","gists_url":"https://api.github.com/users/mitya1337/gists{/gist_id}","starred_url":"https://api.github.com/users/mitya1337/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitya1337/subscriptions","organizations_url":"https://api.github.com/users/mitya1337/orgs","repos_url":"https://api.github.com/users/mitya1337/repos","events_url":"https://api.github.com/users/mitya1337/events{/privacy}","received_events_url":"https://api.github.com/users/mitya1337/received_events","type":"User","site_admin":false},"repo":{"id":60692774,"name":"yahnc","full_name":"mitya1337/yahnc","owner":{"login":"mitya1337","id":19818433,"avatar_url":"https://avatars.githubusercontent.com/u/19818433?v=3","gravatar_id":"","url":"https://api.github.com/users/mitya1337","html_url":"https://github.com/mitya1337","followers_url":"https://api.github.com/users/mitya1337/followers","following_url":"https://api.github.com/users/mitya1337/following{/other_user}","gists_url":"https://api.github.com/users/mitya1337/gists{/gist_id}","starred_url":"https://api.github.com/users/mitya1337/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitya1337/subscriptions","organizations_url":"https://api.github.com/users/mitya1337/orgs","repos_url":"https://api.github.com/users/mitya1337/repos","events_url":"https://api.github.com/users/mitya1337/events{/privacy}","received_events_url":"https://api.github.com/users/mitya1337/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mitya1337/yahnc","description":"Hacker News android client","fork":false,"url":"https://api.github.com/repos/mitya1337/yahnc","forks_url":"https://api.github.com/repos/mitya1337/yahnc/forks","keys_url":"https://api.github.com/repos/mitya1337/yahnc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mitya1337/yahnc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mitya1337/yahnc/teams","hooks_url":"https://api.github.com/repos/mitya1337/yahnc/hooks","issue_events_url":"https://api.github.com/repos/mitya1337/yahnc/issues/events{/number}","events_url":"https://api.github.com/repos/mitya1337/yahnc/events","assignees_url":"https://api.github.com/repos/mitya1337/yahnc/assignees{/user}","branches_url":"https://api.github.com/repos/mitya1337/yahnc/branches{/branch}","tags_url":"https://api.github.com/repos/mitya1337/yahnc/tags","blobs_url":"https://api.github.com/repos/mitya1337/yahnc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mitya1337/yahnc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mitya1337/yahnc/git/refs{/sha}","trees_url":"https://api.github.com/repos/mitya1337/yahnc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mitya1337/yahnc/statuses/{sha}","languages_url":"https://api.github.com/repos/mitya1337/yahnc/languages","stargazers_url":"https://api.github.com/repos/mitya1337/yahnc/stargazers","contributors_url":"https://api.github.com/repos/mitya1337/yahnc/contributors","subscribers_url":"https://api.github.com/repos/mitya1337/yahnc/subscribers","subscription_url":"https://api.github.com/repos/mitya1337/yahnc/subscription","commits_url":"https://api.github.com/repos/mitya1337/yahnc/commits{/sha}","git_commits_url":"https://api.github.com/repos/mitya1337/yahnc/git/commits{/sha}","comments_url":"https://api.github.com/repos/mitya1337/yahnc/comments{/number}","issue_comment_url":"https://api.github.com/repos/mitya1337/yahnc/issues/comments{/number}","contents_url":"https://api.github.com/repos/mitya1337/yahnc/contents/{+path}","compare_url":"https://api.github.com/repos/mitya1337/yahnc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mitya1337/yahnc/merges","archive_url":"https://api.github.com/repos/mitya1337/yahnc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mitya1337/yahnc/downloads","issues_url":"https://api.github.com/repos/mitya1337/yahnc/issues{/number}","pulls_url":"https://api.github.com/repos/mitya1337/yahnc/pulls{/number}","milestones_url":"https://api.github.com/repos/mitya1337/yahnc/milestones{/number}","notifications_url":"https://api.github.com/repos/mitya1337/yahnc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mitya1337/yahnc/labels{/name}","releases_url":"https://api.github.com/repos/mitya1337/yahnc/releases{/id}","deployments_url":"https://api.github.com/repos/mitya1337/yahnc/deployments","created_at":"2016-06-08T11:26:23Z","updated_at":"2016-06-24T06:47:45Z","pushed_at":"2016-06-24T14:19:43Z","git_url":"git://github.com/mitya1337/yahnc.git","ssh_url":"git@github.com:mitya1337/yahnc.git","clone_url":"https://github.com/mitya1337/yahnc.git","svn_url":"https://github.com/mitya1337/yahnc","homepage":null,"size":99,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mitya1337/yahnc/pulls/8"},"html":{"href":"https://github.com/mitya1337/yahnc/pull/8"},"issue":{"href":"https://api.github.com/repos/mitya1337/yahnc/issues/8"},"comments":{"href":"https://api.github.com/repos/mitya1337/yahnc/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/mitya1337/yahnc/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/mitya1337/yahnc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mitya1337/yahnc/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/mitya1337/yahnc/statuses/3a4e632754cafae9aaf30520ed669f25e7e5f031"}}}}
{"actor":{"display_login":"arkadiytehgraet"}}