{"action":"created","comment":{"url":"https://api.github.com/repos/teamagam/GimelGimel/pulls/comments/69904208","id":69904208,"diff_hunk":"@@ -0,0 +1,95 @@\n+package com.teamagam.gimelgimel.app.model.ViewsModels.messages;\n+\n+import com.teamagam.gimelgimel.app.common.DataChangedObservable;\n+import com.teamagam.gimelgimel.app.common.DataChangedObserver;\n+import com.teamagam.gimelgimel.app.common.NotifyingDataChangedObservable;\n+import com.teamagam.gimelgimel.app.model.ViewsModels.Message;\n+import com.teamagam.gimelgimel.app.model.entities.messages.MessagesModel;\n+import com.teamagam.gimelgimel.app.model.entities.messages.MessagesReadStatusModel;\n+import com.teamagam.gimelgimel.app.model.entities.messages.SelectedMessageModel;\n+\n+/**\n+ * Messages view-model for messages presentation use-case\n+ */\n+public class MessagesViewModel extends NotifyingDataChangedObservable implements DataChangedObservable {\n+\n+    private MessagesModel mMessageModel;\n+    private SelectedMessageModel mSelectedMessageModel;\n+    private MessagesReadStatusModel mMessagesReadStatusModel;\n+\n+    public MessagesViewModel(","path":"app/src/main/java/com/teamagam/gimelgimel/app/model/ViewsModels/messages/MessagesViewModel.java","position":20,"original_position":20,"commit_id":"4d85f3b193b3331fd08ece45b254c80344571c26","original_commit_id":"4d85f3b193b3331fd08ece45b254c80344571c26","user":{"login":"BarAgam","id":18549294,"avatar_url":"https://avatars.githubusercontent.com/u/18549294?v=3","gravatar_id":"","url":"https://api.github.com/users/BarAgam","html_url":"https://github.com/BarAgam","followers_url":"https://api.github.com/users/BarAgam/followers","following_url":"https://api.github.com/users/BarAgam/following{/other_user}","gists_url":"https://api.github.com/users/BarAgam/gists{/gist_id}","starred_url":"https://api.github.com/users/BarAgam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BarAgam/subscriptions","organizations_url":"https://api.github.com/users/BarAgam/orgs","repos_url":"https://api.github.com/users/BarAgam/repos","events_url":"https://api.github.com/users/BarAgam/events{/privacy}","received_events_url":"https://api.github.com/users/BarAgam/received_events","type":"User","site_admin":false},"body":"Through the NotifyingDataChangedObservable","created_at":"2016-07-07T13:20:06Z","updated_at":"2016-07-07T13:20:06Z","html_url":"https://github.com/teamagam/GimelGimel/pull/56#discussion_r69904208","pull_request_url":"https://api.github.com/repos/teamagam/GimelGimel/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/teamagam/GimelGimel/pulls/comments/69904208"},"html":{"href":"https://github.com/teamagam/GimelGimel/pull/56#discussion_r69904208"},"pull_request":{"href":"https://api.github.com/repos/teamagam/GimelGimel/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/teamagam/GimelGimel/pulls/56","id":76265391,"html_url":"https://github.com/teamagam/GimelGimel/pull/56","diff_url":"https://github.com/teamagam/GimelGimel/pull/56.diff","patch_url":"https://github.com/teamagam/GimelGimel/pull/56.patch","issue_url":"https://api.github.com/repos/teamagam/GimelGimel/issues/56","number":56,"state":"open","locked":false,"title":"Model and ViewModel for message-list feature.","user":{"login":"BarAgam","id":18549294,"avatar_url":"https://avatars.githubusercontent.com/u/18549294?v=3","gravatar_id":"","url":"https://api.github.com/users/BarAgam","html_url":"https://github.com/BarAgam","followers_url":"https://api.github.com/users/BarAgam/followers","following_url":"https://api.github.com/users/BarAgam/following{/other_user}","gists_url":"https://api.github.com/users/BarAgam/gists{/gist_id}","starred_url":"https://api.github.com/users/BarAgam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BarAgam/subscriptions","organizations_url":"https://api.github.com/users/BarAgam/orgs","repos_url":"https://api.github.com/users/BarAgam/repos","events_url":"https://api.github.com/users/BarAgam/events{/privacy}","received_events_url":"https://api.github.com/users/BarAgam/received_events","type":"User","site_admin":false},"body":"Made the ViewModel and the Model parts of the messages management use-case (for messages displaying, choosing selected message, and read status of different messages).\nMessagesViewModel needs MessagesModel. MessagesReadStatusModel and SelectedMessageModel to function.\nThe models have been implemented with an in-memory implementation. The app will use these implementations, until a better alternative (DataBase for exmaple) will be implemented. The tests use the in-memory implementations, even if another implementation will be created, since they're perfect for testing.\n\nBoth the InMemoryMessageModel and MessagesViewModel class have test-classes. The other classes are mostly data objects/ simple enough not to be tested.","created_at":"2016-07-05T12:29:31Z","updated_at":"2016-07-07T13:20:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4a83b35f9899f8052bc149312eddb529f82d76e1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/teamagam/GimelGimel/pulls/56/commits","review_comments_url":"https://api.github.com/repos/teamagam/GimelGimel/pulls/56/comments","review_comment_url":"https://api.github.com/repos/teamagam/GimelGimel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/teamagam/GimelGimel/issues/56/comments","statuses_url":"https://api.github.com/repos/teamagam/GimelGimel/statuses/4d85f3b193b3331fd08ece45b254c80344571c26","head":{"label":"teamagam:task/message_list/message_cache","ref":"task/message_list/message_cache","sha":"4d85f3b193b3331fd08ece45b254c80344571c26","user":{"login":"teamagam","id":16633359,"avatar_url":"https://avatars.githubusercontent.com/u/16633359?v=3","gravatar_id":"","url":"https://api.github.com/users/teamagam","html_url":"https://github.com/teamagam","followers_url":"https://api.github.com/users/teamagam/followers","following_url":"https://api.github.com/users/teamagam/following{/other_user}","gists_url":"https://api.github.com/users/teamagam/gists{/gist_id}","starred_url":"https://api.github.com/users/teamagam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamagam/subscriptions","organizations_url":"https://api.github.com/users/teamagam/orgs","repos_url":"https://api.github.com/users/teamagam/repos","events_url":"https://api.github.com/users/teamagam/events{/privacy}","received_events_url":"https://api.github.com/users/teamagam/received_events","type":"Organization","site_admin":false},"repo":{"id":52010471,"name":"GimelGimel","full_name":"teamagam/GimelGimel","owner":{"login":"teamagam","id":16633359,"avatar_url":"https://avatars.githubusercontent.com/u/16633359?v=3","gravatar_id":"","url":"https://api.github.com/users/teamagam","html_url":"https://github.com/teamagam","followers_url":"https://api.github.com/users/teamagam/followers","following_url":"https://api.github.com/users/teamagam/following{/other_user}","gists_url":"https://api.github.com/users/teamagam/gists{/gist_id}","starred_url":"https://api.github.com/users/teamagam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamagam/subscriptions","organizations_url":"https://api.github.com/users/teamagam/orgs","repos_url":"https://api.github.com/users/teamagam/repos","events_url":"https://api.github.com/users/teamagam/events{/privacy}","received_events_url":"https://api.github.com/users/teamagam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teamagam/GimelGimel","description":"Our First Application.","fork":false,"url":"https://api.github.com/repos/teamagam/GimelGimel","forks_url":"https://api.github.com/repos/teamagam/GimelGimel/forks","keys_url":"https://api.github.com/repos/teamagam/GimelGimel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teamagam/GimelGimel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teamagam/GimelGimel/teams","hooks_url":"https://api.github.com/repos/teamagam/GimelGimel/hooks","issue_events_url":"https://api.github.com/repos/teamagam/GimelGimel/issues/events{/number}","events_url":"https://api.github.com/repos/teamagam/GimelGimel/events","assignees_url":"https://api.github.com/repos/teamagam/GimelGimel/assignees{/user}","branches_url":"https://api.github.com/repos/teamagam/GimelGimel/branches{/branch}","tags_url":"https://api.github.com/repos/teamagam/GimelGimel/tags","blobs_url":"https://api.github.com/repos/teamagam/GimelGimel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teamagam/GimelGimel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teamagam/GimelGimel/git/refs{/sha}","trees_url":"https://api.github.com/repos/teamagam/GimelGimel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teamagam/GimelGimel/statuses/{sha}","languages_url":"https://api.github.com/repos/teamagam/GimelGimel/languages","stargazers_url":"https://api.github.com/repos/teamagam/GimelGimel/stargazers","contributors_url":"https://api.github.com/repos/teamagam/GimelGimel/contributors","subscribers_url":"https://api.github.com/repos/teamagam/GimelGimel/subscribers","subscription_url":"https://api.github.com/repos/teamagam/GimelGimel/subscription","commits_url":"https://api.github.com/repos/teamagam/GimelGimel/commits{/sha}","git_commits_url":"https://api.github.com/repos/teamagam/GimelGimel/git/commits{/sha}","comments_url":"https://api.github.com/repos/teamagam/GimelGimel/comments{/number}","issue_comment_url":"https://api.github.com/repos/teamagam/GimelGimel/issues/comments{/number}","contents_url":"https://api.github.com/repos/teamagam/GimelGimel/contents/{+path}","compare_url":"https://api.github.com/repos/teamagam/GimelGimel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teamagam/GimelGimel/merges","archive_url":"https://api.github.com/repos/teamagam/GimelGimel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teamagam/GimelGimel/downloads","issues_url":"https://api.github.com/repos/teamagam/GimelGimel/issues{/number}","pulls_url":"https://api.github.com/repos/teamagam/GimelGimel/pulls{/number}","milestones_url":"https://api.github.com/repos/teamagam/GimelGimel/milestones{/number}","notifications_url":"https://api.github.com/repos/teamagam/GimelGimel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teamagam/GimelGimel/labels{/name}","releases_url":"https://api.github.com/repos/teamagam/GimelGimel/releases{/id}","deployments_url":"https://api.github.com/repos/teamagam/GimelGimel/deployments","created_at":"2016-02-18T13:53:07Z","updated_at":"2016-04-19T09:23:20Z","pushed_at":"2016-07-07T12:33:44Z","git_url":"git://github.com/teamagam/GimelGimel.git","ssh_url":"git@github.com:teamagam/GimelGimel.git","clone_url":"https://github.com/teamagam/GimelGimel.git","svn_url":"https://github.com/teamagam/GimelGimel","homepage":null,"size":49457,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"teamagam:feature/message_list","ref":"feature/message_list","sha":"06e003751323bc0f420110610215c73824bc6de5","user":{"login":"teamagam","id":16633359,"avatar_url":"https://avatars.githubusercontent.com/u/16633359?v=3","gravatar_id":"","url":"https://api.github.com/users/teamagam","html_url":"https://github.com/teamagam","followers_url":"https://api.github.com/users/teamagam/followers","following_url":"https://api.github.com/users/teamagam/following{/other_user}","gists_url":"https://api.github.com/users/teamagam/gists{/gist_id}","starred_url":"https://api.github.com/users/teamagam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamagam/subscriptions","organizations_url":"https://api.github.com/users/teamagam/orgs","repos_url":"https://api.github.com/users/teamagam/repos","events_url":"https://api.github.com/users/teamagam/events{/privacy}","received_events_url":"https://api.github.com/users/teamagam/received_events","type":"Organization","site_admin":false},"repo":{"id":52010471,"name":"GimelGimel","full_name":"teamagam/GimelGimel","owner":{"login":"teamagam","id":16633359,"avatar_url":"https://avatars.githubusercontent.com/u/16633359?v=3","gravatar_id":"","url":"https://api.github.com/users/teamagam","html_url":"https://github.com/teamagam","followers_url":"https://api.github.com/users/teamagam/followers","following_url":"https://api.github.com/users/teamagam/following{/other_user}","gists_url":"https://api.github.com/users/teamagam/gists{/gist_id}","starred_url":"https://api.github.com/users/teamagam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamagam/subscriptions","organizations_url":"https://api.github.com/users/teamagam/orgs","repos_url":"https://api.github.com/users/teamagam/repos","events_url":"https://api.github.com/users/teamagam/events{/privacy}","received_events_url":"https://api.github.com/users/teamagam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teamagam/GimelGimel","description":"Our First Application.","fork":false,"url":"https://api.github.com/repos/teamagam/GimelGimel","forks_url":"https://api.github.com/repos/teamagam/GimelGimel/forks","keys_url":"https://api.github.com/repos/teamagam/GimelGimel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teamagam/GimelGimel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teamagam/GimelGimel/teams","hooks_url":"https://api.github.com/repos/teamagam/GimelGimel/hooks","issue_events_url":"https://api.github.com/repos/teamagam/GimelGimel/issues/events{/number}","events_url":"https://api.github.com/repos/teamagam/GimelGimel/events","assignees_url":"https://api.github.com/repos/teamagam/GimelGimel/assignees{/user}","branches_url":"https://api.github.com/repos/teamagam/GimelGimel/branches{/branch}","tags_url":"https://api.github.com/repos/teamagam/GimelGimel/tags","blobs_url":"https://api.github.com/repos/teamagam/GimelGimel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teamagam/GimelGimel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teamagam/GimelGimel/git/refs{/sha}","trees_url":"https://api.github.com/repos/teamagam/GimelGimel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teamagam/GimelGimel/statuses/{sha}","languages_url":"https://api.github.com/repos/teamagam/GimelGimel/languages","stargazers_url":"https://api.github.com/repos/teamagam/GimelGimel/stargazers","contributors_url":"https://api.github.com/repos/teamagam/GimelGimel/contributors","subscribers_url":"https://api.github.com/repos/teamagam/GimelGimel/subscribers","subscription_url":"https://api.github.com/repos/teamagam/GimelGimel/subscription","commits_url":"https://api.github.com/repos/teamagam/GimelGimel/commits{/sha}","git_commits_url":"https://api.github.com/repos/teamagam/GimelGimel/git/commits{/sha}","comments_url":"https://api.github.com/repos/teamagam/GimelGimel/comments{/number}","issue_comment_url":"https://api.github.com/repos/teamagam/GimelGimel/issues/comments{/number}","contents_url":"https://api.github.com/repos/teamagam/GimelGimel/contents/{+path}","compare_url":"https://api.github.com/repos/teamagam/GimelGimel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teamagam/GimelGimel/merges","archive_url":"https://api.github.com/repos/teamagam/GimelGimel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teamagam/GimelGimel/downloads","issues_url":"https://api.github.com/repos/teamagam/GimelGimel/issues{/number}","pulls_url":"https://api.github.com/repos/teamagam/GimelGimel/pulls{/number}","milestones_url":"https://api.github.com/repos/teamagam/GimelGimel/milestones{/number}","notifications_url":"https://api.github.com/repos/teamagam/GimelGimel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teamagam/GimelGimel/labels{/name}","releases_url":"https://api.github.com/repos/teamagam/GimelGimel/releases{/id}","deployments_url":"https://api.github.com/repos/teamagam/GimelGimel/deployments","created_at":"2016-02-18T13:53:07Z","updated_at":"2016-04-19T09:23:20Z","pushed_at":"2016-07-07T12:33:44Z","git_url":"git://github.com/teamagam/GimelGimel.git","ssh_url":"git@github.com:teamagam/GimelGimel.git","clone_url":"https://github.com/teamagam/GimelGimel.git","svn_url":"https://github.com/teamagam/GimelGimel","homepage":null,"size":49457,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/teamagam/GimelGimel/pulls/56"},"html":{"href":"https://github.com/teamagam/GimelGimel/pull/56"},"issue":{"href":"https://api.github.com/repos/teamagam/GimelGimel/issues/56"},"comments":{"href":"https://api.github.com/repos/teamagam/GimelGimel/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/teamagam/GimelGimel/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/teamagam/GimelGimel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/teamagam/GimelGimel/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/teamagam/GimelGimel/statuses/4d85f3b193b3331fd08ece45b254c80344571c26"}}}}
{"actor":{"display_login":"BarAgam"}}