{"action":"created","comment":{"url":"https://api.github.com/repos/jmhwang7/Gamr/pulls/comments/25952450","id":25952450,"diff_hunk":"@@ -0,0 +1,125 @@\n+package com.gamr.gamr;\n+\n+import android.content.Context;\n+import android.os.Bundle;\n+import android.support.v7.app.ActionBarActivity;\n+import android.view.Gravity;\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.widget.ArrayAdapter;\n+import android.widget.ListView;\n+import android.widget.TextView;\n+\n+import com.gamr.gamr.ServerRepresentations.Message;\n+\n+import java.util.List;\n+\n+/**\n+ * An activity that represents a conversation between two people that allows for the sending and\n+ * viewing of messages.\n+ */\n+public class ConversationActivity extends ActionBarActivity {\n+    public static final String SENDER_KEY = \"MESSAGE_SENDER\";\n+    private List<Message> mMessageList;\n+    private ConversationAdapter mAdapter;\n+\n+    @Override\n+    protected void onCreate(Bundle savedInstanceState) {\n+        super.onCreate(savedInstanceState);\n+        setContentView(R.layout.activity_conversation);\n+\n+\n+        // First we find the list view\n+        final ListView messagesListView = (ListView) findViewById(R.id.conversationListView);\n+\n+        // From there we will populate our list with our current messages\n+        if (mMessageList == null) {\n+            // TODO We should obviously change how the two activities communicate with each other\n+            // I am thinking we could have some global object that will track the messaging","path":"app/src/main/java/com/gamr/gamr/ConversationActivity.java","position":41,"original_position":41,"commit_id":"402cd72e8cc727094eff768c15e5ec3bd513ba82","original_commit_id":"402cd72e8cc727094eff768c15e5ec3bd513ba82","user":{"login":"jmhwang7","id":2397765,"avatar_url":"https://avatars.githubusercontent.com/u/2397765?v=3","gravatar_id":"","url":"https://api.github.com/users/jmhwang7","html_url":"https://github.com/jmhwang7","followers_url":"https://api.github.com/users/jmhwang7/followers","following_url":"https://api.github.com/users/jmhwang7/following{/other_user}","gists_url":"https://api.github.com/users/jmhwang7/gists{/gist_id}","starred_url":"https://api.github.com/users/jmhwang7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmhwang7/subscriptions","organizations_url":"https://api.github.com/users/jmhwang7/orgs","repos_url":"https://api.github.com/users/jmhwang7/repos","events_url":"https://api.github.com/users/jmhwang7/events{/privacy}","received_events_url":"https://api.github.com/users/jmhwang7/received_events","type":"User","site_admin":false},"body":"On the detailed design, I was thinking originally of a global current user object? That way, we can just do something like: \r\n\r\nCurrentUser.getConversation(getIntent().getExtras().getString(SENDER_KEY));\r\n\r\nwhere SENDER_KEY is the other user.","created_at":"2015-03-06T15:38:32Z","updated_at":"2015-03-06T15:38:32Z","html_url":"https://github.com/jmhwang7/Gamr/pull/2#discussion_r25952450","pull_request_url":"https://api.github.com/repos/jmhwang7/Gamr/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/jmhwang7/Gamr/pulls/comments/25952450"},"html":{"href":"https://github.com/jmhwang7/Gamr/pull/2#discussion_r25952450"},"pull_request":{"href":"https://api.github.com/repos/jmhwang7/Gamr/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/jmhwang7/Gamr/pulls/2","id":30614251,"html_url":"https://github.com/jmhwang7/Gamr/pull/2","diff_url":"https://github.com/jmhwang7/Gamr/pull/2.diff","patch_url":"https://github.com/jmhwang7/Gamr/pull/2.patch","issue_url":"https://api.github.com/repos/jmhwang7/Gamr/issues/2","number":2,"state":"open","locked":false,"title":"Messages list","user":{"login":"B50calabrese","id":2686709,"avatar_url":"https://avatars.githubusercontent.com/u/2686709?v=3","gravatar_id":"","url":"https://api.github.com/users/B50calabrese","html_url":"https://github.com/B50calabrese","followers_url":"https://api.github.com/users/B50calabrese/followers","following_url":"https://api.github.com/users/B50calabrese/following{/other_user}","gists_url":"https://api.github.com/users/B50calabrese/gists{/gist_id}","starred_url":"https://api.github.com/users/B50calabrese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/B50calabrese/subscriptions","organizations_url":"https://api.github.com/users/B50calabrese/orgs","repos_url":"https://api.github.com/users/B50calabrese/repos","events_url":"https://api.github.com/users/B50calabrese/events{/privacy}","received_events_url":"https://api.github.com/users/B50calabrese/received_events","type":"User","site_admin":false},"body":"Worked on the Messages side of the Android App. Currently it is in a demoable state, though there needs to be changes about how the database messages are represented on the local device, as well as integration with server communication.","created_at":"2015-03-06T01:42:03Z","updated_at":"2015-03-06T15:38:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3471720eac1752c67f168db231c0006f82f8e2de","assignee":{"login":"jmhwang7","id":2397765,"avatar_url":"https://avatars.githubusercontent.com/u/2397765?v=3","gravatar_id":"","url":"https://api.github.com/users/jmhwang7","html_url":"https://github.com/jmhwang7","followers_url":"https://api.github.com/users/jmhwang7/followers","following_url":"https://api.github.com/users/jmhwang7/following{/other_user}","gists_url":"https://api.github.com/users/jmhwang7/gists{/gist_id}","starred_url":"https://api.github.com/users/jmhwang7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmhwang7/subscriptions","organizations_url":"https://api.github.com/users/jmhwang7/orgs","repos_url":"https://api.github.com/users/jmhwang7/repos","events_url":"https://api.github.com/users/jmhwang7/events{/privacy}","received_events_url":"https://api.github.com/users/jmhwang7/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/jmhwang7/Gamr/pulls/2/commits","review_comments_url":"https://api.github.com/repos/jmhwang7/Gamr/pulls/2/comments","review_comment_url":"https://api.github.com/repos/jmhwang7/Gamr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jmhwang7/Gamr/issues/2/comments","statuses_url":"https://api.github.com/repos/jmhwang7/Gamr/statuses/402cd72e8cc727094eff768c15e5ec3bd513ba82","head":{"label":"jmhwang7:MessagesList","ref":"MessagesList","sha":"402cd72e8cc727094eff768c15e5ec3bd513ba82","user":{"login":"jmhwang7","id":2397765,"avatar_url":"https://avatars.githubusercontent.com/u/2397765?v=3","gravatar_id":"","url":"https://api.github.com/users/jmhwang7","html_url":"https://github.com/jmhwang7","followers_url":"https://api.github.com/users/jmhwang7/followers","following_url":"https://api.github.com/users/jmhwang7/following{/other_user}","gists_url":"https://api.github.com/users/jmhwang7/gists{/gist_id}","starred_url":"https://api.github.com/users/jmhwang7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmhwang7/subscriptions","organizations_url":"https://api.github.com/users/jmhwang7/orgs","repos_url":"https://api.github.com/users/jmhwang7/repos","events_url":"https://api.github.com/users/jmhwang7/events{/privacy}","received_events_url":"https://api.github.com/users/jmhwang7/received_events","type":"User","site_admin":false},"repo":{"id":30423774,"name":"Gamr","full_name":"jmhwang7/Gamr","owner":{"login":"jmhwang7","id":2397765,"avatar_url":"https://avatars.githubusercontent.com/u/2397765?v=3","gravatar_id":"","url":"https://api.github.com/users/jmhwang7","html_url":"https://github.com/jmhwang7","followers_url":"https://api.github.com/users/jmhwang7/followers","following_url":"https://api.github.com/users/jmhwang7/following{/other_user}","gists_url":"https://api.github.com/users/jmhwang7/gists{/gist_id}","starred_url":"https://api.github.com/users/jmhwang7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmhwang7/subscriptions","organizations_url":"https://api.github.com/users/jmhwang7/orgs","repos_url":"https://api.github.com/users/jmhwang7/repos","events_url":"https://api.github.com/users/jmhwang7/events{/privacy}","received_events_url":"https://api.github.com/users/jmhwang7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmhwang7/Gamr","description":"","fork":false,"url":"https://api.github.com/repos/jmhwang7/Gamr","forks_url":"https://api.github.com/repos/jmhwang7/Gamr/forks","keys_url":"https://api.github.com/repos/jmhwang7/Gamr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmhwang7/Gamr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmhwang7/Gamr/teams","hooks_url":"https://api.github.com/repos/jmhwang7/Gamr/hooks","issue_events_url":"https://api.github.com/repos/jmhwang7/Gamr/issues/events{/number}","events_url":"https://api.github.com/repos/jmhwang7/Gamr/events","assignees_url":"https://api.github.com/repos/jmhwang7/Gamr/assignees{/user}","branches_url":"https://api.github.com/repos/jmhwang7/Gamr/branches{/branch}","tags_url":"https://api.github.com/repos/jmhwang7/Gamr/tags","blobs_url":"https://api.github.com/repos/jmhwang7/Gamr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmhwang7/Gamr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmhwang7/Gamr/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmhwang7/Gamr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmhwang7/Gamr/statuses/{sha}","languages_url":"https://api.github.com/repos/jmhwang7/Gamr/languages","stargazers_url":"https://api.github.com/repos/jmhwang7/Gamr/stargazers","contributors_url":"https://api.github.com/repos/jmhwang7/Gamr/contributors","subscribers_url":"https://api.github.com/repos/jmhwang7/Gamr/subscribers","subscription_url":"https://api.github.com/repos/jmhwang7/Gamr/subscription","commits_url":"https://api.github.com/repos/jmhwang7/Gamr/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmhwang7/Gamr/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmhwang7/Gamr/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmhwang7/Gamr/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmhwang7/Gamr/contents/{+path}","compare_url":"https://api.github.com/repos/jmhwang7/Gamr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmhwang7/Gamr/merges","archive_url":"https://api.github.com/repos/jmhwang7/Gamr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmhwang7/Gamr/downloads","issues_url":"https://api.github.com/repos/jmhwang7/Gamr/issues{/number}","pulls_url":"https://api.github.com/repos/jmhwang7/Gamr/pulls{/number}","milestones_url":"https://api.github.com/repos/jmhwang7/Gamr/milestones{/number}","notifications_url":"https://api.github.com/repos/jmhwang7/Gamr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmhwang7/Gamr/labels{/name}","releases_url":"https://api.github.com/repos/jmhwang7/Gamr/releases{/id}","created_at":"2015-02-06T17:18:16Z","updated_at":"2015-03-06T02:30:11Z","pushed_at":"2015-03-06T02:30:11Z","git_url":"git://github.com/jmhwang7/Gamr.git","ssh_url":"git@github.com:jmhwang7/Gamr.git","clone_url":"https://github.com/jmhwang7/Gamr.git","svn_url":"https://github.com/jmhwang7/Gamr","homepage":null,"size":324,"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":"jmhwang7:master","ref":"master","sha":"794de75816b6af92aa6ed3e728be6aa268ec5294","user":{"login":"jmhwang7","id":2397765,"avatar_url":"https://avatars.githubusercontent.com/u/2397765?v=3","gravatar_id":"","url":"https://api.github.com/users/jmhwang7","html_url":"https://github.com/jmhwang7","followers_url":"https://api.github.com/users/jmhwang7/followers","following_url":"https://api.github.com/users/jmhwang7/following{/other_user}","gists_url":"https://api.github.com/users/jmhwang7/gists{/gist_id}","starred_url":"https://api.github.com/users/jmhwang7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmhwang7/subscriptions","organizations_url":"https://api.github.com/users/jmhwang7/orgs","repos_url":"https://api.github.com/users/jmhwang7/repos","events_url":"https://api.github.com/users/jmhwang7/events{/privacy}","received_events_url":"https://api.github.com/users/jmhwang7/received_events","type":"User","site_admin":false},"repo":{"id":30423774,"name":"Gamr","full_name":"jmhwang7/Gamr","owner":{"login":"jmhwang7","id":2397765,"avatar_url":"https://avatars.githubusercontent.com/u/2397765?v=3","gravatar_id":"","url":"https://api.github.com/users/jmhwang7","html_url":"https://github.com/jmhwang7","followers_url":"https://api.github.com/users/jmhwang7/followers","following_url":"https://api.github.com/users/jmhwang7/following{/other_user}","gists_url":"https://api.github.com/users/jmhwang7/gists{/gist_id}","starred_url":"https://api.github.com/users/jmhwang7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmhwang7/subscriptions","organizations_url":"https://api.github.com/users/jmhwang7/orgs","repos_url":"https://api.github.com/users/jmhwang7/repos","events_url":"https://api.github.com/users/jmhwang7/events{/privacy}","received_events_url":"https://api.github.com/users/jmhwang7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmhwang7/Gamr","description":"","fork":false,"url":"https://api.github.com/repos/jmhwang7/Gamr","forks_url":"https://api.github.com/repos/jmhwang7/Gamr/forks","keys_url":"https://api.github.com/repos/jmhwang7/Gamr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmhwang7/Gamr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmhwang7/Gamr/teams","hooks_url":"https://api.github.com/repos/jmhwang7/Gamr/hooks","issue_events_url":"https://api.github.com/repos/jmhwang7/Gamr/issues/events{/number}","events_url":"https://api.github.com/repos/jmhwang7/Gamr/events","assignees_url":"https://api.github.com/repos/jmhwang7/Gamr/assignees{/user}","branches_url":"https://api.github.com/repos/jmhwang7/Gamr/branches{/branch}","tags_url":"https://api.github.com/repos/jmhwang7/Gamr/tags","blobs_url":"https://api.github.com/repos/jmhwang7/Gamr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmhwang7/Gamr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmhwang7/Gamr/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmhwang7/Gamr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmhwang7/Gamr/statuses/{sha}","languages_url":"https://api.github.com/repos/jmhwang7/Gamr/languages","stargazers_url":"https://api.github.com/repos/jmhwang7/Gamr/stargazers","contributors_url":"https://api.github.com/repos/jmhwang7/Gamr/contributors","subscribers_url":"https://api.github.com/repos/jmhwang7/Gamr/subscribers","subscription_url":"https://api.github.com/repos/jmhwang7/Gamr/subscription","commits_url":"https://api.github.com/repos/jmhwang7/Gamr/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmhwang7/Gamr/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmhwang7/Gamr/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmhwang7/Gamr/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmhwang7/Gamr/contents/{+path}","compare_url":"https://api.github.com/repos/jmhwang7/Gamr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmhwang7/Gamr/merges","archive_url":"https://api.github.com/repos/jmhwang7/Gamr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmhwang7/Gamr/downloads","issues_url":"https://api.github.com/repos/jmhwang7/Gamr/issues{/number}","pulls_url":"https://api.github.com/repos/jmhwang7/Gamr/pulls{/number}","milestones_url":"https://api.github.com/repos/jmhwang7/Gamr/milestones{/number}","notifications_url":"https://api.github.com/repos/jmhwang7/Gamr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmhwang7/Gamr/labels{/name}","releases_url":"https://api.github.com/repos/jmhwang7/Gamr/releases{/id}","created_at":"2015-02-06T17:18:16Z","updated_at":"2015-03-06T02:30:11Z","pushed_at":"2015-03-06T02:30:11Z","git_url":"git://github.com/jmhwang7/Gamr.git","ssh_url":"git@github.com:jmhwang7/Gamr.git","clone_url":"https://github.com/jmhwang7/Gamr.git","svn_url":"https://github.com/jmhwang7/Gamr","homepage":null,"size":324,"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/jmhwang7/Gamr/pulls/2"},"html":{"href":"https://github.com/jmhwang7/Gamr/pull/2"},"issue":{"href":"https://api.github.com/repos/jmhwang7/Gamr/issues/2"},"comments":{"href":"https://api.github.com/repos/jmhwang7/Gamr/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/jmhwang7/Gamr/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/jmhwang7/Gamr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jmhwang7/Gamr/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/jmhwang7/Gamr/statuses/402cd72e8cc727094eff768c15e5ec3bd513ba82"}}}}