{"action":"created","comment":{"url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/pulls/comments/42895239","id":42895239,"diff_hunk":"@@ -1,27 +1,36 @@\n import Runes\n import Argo\n+import Curry\n \n struct Realm {\n-    let name: String\n-    let type: String\n-    let status: Bool\n+    enum RealmType: String, CustomStringConvertible {\n+        case PvP = \"pvp\"","path":"WoW-Realm-Tracker/Models/Realm.swift","position":10,"original_position":10,"commit_id":"82f9f13084dab0aed59bbbb30cde1158cb864727","original_commit_id":"82f9f13084dab0aed59bbbb30cde1158cb864727","user":{"login":"dgalarza","id":105694,"avatar_url":"https://avatars.githubusercontent.com/u/105694?v=3","gravatar_id":"","url":"https://api.github.com/users/dgalarza","html_url":"https://github.com/dgalarza","followers_url":"https://api.github.com/users/dgalarza/followers","following_url":"https://api.github.com/users/dgalarza/following{/other_user}","gists_url":"https://api.github.com/users/dgalarza/gists{/gist_id}","starred_url":"https://api.github.com/users/dgalarza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgalarza/subscriptions","organizations_url":"https://api.github.com/users/dgalarza/orgs","repos_url":"https://api.github.com/users/dgalarza/repos","events_url":"https://api.github.com/users/dgalarza/events{/privacy}","received_events_url":"https://api.github.com/users/dgalarza/received_events","type":"User","site_admin":false},"body":"It is just an API conversion concern so i like your idea about having that just happen at parse time rather than exist at all times.\r\n\r\nI tried the above but I'm getting this error:\r\n\r\n> /Volumes/Data/Users/dgalarza/Projects/MobileRealmStatus/WoW-Realm-Tracker/Models/Realm.swift:37:13: Binary operator '<*>' cannot be applied to operands of type 'Decoded<(Bool) -> Realm>' (aka 'Decoded<Bool -> Realm>') and 'Decoded<String>'\r\n\r\nI'm not quite sure what its getting at.\r\n","created_at":"2015-10-23T18:02:31Z","updated_at":"2015-10-23T18:02:31Z","html_url":"https://github.com/dgalarza/MobileRealmStatus/pull/12#discussion_r42895239","pull_request_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/dgalarza/MobileRealmStatus/pulls/comments/42895239"},"html":{"href":"https://github.com/dgalarza/MobileRealmStatus/pull/12#discussion_r42895239"},"pull_request":{"href":"https://api.github.com/repos/dgalarza/MobileRealmStatus/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/pulls/12","id":48599815,"html_url":"https://github.com/dgalarza/MobileRealmStatus/pull/12","diff_url":"https://github.com/dgalarza/MobileRealmStatus/pull/12.diff","patch_url":"https://github.com/dgalarza/MobileRealmStatus/pull/12.patch","issue_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/issues/12","number":12,"state":"open","locked":false,"title":"Move realm type to an Enum","user":{"login":"dgalarza","id":105694,"avatar_url":"https://avatars.githubusercontent.com/u/105694?v=3","gravatar_id":"","url":"https://api.github.com/users/dgalarza","html_url":"https://github.com/dgalarza","followers_url":"https://api.github.com/users/dgalarza/followers","following_url":"https://api.github.com/users/dgalarza/following{/other_user}","gists_url":"https://api.github.com/users/dgalarza/gists{/gist_id}","starred_url":"https://api.github.com/users/dgalarza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgalarza/subscriptions","organizations_url":"https://api.github.com/users/dgalarza/orgs","repos_url":"https://api.github.com/users/dgalarza/repos","events_url":"https://api.github.com/users/dgalarza/events{/privacy}","received_events_url":"https://api.github.com/users/dgalarza/received_events","type":"User","site_admin":false},"body":"Move away from using type as a string that comes from the JSON response. Instead, create an explicit type called `RealmType` as an Enum.","created_at":"2015-10-23T16:17:47Z","updated_at":"2015-10-23T18:02:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"69673385e4187b09eecb31db942a513380a5df33","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/pulls/12/commits","review_comments_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/pulls/12/comments","review_comment_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/issues/12/comments","statuses_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/statuses/82f9f13084dab0aed59bbbb30cde1158cb864727","head":{"label":"dgalarza:dg-realm-type-enum","ref":"dg-realm-type-enum","sha":"82f9f13084dab0aed59bbbb30cde1158cb864727","user":{"login":"dgalarza","id":105694,"avatar_url":"https://avatars.githubusercontent.com/u/105694?v=3","gravatar_id":"","url":"https://api.github.com/users/dgalarza","html_url":"https://github.com/dgalarza","followers_url":"https://api.github.com/users/dgalarza/followers","following_url":"https://api.github.com/users/dgalarza/following{/other_user}","gists_url":"https://api.github.com/users/dgalarza/gists{/gist_id}","starred_url":"https://api.github.com/users/dgalarza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgalarza/subscriptions","organizations_url":"https://api.github.com/users/dgalarza/orgs","repos_url":"https://api.github.com/users/dgalarza/repos","events_url":"https://api.github.com/users/dgalarza/events{/privacy}","received_events_url":"https://api.github.com/users/dgalarza/received_events","type":"User","site_admin":false},"repo":{"id":34884443,"name":"MobileRealmStatus","full_name":"dgalarza/MobileRealmStatus","owner":{"login":"dgalarza","id":105694,"avatar_url":"https://avatars.githubusercontent.com/u/105694?v=3","gravatar_id":"","url":"https://api.github.com/users/dgalarza","html_url":"https://github.com/dgalarza","followers_url":"https://api.github.com/users/dgalarza/followers","following_url":"https://api.github.com/users/dgalarza/following{/other_user}","gists_url":"https://api.github.com/users/dgalarza/gists{/gist_id}","starred_url":"https://api.github.com/users/dgalarza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgalarza/subscriptions","organizations_url":"https://api.github.com/users/dgalarza/orgs","repos_url":"https://api.github.com/users/dgalarza/repos","events_url":"https://api.github.com/users/dgalarza/events{/privacy}","received_events_url":"https://api.github.com/users/dgalarza/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dgalarza/MobileRealmStatus","description":"Sample Swift iOS app using the WoW realm status API","fork":false,"url":"https://api.github.com/repos/dgalarza/MobileRealmStatus","forks_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/forks","keys_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/teams","hooks_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/hooks","issue_events_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/issues/events{/number}","events_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/events","assignees_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/assignees{/user}","branches_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/branches{/branch}","tags_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/tags","blobs_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/git/refs{/sha}","trees_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/statuses/{sha}","languages_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/languages","stargazers_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/stargazers","contributors_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/contributors","subscribers_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/subscribers","subscription_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/subscription","commits_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/commits{/sha}","git_commits_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/git/commits{/sha}","comments_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/comments{/number}","issue_comment_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/issues/comments{/number}","contents_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/contents/{+path}","compare_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/merges","archive_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/downloads","issues_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/issues{/number}","pulls_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/pulls{/number}","milestones_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/milestones{/number}","notifications_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/labels{/name}","releases_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/releases{/id}","created_at":"2015-05-01T01:04:58Z","updated_at":"2015-05-05T02:07:36Z","pushed_at":"2015-10-23T16:17:47Z","git_url":"git://github.com/dgalarza/MobileRealmStatus.git","ssh_url":"git@github.com:dgalarza/MobileRealmStatus.git","clone_url":"https://github.com/dgalarza/MobileRealmStatus.git","svn_url":"https://github.com/dgalarza/MobileRealmStatus","homepage":null,"size":672,"stargazers_count":0,"watchers_count":0,"language":"Swift","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":"dgalarza:master","ref":"master","sha":"d41cbce5f7a278e732fbf8b0f368e3e2905f8490","user":{"login":"dgalarza","id":105694,"avatar_url":"https://avatars.githubusercontent.com/u/105694?v=3","gravatar_id":"","url":"https://api.github.com/users/dgalarza","html_url":"https://github.com/dgalarza","followers_url":"https://api.github.com/users/dgalarza/followers","following_url":"https://api.github.com/users/dgalarza/following{/other_user}","gists_url":"https://api.github.com/users/dgalarza/gists{/gist_id}","starred_url":"https://api.github.com/users/dgalarza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgalarza/subscriptions","organizations_url":"https://api.github.com/users/dgalarza/orgs","repos_url":"https://api.github.com/users/dgalarza/repos","events_url":"https://api.github.com/users/dgalarza/events{/privacy}","received_events_url":"https://api.github.com/users/dgalarza/received_events","type":"User","site_admin":false},"repo":{"id":34884443,"name":"MobileRealmStatus","full_name":"dgalarza/MobileRealmStatus","owner":{"login":"dgalarza","id":105694,"avatar_url":"https://avatars.githubusercontent.com/u/105694?v=3","gravatar_id":"","url":"https://api.github.com/users/dgalarza","html_url":"https://github.com/dgalarza","followers_url":"https://api.github.com/users/dgalarza/followers","following_url":"https://api.github.com/users/dgalarza/following{/other_user}","gists_url":"https://api.github.com/users/dgalarza/gists{/gist_id}","starred_url":"https://api.github.com/users/dgalarza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgalarza/subscriptions","organizations_url":"https://api.github.com/users/dgalarza/orgs","repos_url":"https://api.github.com/users/dgalarza/repos","events_url":"https://api.github.com/users/dgalarza/events{/privacy}","received_events_url":"https://api.github.com/users/dgalarza/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dgalarza/MobileRealmStatus","description":"Sample Swift iOS app using the WoW realm status API","fork":false,"url":"https://api.github.com/repos/dgalarza/MobileRealmStatus","forks_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/forks","keys_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/teams","hooks_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/hooks","issue_events_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/issues/events{/number}","events_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/events","assignees_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/assignees{/user}","branches_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/branches{/branch}","tags_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/tags","blobs_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/git/refs{/sha}","trees_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/statuses/{sha}","languages_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/languages","stargazers_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/stargazers","contributors_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/contributors","subscribers_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/subscribers","subscription_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/subscription","commits_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/commits{/sha}","git_commits_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/git/commits{/sha}","comments_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/comments{/number}","issue_comment_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/issues/comments{/number}","contents_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/contents/{+path}","compare_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/merges","archive_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/downloads","issues_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/issues{/number}","pulls_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/pulls{/number}","milestones_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/milestones{/number}","notifications_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/labels{/name}","releases_url":"https://api.github.com/repos/dgalarza/MobileRealmStatus/releases{/id}","created_at":"2015-05-01T01:04:58Z","updated_at":"2015-05-05T02:07:36Z","pushed_at":"2015-10-23T16:17:47Z","git_url":"git://github.com/dgalarza/MobileRealmStatus.git","ssh_url":"git@github.com:dgalarza/MobileRealmStatus.git","clone_url":"https://github.com/dgalarza/MobileRealmStatus.git","svn_url":"https://github.com/dgalarza/MobileRealmStatus","homepage":null,"size":672,"stargazers_count":0,"watchers_count":0,"language":"Swift","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/dgalarza/MobileRealmStatus/pulls/12"},"html":{"href":"https://github.com/dgalarza/MobileRealmStatus/pull/12"},"issue":{"href":"https://api.github.com/repos/dgalarza/MobileRealmStatus/issues/12"},"comments":{"href":"https://api.github.com/repos/dgalarza/MobileRealmStatus/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/dgalarza/MobileRealmStatus/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/dgalarza/MobileRealmStatus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dgalarza/MobileRealmStatus/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/dgalarza/MobileRealmStatus/statuses/82f9f13084dab0aed59bbbb30cde1158cb864727"}}}}