{"action":"created","comment":{"url":"https://api.github.com/repos/saraelmoghazy/android-architecture/pulls/comments/123212084","pull_request_review_id":45109265,"id":123212084,"diff_hunk":"@@ -0,0 +1,93 @@\n+package com.example.android.architecture.blueprints.todoapp.poc;\n+\n+import android.content.Intent;\n+import android.os.Bundle;\n+import android.support.annotation.NonNull;\n+import android.support.annotation.Nullable;\n+import android.support.design.widget.NavigationView;\n+import android.support.v4.app.NavUtils;\n+import android.support.v4.view.GravityCompat;\n+import android.support.v4.widget.DrawerLayout;\n+import android.support.v7.app.ActionBar;\n+import android.support.v7.app.AppCompatActivity;\n+import android.support.v7.widget.Toolbar;\n+import android.view.MenuItem;\n+\n+import com.example.android.architecture.blueprints.todoapp.Injection;\n+import com.example.android.architecture.blueprints.todoapp.R;\n+import com.example.android.architecture.blueprints.todoapp.statistics.StatisticsActivity;\n+import com.example.android.architecture.blueprints.todoapp.util.ActivityUtils;\n+\n+/**\n+ * Created by user on 6/13/2017.\n+ */\n+\n+public class PocActivity extends AppCompatActivity {\n+\n+    PocPresenter mPocPresenter;\n+    DrawerLayout mDrawerLayout;\n+    NavigationView mNavigationView;\n+\n+\n+    @Override\n+    protected void onCreate(@Nullable Bundle savedInstanceState) {\n+        super.onCreate(savedInstanceState);\n+        setContentView(R.layout.pocs_act);\n+        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n+        setSupportActionBar(toolbar);\n+\n+        ActionBar ab = getSupportActionBar();\n+\n+        // customize up icon to be drawable\n+        ab.setDisplayHomeAsUpEnabled(true);\n+        ab.setHomeAsUpIndicator(R.drawable.ic_menu);\n+\n+        mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);\n+        mNavigationView = (NavigationView) findViewById(R.id.nav_view);\n+        if (mNavigationView != null)\n+            setupDrawerContent(mDrawerLayout);\n+\n+        PocFragment pocFragment = (PocFragment) getSupportFragmentManager().findFragmentById(R.id.contentFrame);\n+\n+        if (pocFragment == null) {\n+            pocFragment = PocFragment.newInstance();\n+            ActivityUtils.addFragmentToActivity(getSupportFragmentManager(), pocFragment, R.id.contentFrame);\n+        }\n+        mPocPresenter = new PocPresenter(Injection.providePocRepo(), pocFragment);\n+    }\n+\n+    @Override\n+    public boolean onOptionsItemSelected(MenuItem item) {","path":"todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/poc/PocActivity.java","position":60,"original_position":60,"commit_id":"942d52266cddcc7add5b7095890d2928f0959ed6","original_commit_id":"942d52266cddcc7add5b7095890d2928f0959ed6","user":{"login":"bsamehalt","id":24474052,"avatar_url":"https://avatars0.githubusercontent.com/u/24474052?v=3","gravatar_id":"","url":"https://api.github.com/users/bsamehalt","html_url":"https://github.com/bsamehalt","followers_url":"https://api.github.com/users/bsamehalt/followers","following_url":"https://api.github.com/users/bsamehalt/following{/other_user}","gists_url":"https://api.github.com/users/bsamehalt/gists{/gist_id}","starred_url":"https://api.github.com/users/bsamehalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsamehalt/subscriptions","organizations_url":"https://api.github.com/users/bsamehalt/orgs","repos_url":"https://api.github.com/users/bsamehalt/repos","events_url":"https://api.github.com/users/bsamehalt/events{/privacy}","received_events_url":"https://api.github.com/users/bsamehalt/received_events","type":"User","site_admin":false},"body":"In the future, this should be implemented in our BaseActivity instead in order to avoid duplication.","created_at":"2017-06-21T10:39:08Z","updated_at":"2017-06-21T10:39:16Z","html_url":"https://github.com/saraelmoghazy/android-architecture/pull/1#discussion_r123212084","pull_request_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/saraelmoghazy/android-architecture/pulls/comments/123212084"},"html":{"href":"https://github.com/saraelmoghazy/android-architecture/pull/1#discussion_r123212084"},"pull_request":{"href":"https://api.github.com/repos/saraelmoghazy/android-architecture/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/saraelmoghazy/android-architecture/pulls/1","id":126504328,"html_url":"https://github.com/saraelmoghazy/android-architecture/pull/1","diff_url":"https://github.com/saraelmoghazy/android-architecture/pull/1.diff","patch_url":"https://github.com/saraelmoghazy/android-architecture/pull/1.patch","issue_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/issues/1","number":1,"state":"open","locked":false,"title":"add Poc Module which show list of online ToDo's.","user":{"login":"saraelmoghazy","id":14091445,"avatar_url":"https://avatars2.githubusercontent.com/u/14091445?v=3","gravatar_id":"","url":"https://api.github.com/users/saraelmoghazy","html_url":"https://github.com/saraelmoghazy","followers_url":"https://api.github.com/users/saraelmoghazy/followers","following_url":"https://api.github.com/users/saraelmoghazy/following{/other_user}","gists_url":"https://api.github.com/users/saraelmoghazy/gists{/gist_id}","starred_url":"https://api.github.com/users/saraelmoghazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saraelmoghazy/subscriptions","organizations_url":"https://api.github.com/users/saraelmoghazy/orgs","repos_url":"https://api.github.com/users/saraelmoghazy/repos","events_url":"https://api.github.com/users/saraelmoghazy/events{/privacy}","received_events_url":"https://api.github.com/users/saraelmoghazy/received_events","type":"User","site_admin":false},"body":"MVP pattern\r\nUnit test","created_at":"2017-06-20T11:01:22Z","updated_at":"2017-06-21T10:39:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"68575ea3340c2495447d4198d0d23d13d3dfdc0a","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/pulls/1/commits","review_comments_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/pulls/1/comments","review_comment_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/pulls/comments{/number}","comments_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/issues/1/comments","statuses_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/statuses/942d52266cddcc7add5b7095890d2928f0959ed6","head":{"label":"saraelmoghazy:feature/poc","ref":"feature/poc","sha":"942d52266cddcc7add5b7095890d2928f0959ed6","user":{"login":"saraelmoghazy","id":14091445,"avatar_url":"https://avatars2.githubusercontent.com/u/14091445?v=3","gravatar_id":"","url":"https://api.github.com/users/saraelmoghazy","html_url":"https://github.com/saraelmoghazy","followers_url":"https://api.github.com/users/saraelmoghazy/followers","following_url":"https://api.github.com/users/saraelmoghazy/following{/other_user}","gists_url":"https://api.github.com/users/saraelmoghazy/gists{/gist_id}","starred_url":"https://api.github.com/users/saraelmoghazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saraelmoghazy/subscriptions","organizations_url":"https://api.github.com/users/saraelmoghazy/orgs","repos_url":"https://api.github.com/users/saraelmoghazy/repos","events_url":"https://api.github.com/users/saraelmoghazy/events{/privacy}","received_events_url":"https://api.github.com/users/saraelmoghazy/received_events","type":"User","site_admin":false},"repo":{"id":94223144,"name":"android-architecture","full_name":"saraelmoghazy/android-architecture","owner":{"login":"saraelmoghazy","id":14091445,"avatar_url":"https://avatars2.githubusercontent.com/u/14091445?v=3","gravatar_id":"","url":"https://api.github.com/users/saraelmoghazy","html_url":"https://github.com/saraelmoghazy","followers_url":"https://api.github.com/users/saraelmoghazy/followers","following_url":"https://api.github.com/users/saraelmoghazy/following{/other_user}","gists_url":"https://api.github.com/users/saraelmoghazy/gists{/gist_id}","starred_url":"https://api.github.com/users/saraelmoghazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saraelmoghazy/subscriptions","organizations_url":"https://api.github.com/users/saraelmoghazy/orgs","repos_url":"https://api.github.com/users/saraelmoghazy/repos","events_url":"https://api.github.com/users/saraelmoghazy/events{/privacy}","received_events_url":"https://api.github.com/users/saraelmoghazy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/saraelmoghazy/android-architecture","description":"A collection of samples to discuss and showcase different architectural tools and patterns for Android apps.","fork":true,"url":"https://api.github.com/repos/saraelmoghazy/android-architecture","forks_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/forks","keys_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/keys{/key_id}","collaborators_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/teams","hooks_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/hooks","issue_events_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/issues/events{/number}","events_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/events","assignees_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/assignees{/user}","branches_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/branches{/branch}","tags_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/tags","blobs_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/git/refs{/sha}","trees_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/git/trees{/sha}","statuses_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/statuses/{sha}","languages_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/languages","stargazers_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/stargazers","contributors_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/contributors","subscribers_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/subscribers","subscription_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/subscription","commits_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/commits{/sha}","git_commits_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/git/commits{/sha}","comments_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/comments{/number}","issue_comment_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/issues/comments{/number}","contents_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/contents/{+path}","compare_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/compare/{base}...{head}","merges_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/merges","archive_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/downloads","issues_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/issues{/number}","pulls_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/pulls{/number}","milestones_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/milestones{/number}","notifications_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/labels{/name}","releases_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/releases{/id}","deployments_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/deployments","created_at":"2017-06-13T14:39:15Z","updated_at":"2017-06-13T14:10:02Z","pushed_at":"2017-06-20T12:45:49Z","git_url":"git://github.com/saraelmoghazy/android-architecture.git","ssh_url":"git@github.com:saraelmoghazy/android-architecture.git","clone_url":"https://github.com/saraelmoghazy/android-architecture.git","svn_url":"https://github.com/saraelmoghazy/android-architecture","homepage":"","size":7658,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"saraelmoghazy:todo-mvp","ref":"todo-mvp","sha":"fbfe76df7dd26217db27b8c44e751627aa420d49","user":{"login":"saraelmoghazy","id":14091445,"avatar_url":"https://avatars2.githubusercontent.com/u/14091445?v=3","gravatar_id":"","url":"https://api.github.com/users/saraelmoghazy","html_url":"https://github.com/saraelmoghazy","followers_url":"https://api.github.com/users/saraelmoghazy/followers","following_url":"https://api.github.com/users/saraelmoghazy/following{/other_user}","gists_url":"https://api.github.com/users/saraelmoghazy/gists{/gist_id}","starred_url":"https://api.github.com/users/saraelmoghazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saraelmoghazy/subscriptions","organizations_url":"https://api.github.com/users/saraelmoghazy/orgs","repos_url":"https://api.github.com/users/saraelmoghazy/repos","events_url":"https://api.github.com/users/saraelmoghazy/events{/privacy}","received_events_url":"https://api.github.com/users/saraelmoghazy/received_events","type":"User","site_admin":false},"repo":{"id":94223144,"name":"android-architecture","full_name":"saraelmoghazy/android-architecture","owner":{"login":"saraelmoghazy","id":14091445,"avatar_url":"https://avatars2.githubusercontent.com/u/14091445?v=3","gravatar_id":"","url":"https://api.github.com/users/saraelmoghazy","html_url":"https://github.com/saraelmoghazy","followers_url":"https://api.github.com/users/saraelmoghazy/followers","following_url":"https://api.github.com/users/saraelmoghazy/following{/other_user}","gists_url":"https://api.github.com/users/saraelmoghazy/gists{/gist_id}","starred_url":"https://api.github.com/users/saraelmoghazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saraelmoghazy/subscriptions","organizations_url":"https://api.github.com/users/saraelmoghazy/orgs","repos_url":"https://api.github.com/users/saraelmoghazy/repos","events_url":"https://api.github.com/users/saraelmoghazy/events{/privacy}","received_events_url":"https://api.github.com/users/saraelmoghazy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/saraelmoghazy/android-architecture","description":"A collection of samples to discuss and showcase different architectural tools and patterns for Android apps.","fork":true,"url":"https://api.github.com/repos/saraelmoghazy/android-architecture","forks_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/forks","keys_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/keys{/key_id}","collaborators_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/teams","hooks_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/hooks","issue_events_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/issues/events{/number}","events_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/events","assignees_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/assignees{/user}","branches_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/branches{/branch}","tags_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/tags","blobs_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/git/refs{/sha}","trees_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/git/trees{/sha}","statuses_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/statuses/{sha}","languages_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/languages","stargazers_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/stargazers","contributors_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/contributors","subscribers_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/subscribers","subscription_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/subscription","commits_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/commits{/sha}","git_commits_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/git/commits{/sha}","comments_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/comments{/number}","issue_comment_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/issues/comments{/number}","contents_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/contents/{+path}","compare_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/compare/{base}...{head}","merges_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/merges","archive_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/downloads","issues_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/issues{/number}","pulls_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/pulls{/number}","milestones_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/milestones{/number}","notifications_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/labels{/name}","releases_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/releases{/id}","deployments_url":"https://api.github.com/repos/saraelmoghazy/android-architecture/deployments","created_at":"2017-06-13T14:39:15Z","updated_at":"2017-06-13T14:10:02Z","pushed_at":"2017-06-20T12:45:49Z","git_url":"git://github.com/saraelmoghazy/android-architecture.git","ssh_url":"git@github.com:saraelmoghazy/android-architecture.git","clone_url":"https://github.com/saraelmoghazy/android-architecture.git","svn_url":"https://github.com/saraelmoghazy/android-architecture","homepage":"","size":7658,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/saraelmoghazy/android-architecture/pulls/1"},"html":{"href":"https://github.com/saraelmoghazy/android-architecture/pull/1"},"issue":{"href":"https://api.github.com/repos/saraelmoghazy/android-architecture/issues/1"},"comments":{"href":"https://api.github.com/repos/saraelmoghazy/android-architecture/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/saraelmoghazy/android-architecture/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/saraelmoghazy/android-architecture/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/saraelmoghazy/android-architecture/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/saraelmoghazy/android-architecture/statuses/942d52266cddcc7add5b7095890d2928f0959ed6"}}}}
{"actor":{"display_login":"bsamehalt"}}