{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/wsm_android/pulls/comments/131297505","pull_request_review_id":54264504,"id":131297505,"diff_hunk":"@@ -0,0 +1,75 @@\n+package com.framgia.wsm.screen.statistics;\n+\n+import android.content.Context;\n+import android.support.annotation.IntDef;\n+import android.support.v4.app.Fragment;\n+import android.support.v4.app.FragmentManager;\n+import android.support.v4.app.FragmentPagerAdapter;\n+import com.framgia.wsm.R;\n+import com.framgia.wsm.screen.holidaycalendar.HolidayCalendarFragment;\n+import java.util.ArrayList;\n+import java.util.List;\n+\n+/**\n+ * Created by nguyenhuy95dn on 8/3/2017.\n+ */\n+\n+public class StatisticContainerAdapter extends FragmentPagerAdapter {\n+    private static final int TAB_NUMBER = 2;\n+\n+    private Context mContext;\n+    private List<Fragment> mFragments;\n+\n+    StatisticContainerAdapter(Context context, FragmentManager fm) {\n+        super(fm);\n+        mContext = context;\n+        mFragments = new ArrayList<>();\n+    }\n+\n+    @Override\n+    public Fragment getItem(int position) {\n+        Fragment fragment;\n+        switch (position) {\n+            case SearchResultsTab.TAB_MONTH:\n+                //Todo edit later\n+                fragment = HolidayCalendarFragment.newInstance();\n+                mFragments.add(SearchResultsTab.TAB_MONTH, fragment);\n+                return fragment;\n+            case SearchResultsTab.TAB_YEAR:\n+                //Todo edit later\n+                fragment = HolidayCalendarFragment.newInstance();\n+                mFragments.add(SearchResultsTab.TAB_YEAR, fragment);\n+                return fragment;\n+            default:\n+                return null;\n+        }\n+    }\n+\n+    @Override\n+    public int getCount() {\n+        return TAB_NUMBER;\n+    }\n+\n+    @Override\n+    public CharSequence getPageTitle(int position) {\n+        switch (position) {\n+            case SearchResultsTab.TAB_MONTH:\n+                return mContext.getString(R.string.month);\n+            case SearchResultsTab.TAB_YEAR:\n+                return mContext.getString(R.string.year);\n+            default:\n+                return null;\n+        }\n+    }\n+\n+    public Fragment getFragment(@SearchResultsTab int position) {\n+        return mFragments.get(position);\n+    }\n+\n+    @IntDef({ SearchResultsTab.TAB_MONTH, SearchResultsTab.TAB_YEAR })\n+    public @interface SearchResultsTab {\n+        int TAB_MONTH = 0;","path":"app/src/main/java/com/framgia/wsm/screen/statistics/StatisticContainerAdapter.java","position":71,"original_position":71,"commit_id":"3f1aeaf68e8aa0c17299d243510896504af68db3","original_commit_id":"3f1aeaf68e8aa0c17299d243510896504af68db3","user":{"login":"trainer-android-fr","id":6355989,"avatar_url":"https://avatars3.githubusercontent.com/u/6355989?v=4","gravatar_id":"","url":"https://api.github.com/users/trainer-android-fr","html_url":"https://github.com/trainer-android-fr","followers_url":"https://api.github.com/users/trainer-android-fr/followers","following_url":"https://api.github.com/users/trainer-android-fr/following{/other_user}","gists_url":"https://api.github.com/users/trainer-android-fr/gists{/gist_id}","starred_url":"https://api.github.com/users/trainer-android-fr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trainer-android-fr/subscriptions","organizations_url":"https://api.github.com/users/trainer-android-fr/orgs","repos_url":"https://api.github.com/users/trainer-android-fr/repos","events_url":"https://api.github.com/users/trainer-android-fr/events{/privacy}","received_events_url":"https://api.github.com/users/trainer-android-fr/received_events","type":"User","site_admin":false},"body":"ERROR: 'member def type' have incorrect indentation level 8, expected level should be 4.","created_at":"2017-08-04T01:51:42Z","updated_at":"2017-08-04T01:51:42Z","html_url":"https://github.com/framgia/wsm_android/pull/301#discussion_r131297505","pull_request_url":"https://api.github.com/repos/framgia/wsm_android/pulls/301","_links":{"self":{"href":"https://api.github.com/repos/framgia/wsm_android/pulls/comments/131297505"},"html":{"href":"https://github.com/framgia/wsm_android/pull/301#discussion_r131297505"},"pull_request":{"href":"https://api.github.com/repos/framgia/wsm_android/pulls/301"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/wsm_android/pulls/301","id":134073200,"html_url":"https://github.com/framgia/wsm_android/pull/301","diff_url":"https://github.com/framgia/wsm_android/pull/301.diff","patch_url":"https://github.com/framgia/wsm_android/pull/301.patch","issue_url":"https://api.github.com/repos/framgia/wsm_android/issues/301","number":301,"state":"open","locked":false,"title":"[Sprint Maintain]Feature Create UI Statistic Of Personal Next","user":{"login":"nguyenhuy95dn","id":24884267,"avatar_url":"https://avatars3.githubusercontent.com/u/24884267?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenhuy95dn","html_url":"https://github.com/nguyenhuy95dn","followers_url":"https://api.github.com/users/nguyenhuy95dn/followers","following_url":"https://api.github.com/users/nguyenhuy95dn/following{/other_user}","gists_url":"https://api.github.com/users/nguyenhuy95dn/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenhuy95dn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenhuy95dn/subscriptions","organizations_url":"https://api.github.com/users/nguyenhuy95dn/orgs","repos_url":"https://api.github.com/users/nguyenhuy95dn/repos","events_url":"https://api.github.com/users/nguyenhuy95dn/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenhuy95dn/received_events","type":"User","site_admin":false},"body":"Feature Create UI Statistic Of Personal\r\nhttps://dev.framgia.com/redmine/issues/131118\r\nEffect: N/A","created_at":"2017-08-04T01:18:57Z","updated_at":"2017-08-04T01:51:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3bb5947edd95188bf329903cec6c3152c6177bb3","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/wsm_android/pulls/301/commits","review_comments_url":"https://api.github.com/repos/framgia/wsm_android/pulls/301/comments","review_comment_url":"https://api.github.com/repos/framgia/wsm_android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/wsm_android/issues/301/comments","statuses_url":"https://api.github.com/repos/framgia/wsm_android/statuses/3f1aeaf68e8aa0c17299d243510896504af68db3","head":{"label":"nguyenhuy95dn:feature_create_ui_statistic_of_personal_next","ref":"feature_create_ui_statistic_of_personal_next","sha":"3f1aeaf68e8aa0c17299d243510896504af68db3","user":{"login":"nguyenhuy95dn","id":24884267,"avatar_url":"https://avatars3.githubusercontent.com/u/24884267?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenhuy95dn","html_url":"https://github.com/nguyenhuy95dn","followers_url":"https://api.github.com/users/nguyenhuy95dn/followers","following_url":"https://api.github.com/users/nguyenhuy95dn/following{/other_user}","gists_url":"https://api.github.com/users/nguyenhuy95dn/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenhuy95dn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenhuy95dn/subscriptions","organizations_url":"https://api.github.com/users/nguyenhuy95dn/orgs","repos_url":"https://api.github.com/users/nguyenhuy95dn/repos","events_url":"https://api.github.com/users/nguyenhuy95dn/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenhuy95dn/received_events","type":"User","site_admin":false},"repo":{"id":98135765,"name":"wsm_android","full_name":"nguyenhuy95dn/wsm_android","owner":{"login":"nguyenhuy95dn","id":24884267,"avatar_url":"https://avatars3.githubusercontent.com/u/24884267?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenhuy95dn","html_url":"https://github.com/nguyenhuy95dn","followers_url":"https://api.github.com/users/nguyenhuy95dn/followers","following_url":"https://api.github.com/users/nguyenhuy95dn/following{/other_user}","gists_url":"https://api.github.com/users/nguyenhuy95dn/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenhuy95dn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenhuy95dn/subscriptions","organizations_url":"https://api.github.com/users/nguyenhuy95dn/orgs","repos_url":"https://api.github.com/users/nguyenhuy95dn/repos","events_url":"https://api.github.com/users/nguyenhuy95dn/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenhuy95dn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguyenhuy95dn/wsm_android","description":null,"fork":true,"url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android","forks_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/forks","keys_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/teams","hooks_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/hooks","issue_events_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/issues/events{/number}","events_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/events","assignees_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/assignees{/user}","branches_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/branches{/branch}","tags_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/tags","blobs_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/languages","stargazers_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/stargazers","contributors_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/contributors","subscribers_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/subscribers","subscription_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/subscription","commits_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/contents/{+path}","compare_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/merges","archive_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/downloads","issues_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/issues{/number}","pulls_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/labels{/name}","releases_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/releases{/id}","deployments_url":"https://api.github.com/repos/nguyenhuy95dn/wsm_android/deployments","created_at":"2017-07-24T01:06:50Z","updated_at":"2017-07-24T01:06:52Z","pushed_at":"2017-08-04T01:41:51Z","git_url":"git://github.com/nguyenhuy95dn/wsm_android.git","ssh_url":"git@github.com:nguyenhuy95dn/wsm_android.git","clone_url":"https://github.com/nguyenhuy95dn/wsm_android.git","svn_url":"https://github.com/nguyenhuy95dn/wsm_android","homepage":null,"size":13327,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"framgia:develop","ref":"develop","sha":"6d5b2f3a4cb4a6027a13c4e7d2a78a9e3963392f","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":91540013,"name":"wsm_android","full_name":"framgia/wsm_android","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/wsm_android","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/wsm_android","forks_url":"https://api.github.com/repos/framgia/wsm_android/forks","keys_url":"https://api.github.com/repos/framgia/wsm_android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/wsm_android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/wsm_android/teams","hooks_url":"https://api.github.com/repos/framgia/wsm_android/hooks","issue_events_url":"https://api.github.com/repos/framgia/wsm_android/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/wsm_android/events","assignees_url":"https://api.github.com/repos/framgia/wsm_android/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/wsm_android/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/wsm_android/tags","blobs_url":"https://api.github.com/repos/framgia/wsm_android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/wsm_android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/wsm_android/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/wsm_android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/wsm_android/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/wsm_android/languages","stargazers_url":"https://api.github.com/repos/framgia/wsm_android/stargazers","contributors_url":"https://api.github.com/repos/framgia/wsm_android/contributors","subscribers_url":"https://api.github.com/repos/framgia/wsm_android/subscribers","subscription_url":"https://api.github.com/repos/framgia/wsm_android/subscription","commits_url":"https://api.github.com/repos/framgia/wsm_android/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/wsm_android/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/wsm_android/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/wsm_android/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/wsm_android/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/wsm_android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/wsm_android/merges","archive_url":"https://api.github.com/repos/framgia/wsm_android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/wsm_android/downloads","issues_url":"https://api.github.com/repos/framgia/wsm_android/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/wsm_android/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/wsm_android/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/wsm_android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/wsm_android/labels{/name}","releases_url":"https://api.github.com/repos/framgia/wsm_android/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/wsm_android/deployments","created_at":"2017-05-17T06:11:46Z","updated_at":"2017-05-17T08:51:31Z","pushed_at":"2017-08-04T01:41:52Z","git_url":"git://github.com/framgia/wsm_android.git","ssh_url":"git@github.com:framgia/wsm_android.git","clone_url":"https://github.com/framgia/wsm_android.git","svn_url":"https://github.com/framgia/wsm_android","homepage":null,"size":13383,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":6,"forks":8,"open_issues":6,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/wsm_android/pulls/301"},"html":{"href":"https://github.com/framgia/wsm_android/pull/301"},"issue":{"href":"https://api.github.com/repos/framgia/wsm_android/issues/301"},"comments":{"href":"https://api.github.com/repos/framgia/wsm_android/issues/301/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/wsm_android/pulls/301/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/wsm_android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/wsm_android/pulls/301/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/wsm_android/statuses/3f1aeaf68e8aa0c17299d243510896504af68db3"}}}}
{"actor":{"display_login":"trainer-android-fr"}}