{"action":"opened","issue":{"url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/1026","repository_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine","labels_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/1026/labels{/name}","comments_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/1026/comments","events_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/1026/events","html_url":"https://github.com/TeamPorcupine/ProjectPorcupine/issues/1026","id":173805676,"number":1026,"title":"[Suggestion] ULog Channels as enums/static strings","user":{"login":"bjubes","id":7608114,"avatar_url":"https://avatars.githubusercontent.com/u/7608114?v=3","gravatar_id":"","url":"https://api.github.com/users/bjubes","html_url":"https://github.com/bjubes","followers_url":"https://api.github.com/users/bjubes/followers","following_url":"https://api.github.com/users/bjubes/following{/other_user}","gists_url":"https://api.github.com/users/bjubes/gists{/gist_id}","starred_url":"https://api.github.com/users/bjubes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjubes/subscriptions","organizations_url":"https://api.github.com/users/bjubes/orgs","repos_url":"https://api.github.com/users/bjubes/repos","events_url":"https://api.github.com/users/bjubes/events{/privacy}","received_events_url":"https://api.github.com/users/bjubes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-29T15:46:10Z","updated_at":"2016-08-29T15:46:10Z","closed_at":null,"body":"Currently, ULog takes channels as a string, which leads to problems when you don't know all the possible/existing channels, or if you make a typo and open a new channel by accident. This is exactly what enums are meant to solve and i think we should use them instead for both of these reasons.\r\n\r\nSince enums map to ints, we could alternatively use a static class to define the channel types. like:\r\n```\r\npublic static LogChannel\r\n{\r\npublic string Lua = \"Lua\";\r\npublic string World = \"world\";\r\n...\r\n}\r\n```"}}
{"actor":{"display_login":"bjubes"}}