{"action":"created","comment":{"url":"https://api.github.com/repos/mobile-android/Queschine/pulls/comments/63259310","id":63259310,"diff_hunk":"@@ -0,0 +1,101 @@\n+package com.iweavesolutions.queschine.activities;\n+\n+import android.os.Bundle;\n+import android.support.annotation.Nullable;\n+import android.support.v7.app.AppCompatActivity;\n+import android.support.v7.widget.AppCompatEditText;\n+import android.view.View;\n+import android.view.WindowManager;\n+import android.widget.Button;\n+import android.widget.ScrollView;\n+import android.widget.Toast;\n+\n+import com.iweavesolutions.queschine.R;\n+import com.iweavesolutions.queschine.apihandler.login.LogInBO;\n+import com.iweavesolutions.queschine.apihandler.login.LogInDataHandler;\n+import com.iweavesolutions.queschine.apihandler.login.LogInPayload;\n+import com.iweavesolutions.queschine.utilities.KeyBoardUtil;\n+import com.iweavesolutions.queschine.utilities.Utils;\n+\n+/**\n+ * Created by raaj.gopal on 13/05/16.\n+ */\n+public class LoginActivity extends AppCompatActivity{\n+\n+    private AppCompatEditText email, password, mobileNum;\n+    private Button login,cancel;\n+    private ScrollView scrollView;\n+\n+    @Override\n+    protected void onCreate(@Nullable Bundle savedInstanceState){\n+        super.onCreate(savedInstanceState);\n+        this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);\n+        setContentView(R.layout.activity_login);\n+        initLogin();\n+    }\n+    private void initLogin(){\n+        scrollView = (ScrollView) findViewById(R.id.scrollViewLogin);\n+        KeyBoardUtil keyBoardUtil = new KeyBoardUtil(LoginActivity.this,scrollView);\n+        keyBoardUtil.enable();\n+        email = (AppCompatEditText) findViewById(R.id.emailLogin);\n+        password = (AppCompatEditText) findViewById(R.id.passwordLogin);\n+        mobileNum = (AppCompatEditText)findViewById(R.id.mobileNum);\n+        login = (Button)findViewById(R.id.login);\n+        cancel = (Button)findViewById(R.id.cancel);\n+        login.setOnClickListener(new View.OnClickListener() {\n+            @Override\n+            public void onClick(View v) {\n+                String emailValue = email.getText().toString();\n+                String passwordValue = password.getText().toString();\n+                String mobile = mobileNum.getText().toString();\n+\n+                if(Utils.isNullOrEmpty(emailValue)){\n+                    Toast.makeText(getApplicationContext(),\"Email cannot be Empty\",Toast.LENGTH_SHORT).show();\n+                }","path":"app/src/main/java/com/iweavesolutions/queschine/activities/LoginActivity.java","position":54,"original_position":54,"commit_id":"85ff8b4b66244f03355ca5d2f07a8ebfd69dac3e","original_commit_id":"85ff8b4b66244f03355ca5d2f07a8ebfd69dac3e","user":{"login":"gvnbsg","id":5344940,"avatar_url":"https://avatars.githubusercontent.com/u/5344940?v=3","gravatar_id":"","url":"https://api.github.com/users/gvnbsg","html_url":"https://github.com/gvnbsg","followers_url":"https://api.github.com/users/gvnbsg/followers","following_url":"https://api.github.com/users/gvnbsg/following{/other_user}","gists_url":"https://api.github.com/users/gvnbsg/gists{/gist_id}","starred_url":"https://api.github.com/users/gvnbsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvnbsg/subscriptions","organizations_url":"https://api.github.com/users/gvnbsg/orgs","repos_url":"https://api.github.com/users/gvnbsg/repos","events_url":"https://api.github.com/users/gvnbsg/events{/privacy}","received_events_url":"https://api.github.com/users/gvnbsg/received_events","type":"User","site_admin":false},"body":"Check the valid format of Email Id here","created_at":"2016-05-13T22:23:17Z","updated_at":"2016-05-13T22:23:17Z","html_url":"https://github.com/mobile-android/Queschine/pull/10#discussion_r63259310","pull_request_url":"https://api.github.com/repos/mobile-android/Queschine/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/mobile-android/Queschine/pulls/comments/63259310"},"html":{"href":"https://github.com/mobile-android/Queschine/pull/10#discussion_r63259310"},"pull_request":{"href":"https://api.github.com/repos/mobile-android/Queschine/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/mobile-android/Queschine/pulls/10","id":70037327,"html_url":"https://github.com/mobile-android/Queschine/pull/10","diff_url":"https://github.com/mobile-android/Queschine/pull/10.diff","patch_url":"https://github.com/mobile-android/Queschine/pull/10.patch","issue_url":"https://api.github.com/repos/mobile-android/Queschine/issues/10","number":10,"state":"open","locked":false,"title":"Login changes","user":{"login":"raajgopal94","id":13257165,"avatar_url":"https://avatars.githubusercontent.com/u/13257165?v=3","gravatar_id":"","url":"https://api.github.com/users/raajgopal94","html_url":"https://github.com/raajgopal94","followers_url":"https://api.github.com/users/raajgopal94/followers","following_url":"https://api.github.com/users/raajgopal94/following{/other_user}","gists_url":"https://api.github.com/users/raajgopal94/gists{/gist_id}","starred_url":"https://api.github.com/users/raajgopal94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raajgopal94/subscriptions","organizations_url":"https://api.github.com/users/raajgopal94/orgs","repos_url":"https://api.github.com/users/raajgopal94/repos","events_url":"https://api.github.com/users/raajgopal94/events{/privacy}","received_events_url":"https://api.github.com/users/raajgopal94/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-13T18:19:23Z","updated_at":"2016-05-13T22:23:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6390795994a451b13eb174b2e80b061114788322","assignee":{"login":"gvnbsg","id":5344940,"avatar_url":"https://avatars.githubusercontent.com/u/5344940?v=3","gravatar_id":"","url":"https://api.github.com/users/gvnbsg","html_url":"https://github.com/gvnbsg","followers_url":"https://api.github.com/users/gvnbsg/followers","following_url":"https://api.github.com/users/gvnbsg/following{/other_user}","gists_url":"https://api.github.com/users/gvnbsg/gists{/gist_id}","starred_url":"https://api.github.com/users/gvnbsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvnbsg/subscriptions","organizations_url":"https://api.github.com/users/gvnbsg/orgs","repos_url":"https://api.github.com/users/gvnbsg/repos","events_url":"https://api.github.com/users/gvnbsg/events{/privacy}","received_events_url":"https://api.github.com/users/gvnbsg/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/mobile-android/Queschine/pulls/10/commits","review_comments_url":"https://api.github.com/repos/mobile-android/Queschine/pulls/10/comments","review_comment_url":"https://api.github.com/repos/mobile-android/Queschine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mobile-android/Queschine/issues/10/comments","statuses_url":"https://api.github.com/repos/mobile-android/Queschine/statuses/85ff8b4b66244f03355ca5d2f07a8ebfd69dac3e","head":{"label":"mobile-android:dev","ref":"dev","sha":"85ff8b4b66244f03355ca5d2f07a8ebfd69dac3e","user":{"login":"mobile-android","id":19211208,"avatar_url":"https://avatars.githubusercontent.com/u/19211208?v=3","gravatar_id":"","url":"https://api.github.com/users/mobile-android","html_url":"https://github.com/mobile-android","followers_url":"https://api.github.com/users/mobile-android/followers","following_url":"https://api.github.com/users/mobile-android/following{/other_user}","gists_url":"https://api.github.com/users/mobile-android/gists{/gist_id}","starred_url":"https://api.github.com/users/mobile-android/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobile-android/subscriptions","organizations_url":"https://api.github.com/users/mobile-android/orgs","repos_url":"https://api.github.com/users/mobile-android/repos","events_url":"https://api.github.com/users/mobile-android/events{/privacy}","received_events_url":"https://api.github.com/users/mobile-android/received_events","type":"Organization","site_admin":false},"repo":{"id":58148429,"name":"Queschine","full_name":"mobile-android/Queschine","owner":{"login":"mobile-android","id":19211208,"avatar_url":"https://avatars.githubusercontent.com/u/19211208?v=3","gravatar_id":"","url":"https://api.github.com/users/mobile-android","html_url":"https://github.com/mobile-android","followers_url":"https://api.github.com/users/mobile-android/followers","following_url":"https://api.github.com/users/mobile-android/following{/other_user}","gists_url":"https://api.github.com/users/mobile-android/gists{/gist_id}","starred_url":"https://api.github.com/users/mobile-android/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobile-android/subscriptions","organizations_url":"https://api.github.com/users/mobile-android/orgs","repos_url":"https://api.github.com/users/mobile-android/repos","events_url":"https://api.github.com/users/mobile-android/events{/privacy}","received_events_url":"https://api.github.com/users/mobile-android/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mobile-android/Queschine","description":"","fork":false,"url":"https://api.github.com/repos/mobile-android/Queschine","forks_url":"https://api.github.com/repos/mobile-android/Queschine/forks","keys_url":"https://api.github.com/repos/mobile-android/Queschine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mobile-android/Queschine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mobile-android/Queschine/teams","hooks_url":"https://api.github.com/repos/mobile-android/Queschine/hooks","issue_events_url":"https://api.github.com/repos/mobile-android/Queschine/issues/events{/number}","events_url":"https://api.github.com/repos/mobile-android/Queschine/events","assignees_url":"https://api.github.com/repos/mobile-android/Queschine/assignees{/user}","branches_url":"https://api.github.com/repos/mobile-android/Queschine/branches{/branch}","tags_url":"https://api.github.com/repos/mobile-android/Queschine/tags","blobs_url":"https://api.github.com/repos/mobile-android/Queschine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mobile-android/Queschine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mobile-android/Queschine/git/refs{/sha}","trees_url":"https://api.github.com/repos/mobile-android/Queschine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mobile-android/Queschine/statuses/{sha}","languages_url":"https://api.github.com/repos/mobile-android/Queschine/languages","stargazers_url":"https://api.github.com/repos/mobile-android/Queschine/stargazers","contributors_url":"https://api.github.com/repos/mobile-android/Queschine/contributors","subscribers_url":"https://api.github.com/repos/mobile-android/Queschine/subscribers","subscription_url":"https://api.github.com/repos/mobile-android/Queschine/subscription","commits_url":"https://api.github.com/repos/mobile-android/Queschine/commits{/sha}","git_commits_url":"https://api.github.com/repos/mobile-android/Queschine/git/commits{/sha}","comments_url":"https://api.github.com/repos/mobile-android/Queschine/comments{/number}","issue_comment_url":"https://api.github.com/repos/mobile-android/Queschine/issues/comments{/number}","contents_url":"https://api.github.com/repos/mobile-android/Queschine/contents/{+path}","compare_url":"https://api.github.com/repos/mobile-android/Queschine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mobile-android/Queschine/merges","archive_url":"https://api.github.com/repos/mobile-android/Queschine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mobile-android/Queschine/downloads","issues_url":"https://api.github.com/repos/mobile-android/Queschine/issues{/number}","pulls_url":"https://api.github.com/repos/mobile-android/Queschine/pulls{/number}","milestones_url":"https://api.github.com/repos/mobile-android/Queschine/milestones{/number}","notifications_url":"https://api.github.com/repos/mobile-android/Queschine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mobile-android/Queschine/labels{/name}","releases_url":"https://api.github.com/repos/mobile-android/Queschine/releases{/id}","deployments_url":"https://api.github.com/repos/mobile-android/Queschine/deployments","created_at":"2016-05-05T17:25:45Z","updated_at":"2016-05-05T17:28:37Z","pushed_at":"2016-05-13T18:28:13Z","git_url":"git://github.com/mobile-android/Queschine.git","ssh_url":"git@github.com:mobile-android/Queschine.git","clone_url":"https://github.com/mobile-android/Queschine.git","svn_url":"https://github.com/mobile-android/Queschine","homepage":null,"size":571,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":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":"mobile-android:master","ref":"master","sha":"945b4576b582b99a8f223ddcc137333d7141ccd9","user":{"login":"mobile-android","id":19211208,"avatar_url":"https://avatars.githubusercontent.com/u/19211208?v=3","gravatar_id":"","url":"https://api.github.com/users/mobile-android","html_url":"https://github.com/mobile-android","followers_url":"https://api.github.com/users/mobile-android/followers","following_url":"https://api.github.com/users/mobile-android/following{/other_user}","gists_url":"https://api.github.com/users/mobile-android/gists{/gist_id}","starred_url":"https://api.github.com/users/mobile-android/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobile-android/subscriptions","organizations_url":"https://api.github.com/users/mobile-android/orgs","repos_url":"https://api.github.com/users/mobile-android/repos","events_url":"https://api.github.com/users/mobile-android/events{/privacy}","received_events_url":"https://api.github.com/users/mobile-android/received_events","type":"Organization","site_admin":false},"repo":{"id":58148429,"name":"Queschine","full_name":"mobile-android/Queschine","owner":{"login":"mobile-android","id":19211208,"avatar_url":"https://avatars.githubusercontent.com/u/19211208?v=3","gravatar_id":"","url":"https://api.github.com/users/mobile-android","html_url":"https://github.com/mobile-android","followers_url":"https://api.github.com/users/mobile-android/followers","following_url":"https://api.github.com/users/mobile-android/following{/other_user}","gists_url":"https://api.github.com/users/mobile-android/gists{/gist_id}","starred_url":"https://api.github.com/users/mobile-android/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobile-android/subscriptions","organizations_url":"https://api.github.com/users/mobile-android/orgs","repos_url":"https://api.github.com/users/mobile-android/repos","events_url":"https://api.github.com/users/mobile-android/events{/privacy}","received_events_url":"https://api.github.com/users/mobile-android/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mobile-android/Queschine","description":"","fork":false,"url":"https://api.github.com/repos/mobile-android/Queschine","forks_url":"https://api.github.com/repos/mobile-android/Queschine/forks","keys_url":"https://api.github.com/repos/mobile-android/Queschine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mobile-android/Queschine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mobile-android/Queschine/teams","hooks_url":"https://api.github.com/repos/mobile-android/Queschine/hooks","issue_events_url":"https://api.github.com/repos/mobile-android/Queschine/issues/events{/number}","events_url":"https://api.github.com/repos/mobile-android/Queschine/events","assignees_url":"https://api.github.com/repos/mobile-android/Queschine/assignees{/user}","branches_url":"https://api.github.com/repos/mobile-android/Queschine/branches{/branch}","tags_url":"https://api.github.com/repos/mobile-android/Queschine/tags","blobs_url":"https://api.github.com/repos/mobile-android/Queschine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mobile-android/Queschine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mobile-android/Queschine/git/refs{/sha}","trees_url":"https://api.github.com/repos/mobile-android/Queschine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mobile-android/Queschine/statuses/{sha}","languages_url":"https://api.github.com/repos/mobile-android/Queschine/languages","stargazers_url":"https://api.github.com/repos/mobile-android/Queschine/stargazers","contributors_url":"https://api.github.com/repos/mobile-android/Queschine/contributors","subscribers_url":"https://api.github.com/repos/mobile-android/Queschine/subscribers","subscription_url":"https://api.github.com/repos/mobile-android/Queschine/subscription","commits_url":"https://api.github.com/repos/mobile-android/Queschine/commits{/sha}","git_commits_url":"https://api.github.com/repos/mobile-android/Queschine/git/commits{/sha}","comments_url":"https://api.github.com/repos/mobile-android/Queschine/comments{/number}","issue_comment_url":"https://api.github.com/repos/mobile-android/Queschine/issues/comments{/number}","contents_url":"https://api.github.com/repos/mobile-android/Queschine/contents/{+path}","compare_url":"https://api.github.com/repos/mobile-android/Queschine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mobile-android/Queschine/merges","archive_url":"https://api.github.com/repos/mobile-android/Queschine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mobile-android/Queschine/downloads","issues_url":"https://api.github.com/repos/mobile-android/Queschine/issues{/number}","pulls_url":"https://api.github.com/repos/mobile-android/Queschine/pulls{/number}","milestones_url":"https://api.github.com/repos/mobile-android/Queschine/milestones{/number}","notifications_url":"https://api.github.com/repos/mobile-android/Queschine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mobile-android/Queschine/labels{/name}","releases_url":"https://api.github.com/repos/mobile-android/Queschine/releases{/id}","deployments_url":"https://api.github.com/repos/mobile-android/Queschine/deployments","created_at":"2016-05-05T17:25:45Z","updated_at":"2016-05-05T17:28:37Z","pushed_at":"2016-05-13T18:28:13Z","git_url":"git://github.com/mobile-android/Queschine.git","ssh_url":"git@github.com:mobile-android/Queschine.git","clone_url":"https://github.com/mobile-android/Queschine.git","svn_url":"https://github.com/mobile-android/Queschine","homepage":null,"size":571,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":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/mobile-android/Queschine/pulls/10"},"html":{"href":"https://github.com/mobile-android/Queschine/pull/10"},"issue":{"href":"https://api.github.com/repos/mobile-android/Queschine/issues/10"},"comments":{"href":"https://api.github.com/repos/mobile-android/Queschine/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/mobile-android/Queschine/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/mobile-android/Queschine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mobile-android/Queschine/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/mobile-android/Queschine/statuses/85ff8b4b66244f03355ca5d2f07a8ebfd69dac3e"}}}}