{"action":"created","comment":{"url":"https://api.github.com/repos/owncloud/android/pulls/comments/91908626","pull_request_review_id":12416402,"id":91908626,"diff_hunk":"@@ -60,6 +60,47 @@ public OCFile createFromParcel(Parcel source) {\n     public static final String PATH_SEPARATOR = \"/\";\n     public static final String ROOT_PATH = PATH_SEPARATOR;\n \n+    public enum AvailableOfflineStatus {\n+\n+        /**\n+         * File is not available offline\n+         */\n+        NOT_AVAILABLE_OFFLINE(0),\n+\n+        /**\n+         * File is available offline\n+         */\n+        AVAILABLE_OFFLINE(1),\n+\n+        /**\n+         * File belongs to an available offline folder\n+         */\n+        AVAILABLE_OFFLINE_PARENT(2);\n+\n+        private final int value;\n+\n+        AvailableOfflineStatus(int value) {\n+            this.value = value;\n+        }\n+\n+        public int getValue() {\n+            return value;\n+        }\n+\n+        public static AvailableOfflineStatus fromValue(int value) {","path":"src/com/owncloud/android/datamodel/OCFile.java","position":31,"original_position":31,"commit_id":"31ad177f9d8e47bbf62888af68090b9bf4354e6c","original_commit_id":"31ad177f9d8e47bbf62888af68090b9bf4354e6c","user":{"login":"davivel","id":2225614,"avatar_url":"https://avatars.githubusercontent.com/u/2225614?v=3","gravatar_id":"","url":"https://api.github.com/users/davivel","html_url":"https://github.com/davivel","followers_url":"https://api.github.com/users/davivel/followers","following_url":"https://api.github.com/users/davivel/following{/other_user}","gists_url":"https://api.github.com/users/davivel/gists{/gist_id}","starred_url":"https://api.github.com/users/davivel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davivel/subscriptions","organizations_url":"https://api.github.com/users/davivel/orgs","repos_url":"https://api.github.com/users/davivel/repos","events_url":"https://api.github.com/users/davivel/events{/privacy}","received_events_url":"https://api.github.com/users/davivel/received_events","type":"User","site_admin":false},"body":"Sure, though is it a big win? Keeping an ordinal relationship between the elements is not important for our case, and the attribute is not too heavy. I'd rather to have control about the values than about the order.\r\n\r\nIs there any other benefit I'm losing?","created_at":"2016-12-12T09:22:24Z","updated_at":"2016-12-12T09:22:24Z","html_url":"https://github.com/owncloud/android/pull/1698#discussion_r91908626","pull_request_url":"https://api.github.com/repos/owncloud/android/pulls/1698","_links":{"self":{"href":"https://api.github.com/repos/owncloud/android/pulls/comments/91908626"},"html":{"href":"https://github.com/owncloud/android/pull/1698#discussion_r91908626"},"pull_request":{"href":"https://api.github.com/repos/owncloud/android/pulls/1698"}}},"pull_request":{"url":"https://api.github.com/repos/owncloud/android/pulls/1698","id":72329767,"html_url":"https://github.com/owncloud/android/pull/1698","diff_url":"https://github.com/owncloud/android/pull/1698.diff","patch_url":"https://github.com/owncloud/android/pull/1698.patch","issue_url":"https://api.github.com/repos/owncloud/android/issues/1698","number":1698,"state":"open","locked":false,"title":"Available offline folders","user":{"login":"jabarros","id":1561821,"avatar_url":"https://avatars.githubusercontent.com/u/1561821?v=3","gravatar_id":"","url":"https://api.github.com/users/jabarros","html_url":"https://github.com/jabarros","followers_url":"https://api.github.com/users/jabarros/followers","following_url":"https://api.github.com/users/jabarros/following{/other_user}","gists_url":"https://api.github.com/users/jabarros/gists{/gist_id}","starred_url":"https://api.github.com/users/jabarros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jabarros/subscriptions","organizations_url":"https://api.github.com/users/jabarros/orgs","repos_url":"https://api.github.com/users/jabarros/repos","events_url":"https://api.github.com/users/jabarros/events{/privacy}","received_events_url":"https://api.github.com/users/jabarros/received_events","type":"User","site_admin":false},"body":"Issue #1136 \n","created_at":"2016-06-02T11:24:05Z","updated_at":"2016-12-12T09:22:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a29ce4c5b495befc158fe5b34ca41f25a7e4175b","assignee":{"login":"davivel","id":2225614,"avatar_url":"https://avatars.githubusercontent.com/u/2225614?v=3","gravatar_id":"","url":"https://api.github.com/users/davivel","html_url":"https://github.com/davivel","followers_url":"https://api.github.com/users/davivel/followers","following_url":"https://api.github.com/users/davivel/following{/other_user}","gists_url":"https://api.github.com/users/davivel/gists{/gist_id}","starred_url":"https://api.github.com/users/davivel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davivel/subscriptions","organizations_url":"https://api.github.com/users/davivel/orgs","repos_url":"https://api.github.com/users/davivel/repos","events_url":"https://api.github.com/users/davivel/events{/privacy}","received_events_url":"https://api.github.com/users/davivel/received_events","type":"User","site_admin":false},"assignees":[{"login":"davivel","id":2225614,"avatar_url":"https://avatars.githubusercontent.com/u/2225614?v=3","gravatar_id":"","url":"https://api.github.com/users/davivel","html_url":"https://github.com/davivel","followers_url":"https://api.github.com/users/davivel/followers","following_url":"https://api.github.com/users/davivel/following{/other_user}","gists_url":"https://api.github.com/users/davivel/gists{/gist_id}","starred_url":"https://api.github.com/users/davivel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davivel/subscriptions","organizations_url":"https://api.github.com/users/davivel/orgs","repos_url":"https://api.github.com/users/davivel/repos","events_url":"https://api.github.com/users/davivel/events{/privacy}","received_events_url":"https://api.github.com/users/davivel/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/owncloud/android/pulls/1698/commits","review_comments_url":"https://api.github.com/repos/owncloud/android/pulls/1698/comments","review_comment_url":"https://api.github.com/repos/owncloud/android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/owncloud/android/issues/1698/comments","statuses_url":"https://api.github.com/repos/owncloud/android/statuses/31ad177f9d8e47bbf62888af68090b9bf4354e6c","head":{"label":"owncloud:available_offline_folders","ref":"available_offline_folders","sha":"31ad177f9d8e47bbf62888af68090b9bf4354e6c","user":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"repo":{"id":5550567,"name":"android","full_name":"owncloud/android","owner":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/owncloud/android","description":":phone: The ownCloud Android App","fork":false,"url":"https://api.github.com/repos/owncloud/android","forks_url":"https://api.github.com/repos/owncloud/android/forks","keys_url":"https://api.github.com/repos/owncloud/android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owncloud/android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owncloud/android/teams","hooks_url":"https://api.github.com/repos/owncloud/android/hooks","issue_events_url":"https://api.github.com/repos/owncloud/android/issues/events{/number}","events_url":"https://api.github.com/repos/owncloud/android/events","assignees_url":"https://api.github.com/repos/owncloud/android/assignees{/user}","branches_url":"https://api.github.com/repos/owncloud/android/branches{/branch}","tags_url":"https://api.github.com/repos/owncloud/android/tags","blobs_url":"https://api.github.com/repos/owncloud/android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owncloud/android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owncloud/android/git/refs{/sha}","trees_url":"https://api.github.com/repos/owncloud/android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owncloud/android/statuses/{sha}","languages_url":"https://api.github.com/repos/owncloud/android/languages","stargazers_url":"https://api.github.com/repos/owncloud/android/stargazers","contributors_url":"https://api.github.com/repos/owncloud/android/contributors","subscribers_url":"https://api.github.com/repos/owncloud/android/subscribers","subscription_url":"https://api.github.com/repos/owncloud/android/subscription","commits_url":"https://api.github.com/repos/owncloud/android/commits{/sha}","git_commits_url":"https://api.github.com/repos/owncloud/android/git/commits{/sha}","comments_url":"https://api.github.com/repos/owncloud/android/comments{/number}","issue_comment_url":"https://api.github.com/repos/owncloud/android/issues/comments{/number}","contents_url":"https://api.github.com/repos/owncloud/android/contents/{+path}","compare_url":"https://api.github.com/repos/owncloud/android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owncloud/android/merges","archive_url":"https://api.github.com/repos/owncloud/android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owncloud/android/downloads","issues_url":"https://api.github.com/repos/owncloud/android/issues{/number}","pulls_url":"https://api.github.com/repos/owncloud/android/pulls{/number}","milestones_url":"https://api.github.com/repos/owncloud/android/milestones{/number}","notifications_url":"https://api.github.com/repos/owncloud/android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owncloud/android/labels{/name}","releases_url":"https://api.github.com/repos/owncloud/android/releases{/id}","deployments_url":"https://api.github.com/repos/owncloud/android/deployments","created_at":"2012-08-25T10:35:56Z","updated_at":"2016-12-12T06:43:44Z","pushed_at":"2016-12-11T21:42:38Z","git_url":"git://github.com/owncloud/android.git","ssh_url":"git@github.com:owncloud/android.git","clone_url":"https://github.com/owncloud/android.git","svn_url":"https://github.com/owncloud/android","homepage":"","size":197249,"stargazers_count":1955,"watchers_count":1955,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2185,"mirror_url":null,"open_issues_count":338,"forks":2185,"open_issues":338,"watchers":1955,"default_branch":"master"}},"base":{"label":"owncloud:master","ref":"master","sha":"8c92ae47e650c38178612fa1703fb2fcab58660a","user":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"repo":{"id":5550567,"name":"android","full_name":"owncloud/android","owner":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/owncloud/android","description":":phone: The ownCloud Android App","fork":false,"url":"https://api.github.com/repos/owncloud/android","forks_url":"https://api.github.com/repos/owncloud/android/forks","keys_url":"https://api.github.com/repos/owncloud/android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owncloud/android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owncloud/android/teams","hooks_url":"https://api.github.com/repos/owncloud/android/hooks","issue_events_url":"https://api.github.com/repos/owncloud/android/issues/events{/number}","events_url":"https://api.github.com/repos/owncloud/android/events","assignees_url":"https://api.github.com/repos/owncloud/android/assignees{/user}","branches_url":"https://api.github.com/repos/owncloud/android/branches{/branch}","tags_url":"https://api.github.com/repos/owncloud/android/tags","blobs_url":"https://api.github.com/repos/owncloud/android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owncloud/android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owncloud/android/git/refs{/sha}","trees_url":"https://api.github.com/repos/owncloud/android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owncloud/android/statuses/{sha}","languages_url":"https://api.github.com/repos/owncloud/android/languages","stargazers_url":"https://api.github.com/repos/owncloud/android/stargazers","contributors_url":"https://api.github.com/repos/owncloud/android/contributors","subscribers_url":"https://api.github.com/repos/owncloud/android/subscribers","subscription_url":"https://api.github.com/repos/owncloud/android/subscription","commits_url":"https://api.github.com/repos/owncloud/android/commits{/sha}","git_commits_url":"https://api.github.com/repos/owncloud/android/git/commits{/sha}","comments_url":"https://api.github.com/repos/owncloud/android/comments{/number}","issue_comment_url":"https://api.github.com/repos/owncloud/android/issues/comments{/number}","contents_url":"https://api.github.com/repos/owncloud/android/contents/{+path}","compare_url":"https://api.github.com/repos/owncloud/android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owncloud/android/merges","archive_url":"https://api.github.com/repos/owncloud/android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owncloud/android/downloads","issues_url":"https://api.github.com/repos/owncloud/android/issues{/number}","pulls_url":"https://api.github.com/repos/owncloud/android/pulls{/number}","milestones_url":"https://api.github.com/repos/owncloud/android/milestones{/number}","notifications_url":"https://api.github.com/repos/owncloud/android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owncloud/android/labels{/name}","releases_url":"https://api.github.com/repos/owncloud/android/releases{/id}","deployments_url":"https://api.github.com/repos/owncloud/android/deployments","created_at":"2012-08-25T10:35:56Z","updated_at":"2016-12-12T06:43:44Z","pushed_at":"2016-12-11T21:42:38Z","git_url":"git://github.com/owncloud/android.git","ssh_url":"git@github.com:owncloud/android.git","clone_url":"https://github.com/owncloud/android.git","svn_url":"https://github.com/owncloud/android","homepage":"","size":197249,"stargazers_count":1955,"watchers_count":1955,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2185,"mirror_url":null,"open_issues_count":338,"forks":2185,"open_issues":338,"watchers":1955,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/owncloud/android/pulls/1698"},"html":{"href":"https://github.com/owncloud/android/pull/1698"},"issue":{"href":"https://api.github.com/repos/owncloud/android/issues/1698"},"comments":{"href":"https://api.github.com/repos/owncloud/android/issues/1698/comments"},"review_comments":{"href":"https://api.github.com/repos/owncloud/android/pulls/1698/comments"},"review_comment":{"href":"https://api.github.com/repos/owncloud/android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/owncloud/android/pulls/1698/commits"},"statuses":{"href":"https://api.github.com/repos/owncloud/android/statuses/31ad177f9d8e47bbf62888af68090b9bf4354e6c"}}}}
{"actor":{"display_login":"davivel"}}