GitHub PullRequestReviewCommentEvent at 2014-01-29 18:31:03
Repository: queuer-ghostbusters
Actor: schrockblock
Payload: {"comment":{"url":"https://api.github.com/repos/schrockblock/queuer-ghostbusters/pulls/comments/9277837","id":9277837,"diff_hunk":"@@ -0,0 +1,134 @@\n+package com.ghostbusters.queuer.Activites;\n+\n+import com.ghostbusters.queuer.Models.LoginManagerCallback;\n+import com.ghostbusters.queuer.R;\n+\n+import android.support.v7.app.ActionBarActivity;\n+import android.support.v7.app.ActionBar;\n+import android.support.v4.app.Fragment;\n+import android.os.Bundle;\n+import android.view.LayoutInflater;\n+import android.view.Menu;\n+import android.view.MenuItem;\n+import android.view.View;\n+import android.view.ViewGroup;\n+import android.os.Build;\n+import android.widget.Button;\n+import android.widget.EditText;\n+// I added this next one\n+import android.content.Intent;\n+import android.widget.ProgressBar;\n+import android.widget.TextView;\n+\n+//import com.demo.queuer.R;\n+//import com.demo.queuer.managers.LoginManager;\n+//import com.demo.queuer.managers.LoginManagerCallback;\n+import com.ghostbusters.queuer.Models.LoginManager;\n+\n+\n+public class LoginActivity extends ActionBarActivity implements LoginManagerCallback{\n+\n+\n+    @Override\n+    protected void onCreate(Bundle savedInstanceState) {\n+        super.onCreate(savedInstanceState);\n+        setContentView(com.ghostbusters.queuer.R.layout.activity_login);\n+\n+\n+        final ProgressBar progressbar = (ProgressBar)findViewById(com.ghostbusters.queuer.R.id.login_spinner);\n+        final EditText user = (EditText)findViewById(com.ghostbusters.queuer.R.id.et_username);\n+        final EditText pass = (EditText)findViewById(com.ghostbusters.queuer.R.id.et_password);\n+        final Button login = (Button)findViewById(com.ghostbusters.queuer.R.id.btn_login);\n+        final Button createAccount = (Button)findViewById(com.ghostbusters.queuer.R.id.btn_create_account);\n+\n+        progressbar.setVisibility(View.GONE);\n+\n+        login.setOnClickListener(new View.OnClickListener() {\n+            @Override\n+            public void onClick(View v) {\n+\n+                LoginManager manager = new LoginManager();\n+                manager.setCallback(LoginActivity.this, LoginActivity.this);\n+                try {\n+                    manager.login(user.getText().toString(), pass.getText().toString());\n+                    //go elsewhere to do finished request","path":"appProject/app/src/main/java/com/ghostbusters/queuer/Activites/LoginActivity.java","position":54,"original_position":54,"commit_id":"1b63458d92c5132873b12f9b99d9e4afea61f2f2","original_commit_id":"1b63458d92c5132873b12f9b99d9e4afea61f2f2","user":{"login":"schrockblock","id":2800975,"avatar_url":"https://gravatar.com/avatar/c81feba4f066b8722582c0be81c7236d?d=https%3A%2F%2Fidenticons.github.com%2F778266f85d4abd96ff76078faf25ad0b.png&r=x","gravatar_id":"c81feba4f066b8722582c0be81c7236d","url":"https://api.github.com/users/schrockblock","html_url":"https://github.com/schrockblock","followers_url":"https://api.github.com/users/schrockblock/followers","following_url":"https://api.github.com/users/schrockblock/following{/other_user}","gists_url":"https://api.github.com/users/schrockblock/gists{/gist_id}","starred_url":"https://api.github.com/users/schrockblock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schrockblock/subscriptions","organizations_url":"https://api.github.com/users/schrockblock/orgs","repos_url":"https://api.github.com/users/schrockblock/repos","events_url":"https://api.github.com/users/schrockblock/events{/privacy}","received_events_url":"https://api.github.com/users/schrockblock/received_events","type":"User","site_admin":false},"body":"remove comment","created_at":"2014-01-29T18:31:03Z","updated_at":"2014-01-29T18:31:03Z","html_url":"https://github.com/schrockblock/queuer-ghostbusters/pull/27#discussion_r9277837","pull_request_url":"https://api.github.com/repos/schrockblock/queuer-ghostbusters/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/schrockblock/queuer-ghostbusters/pulls/comments/9277837"},"html":{"href":"https://github.com/schrockblock/queuer-ghostbusters/pull/27#discussion_r9277837"},"pull_request":{"href":"https://api.github.com/repos/schrockblock/queuer-ghostbusters/pulls/27"}}}}