{"action":"created","comment":{"url":"https://api.github.com/repos/TCA-Team/TumCampusApp/pulls/comments/128182618","pull_request_review_id":50835776,"id":128182618,"diff_hunk":"@@ -0,0 +1,100 @@\n+package de.tum.in.tumcampusapp.activities;\n+\n+import android.content.Context;\n+import android.databinding.DataBindingUtil;\n+import android.os.AsyncTask;\n+import android.support.v7.app.AppCompatActivity;\n+import android.os.Bundle;\n+import android.support.v7.widget.Toolbar;\n+import android.view.Menu;\n+import android.view.MenuInflater;\n+import android.view.MenuItem;\n+\n+import java.io.IOException;\n+\n+import de.tum.in.tumcampusapp.R;\n+import de.tum.in.tumcampusapp.api.TUMCabeClient;\n+import de.tum.in.tumcampusapp.auxiliary.Const;\n+import de.tum.in.tumcampusapp.auxiliary.Utils;\n+import de.tum.in.tumcampusapp.databinding.ActivityCardsDetailBinding;\n+import de.tum.in.tumcampusapp.exceptions.NoPrivateKey;\n+import de.tum.in.tumcampusapp.models.cards.StudyCard;\n+import de.tum.in.tumcampusapp.models.tumcabe.ChatMember;\n+import de.tum.in.tumcampusapp.models.tumcabe.ChatVerification;\n+\n+public class CardsDetailActivity extends AppCompatActivity {\n+    StudyCard card;\n+    ActivityCardsDetailBinding binding;\n+\n+    @Override\n+    protected void onCreate(Bundle savedInstanceState) {\n+        super.onCreate(savedInstanceState);\n+\n+        this.card = new StudyCard();\n+\n+        binding = DataBindingUtil.setContentView(this, R.layout.activity_cards_detail);\n+        binding.setCard(card);\n+\n+        // TODO handle different states (add/view/edit)\n+        setTitle(\"add Card\");\n+\n+        Toolbar toolbar = (Toolbar) findViewById(R.id.main_toolbar);\n+        setSupportActionBar(toolbar);\n+        if (getSupportActionBar() != null) {\n+            getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n+            getSupportActionBar().setHomeButtonEnabled(true);\n+            getSupportActionBar().setHomeAsUpIndicator(R.drawable.ic_clear);\n+        }\n+    }\n+\n+    @Override\n+    public boolean onCreateOptionsMenu(Menu menu) {\n+        MenuInflater inflater = getMenuInflater();\n+        inflater.inflate(R.menu.menu_activity_cards_detail, menu);\n+        return true;\n+    }\n+\n+    @Override\n+    public boolean onOptionsItemSelected(MenuItem item) {\n+        switch (item.getItemId()) {\n+            case android.R.id.home:\n+                finish();\n+                return true;\n+            case R.id.save_card:\n+                if (save()) {\n+                    finish();\n+                }\n+                return true;\n+            default:\n+                return super.onOptionsItemSelected(item);\n+        }\n+    }\n+\n+    private boolean save() {\n+        if (card.is_valid()) {","path":"app/src/main/java/de/tum/in/tumcampusapp/activities/CardsDetailActivity.java","position":74,"original_position":74,"commit_id":"7dbb637283ab545c36fee624cca5157248cf1d37","original_commit_id":"7dbb637283ab545c36fee624cca5157248cf1d37","user":{"login":"sebmarste","id":7165020,"avatar_url":"https://avatars3.githubusercontent.com/u/7165020?v=4","gravatar_id":"","url":"https://api.github.com/users/sebmarste","html_url":"https://github.com/sebmarste","followers_url":"https://api.github.com/users/sebmarste/followers","following_url":"https://api.github.com/users/sebmarste/following{/other_user}","gists_url":"https://api.github.com/users/sebmarste/gists{/gist_id}","starred_url":"https://api.github.com/users/sebmarste/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebmarste/subscriptions","organizations_url":"https://api.github.com/users/sebmarste/orgs","repos_url":"https://api.github.com/users/sebmarste/repos","events_url":"https://api.github.com/users/sebmarste/events{/privacy}","received_events_url":"https://api.github.com/users/sebmarste/received_events","type":"User","site_admin":false},"body":"done","created_at":"2017-07-19T08:24:03Z","updated_at":"2017-07-19T08:24:03Z","html_url":"https://github.com/TCA-Team/TumCampusApp/pull/495#discussion_r128182618","pull_request_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/pulls/495","_links":{"self":{"href":"https://api.github.com/repos/TCA-Team/TumCampusApp/pulls/comments/128182618"},"html":{"href":"https://github.com/TCA-Team/TumCampusApp/pull/495#discussion_r128182618"},"pull_request":{"href":"https://api.github.com/repos/TCA-Team/TumCampusApp/pulls/495"}}},"pull_request":{"url":"https://api.github.com/repos/TCA-Team/TumCampusApp/pulls/495","id":131189781,"html_url":"https://github.com/TCA-Team/TumCampusApp/pull/495","diff_url":"https://github.com/TCA-Team/TumCampusApp/pull/495.diff","patch_url":"https://github.com/TCA-Team/TumCampusApp/pull/495.patch","issue_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/issues/495","number":495,"state":"open","locked":false,"title":"Study Cards","user":{"login":"sebmarste","id":7165020,"avatar_url":"https://avatars3.githubusercontent.com/u/7165020?v=4","gravatar_id":"","url":"https://api.github.com/users/sebmarste","html_url":"https://github.com/sebmarste","followers_url":"https://api.github.com/users/sebmarste/followers","following_url":"https://api.github.com/users/sebmarste/following{/other_user}","gists_url":"https://api.github.com/users/sebmarste/gists{/gist_id}","starred_url":"https://api.github.com/users/sebmarste/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebmarste/subscriptions","organizations_url":"https://api.github.com/users/sebmarste/orgs","repos_url":"https://api.github.com/users/sebmarste/repos","events_url":"https://api.github.com/users/sebmarste/events{/privacy}","received_events_url":"https://api.github.com/users/sebmarste/received_events","type":"User","site_admin":false},"body":"first implementation of the study card feature (demo)\r\n## Issue 457\r\n\r\n\r\n","created_at":"2017-07-18T21:20:04Z","updated_at":"2017-07-19T08:24:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d5ca4f62c53257dc2ec5149bbe5119f1768a98d6","assignee":{"login":"sebmarste","id":7165020,"avatar_url":"https://avatars3.githubusercontent.com/u/7165020?v=4","gravatar_id":"","url":"https://api.github.com/users/sebmarste","html_url":"https://github.com/sebmarste","followers_url":"https://api.github.com/users/sebmarste/followers","following_url":"https://api.github.com/users/sebmarste/following{/other_user}","gists_url":"https://api.github.com/users/sebmarste/gists{/gist_id}","starred_url":"https://api.github.com/users/sebmarste/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebmarste/subscriptions","organizations_url":"https://api.github.com/users/sebmarste/orgs","repos_url":"https://api.github.com/users/sebmarste/repos","events_url":"https://api.github.com/users/sebmarste/events{/privacy}","received_events_url":"https://api.github.com/users/sebmarste/received_events","type":"User","site_admin":false},"assignees":[{"login":"sebmarste","id":7165020,"avatar_url":"https://avatars3.githubusercontent.com/u/7165020?v=4","gravatar_id":"","url":"https://api.github.com/users/sebmarste","html_url":"https://github.com/sebmarste","followers_url":"https://api.github.com/users/sebmarste/followers","following_url":"https://api.github.com/users/sebmarste/following{/other_user}","gists_url":"https://api.github.com/users/sebmarste/gists{/gist_id}","starred_url":"https://api.github.com/users/sebmarste/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebmarste/subscriptions","organizations_url":"https://api.github.com/users/sebmarste/orgs","repos_url":"https://api.github.com/users/sebmarste/repos","events_url":"https://api.github.com/users/sebmarste/events{/privacy}","received_events_url":"https://api.github.com/users/sebmarste/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/pulls/495/commits","review_comments_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/pulls/495/comments","review_comment_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/issues/495/comments","statuses_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/statuses/7dbb637283ab545c36fee624cca5157248cf1d37","head":{"label":"TCA-Team:sebmarste/457-study-cards","ref":"sebmarste/457-study-cards","sha":"7dbb637283ab545c36fee624cca5157248cf1d37","user":{"login":"TCA-Team","id":4400381,"avatar_url":"https://avatars3.githubusercontent.com/u/4400381?v=4","gravatar_id":"","url":"https://api.github.com/users/TCA-Team","html_url":"https://github.com/TCA-Team","followers_url":"https://api.github.com/users/TCA-Team/followers","following_url":"https://api.github.com/users/TCA-Team/following{/other_user}","gists_url":"https://api.github.com/users/TCA-Team/gists{/gist_id}","starred_url":"https://api.github.com/users/TCA-Team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TCA-Team/subscriptions","organizations_url":"https://api.github.com/users/TCA-Team/orgs","repos_url":"https://api.github.com/users/TCA-Team/repos","events_url":"https://api.github.com/users/TCA-Team/events{/privacy}","received_events_url":"https://api.github.com/users/TCA-Team/received_events","type":"Organization","site_admin":false},"repo":{"id":9992050,"name":"TumCampusApp","full_name":"TCA-Team/TumCampusApp","owner":{"login":"TCA-Team","id":4400381,"avatar_url":"https://avatars3.githubusercontent.com/u/4400381?v=4","gravatar_id":"","url":"https://api.github.com/users/TCA-Team","html_url":"https://github.com/TCA-Team","followers_url":"https://api.github.com/users/TCA-Team/followers","following_url":"https://api.github.com/users/TCA-Team/following{/other_user}","gists_url":"https://api.github.com/users/TCA-Team/gists{/gist_id}","starred_url":"https://api.github.com/users/TCA-Team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TCA-Team/subscriptions","organizations_url":"https://api.github.com/users/TCA-Team/orgs","repos_url":"https://api.github.com/users/TCA-Team/repos","events_url":"https://api.github.com/users/TCA-Team/events{/privacy}","received_events_url":"https://api.github.com/users/TCA-Team/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TCA-Team/TumCampusApp","description":"Development of the TUM Campus App for Android devices - for and from students at Technical University of Munich.","fork":false,"url":"https://api.github.com/repos/TCA-Team/TumCampusApp","forks_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/forks","keys_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/teams","hooks_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/hooks","issue_events_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/issues/events{/number}","events_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/events","assignees_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/assignees{/user}","branches_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/branches{/branch}","tags_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/tags","blobs_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/git/refs{/sha}","trees_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/statuses/{sha}","languages_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/languages","stargazers_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/stargazers","contributors_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/contributors","subscribers_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/subscribers","subscription_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/subscription","commits_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/commits{/sha}","git_commits_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/git/commits{/sha}","comments_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/comments{/number}","issue_comment_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/issues/comments{/number}","contents_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/contents/{+path}","compare_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/merges","archive_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/downloads","issues_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/issues{/number}","pulls_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/pulls{/number}","milestones_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/milestones{/number}","notifications_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/labels{/name}","releases_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/releases{/id}","deployments_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/deployments","created_at":"2013-05-10T23:10:12Z","updated_at":"2017-06-20T16:12:23Z","pushed_at":"2017-07-18T22:51:57Z","git_url":"git://github.com/TCA-Team/TumCampusApp.git","ssh_url":"git@github.com:TCA-Team/TumCampusApp.git","clone_url":"https://github.com/TCA-Team/TumCampusApp.git","svn_url":"https://github.com/TCA-Team/TumCampusApp","homepage":"https://tumcabe.in.tum.de","size":124977,"stargazers_count":73,"watchers_count":73,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":67,"forks":42,"open_issues":67,"watchers":73,"default_branch":"master"}},"base":{"label":"TCA-Team:master","ref":"master","sha":"919c1c15ef6314de26c13391f35e73449c116fed","user":{"login":"TCA-Team","id":4400381,"avatar_url":"https://avatars3.githubusercontent.com/u/4400381?v=4","gravatar_id":"","url":"https://api.github.com/users/TCA-Team","html_url":"https://github.com/TCA-Team","followers_url":"https://api.github.com/users/TCA-Team/followers","following_url":"https://api.github.com/users/TCA-Team/following{/other_user}","gists_url":"https://api.github.com/users/TCA-Team/gists{/gist_id}","starred_url":"https://api.github.com/users/TCA-Team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TCA-Team/subscriptions","organizations_url":"https://api.github.com/users/TCA-Team/orgs","repos_url":"https://api.github.com/users/TCA-Team/repos","events_url":"https://api.github.com/users/TCA-Team/events{/privacy}","received_events_url":"https://api.github.com/users/TCA-Team/received_events","type":"Organization","site_admin":false},"repo":{"id":9992050,"name":"TumCampusApp","full_name":"TCA-Team/TumCampusApp","owner":{"login":"TCA-Team","id":4400381,"avatar_url":"https://avatars3.githubusercontent.com/u/4400381?v=4","gravatar_id":"","url":"https://api.github.com/users/TCA-Team","html_url":"https://github.com/TCA-Team","followers_url":"https://api.github.com/users/TCA-Team/followers","following_url":"https://api.github.com/users/TCA-Team/following{/other_user}","gists_url":"https://api.github.com/users/TCA-Team/gists{/gist_id}","starred_url":"https://api.github.com/users/TCA-Team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TCA-Team/subscriptions","organizations_url":"https://api.github.com/users/TCA-Team/orgs","repos_url":"https://api.github.com/users/TCA-Team/repos","events_url":"https://api.github.com/users/TCA-Team/events{/privacy}","received_events_url":"https://api.github.com/users/TCA-Team/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TCA-Team/TumCampusApp","description":"Development of the TUM Campus App for Android devices - for and from students at Technical University of Munich.","fork":false,"url":"https://api.github.com/repos/TCA-Team/TumCampusApp","forks_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/forks","keys_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/teams","hooks_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/hooks","issue_events_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/issues/events{/number}","events_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/events","assignees_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/assignees{/user}","branches_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/branches{/branch}","tags_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/tags","blobs_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/git/refs{/sha}","trees_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/statuses/{sha}","languages_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/languages","stargazers_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/stargazers","contributors_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/contributors","subscribers_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/subscribers","subscription_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/subscription","commits_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/commits{/sha}","git_commits_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/git/commits{/sha}","comments_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/comments{/number}","issue_comment_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/issues/comments{/number}","contents_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/contents/{+path}","compare_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/merges","archive_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/downloads","issues_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/issues{/number}","pulls_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/pulls{/number}","milestones_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/milestones{/number}","notifications_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/labels{/name}","releases_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/releases{/id}","deployments_url":"https://api.github.com/repos/TCA-Team/TumCampusApp/deployments","created_at":"2013-05-10T23:10:12Z","updated_at":"2017-06-20T16:12:23Z","pushed_at":"2017-07-18T22:51:57Z","git_url":"git://github.com/TCA-Team/TumCampusApp.git","ssh_url":"git@github.com:TCA-Team/TumCampusApp.git","clone_url":"https://github.com/TCA-Team/TumCampusApp.git","svn_url":"https://github.com/TCA-Team/TumCampusApp","homepage":"https://tumcabe.in.tum.de","size":124977,"stargazers_count":73,"watchers_count":73,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":67,"forks":42,"open_issues":67,"watchers":73,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TCA-Team/TumCampusApp/pulls/495"},"html":{"href":"https://github.com/TCA-Team/TumCampusApp/pull/495"},"issue":{"href":"https://api.github.com/repos/TCA-Team/TumCampusApp/issues/495"},"comments":{"href":"https://api.github.com/repos/TCA-Team/TumCampusApp/issues/495/comments"},"review_comments":{"href":"https://api.github.com/repos/TCA-Team/TumCampusApp/pulls/495/comments"},"review_comment":{"href":"https://api.github.com/repos/TCA-Team/TumCampusApp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TCA-Team/TumCampusApp/pulls/495/commits"},"statuses":{"href":"https://api.github.com/repos/TCA-Team/TumCampusApp/statuses/7dbb637283ab545c36fee624cca5157248cf1d37"}}}}
{"actor":{"display_login":"sebmarste"}}